Bug 102136

Summary: [patch] "disabled" property of "style" elements not functional
Product: [Applications] konqueror Reporter: Zeev Tarantov <zeev.tarantov>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: aiacovitti, maksim
Priority: NOR Keywords: testcase
Version: 4.8.90 (beta2)   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: patch
testcase

Description Zeev Tarantov 2005-03-22 01:20:57 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    Gentoo Packages
Compiler:          gcc 3.4.3 
OS:                Linux

When stylesheet is linked using <link> element, it can be disabled (so another can be chosen) from script. But shen stylesheet is embedded using <style> element, setting the "disabled" property to "true" does nothing. i.e.:

for (var a = document.getElementsByTagName('link'), i = 0, l = a.length; i < l; i++)
  a[i].disabled = true;

works (disabled all linked stylesheets), but:

for (var a = document.getElementsByTagName('style'), i = 0, l = a.length; i < l; i++)
  a[i].disabled = true;

doesn't work.
Comment 1 Philip Rodrigues 2006-09-01 21:05:37 UTC
Confirmed on SVN r575787
Comment 2 rapsys 2006-10-05 23:49:23 UTC
Seems to be similar problem to this one : https://bugs.kde.org/show_bug.cgi?id=76489
Comment 3 Maksim Orlovich 2006-10-06 01:28:40 UTC
Absolutely nothing in common.
Comment 4 Maksim Orlovich 2008-01-24 18:38:55 UTC
I see... This is because it's a DOM2 HTML property that has no equivalent in HTML4.01...
Comment 5 Maksim Orlovich 2008-01-24 19:09:48 UTC
Created attachment 23248 [details]
patch

Patch... Regtesting, and still in need of review
Comment 6 Janek Bevendorff 2012-06-19 17:43:01 UTC
Message from the Bugsquad and Konqueror teams: This bug is closed as outdated, as we do not have the manpower to maintain the KDE3 version anymore. If you still can reproduce this issue with Konqueror 4.8.4 or later, please open a new report. Thank you for your understanding.
Comment 7 Andrea Iacovitti 2012-06-20 12:57:19 UTC
Created attachment 71985 [details]
testcase
Comment 8 Andrea Iacovitti 2012-06-20 12:59:31 UTC
Bug confirmed (khtml 4.8.90).
Comment 9 Christoph Cullmann 2024-05-06 18:38:12 UTC
Dear user,

KHTML (and KJS) was a long time more or less unmaintained and got removed in KF6.

Please migrate to use a QWebEngine based HTML component.

We will do no further fixes or improvements to the KF5 branches of these components beside important security fixes.

For security issues, please see:

https://kde.org/info/security/

Sorry that we did not fix this issue during the life-time of KHTML.

Greetings
Christoph Cullmann