Dynamically changing .disabled doesn't work
https://bugs.webkit.org/show_bug.cgi?id=26673
Summary Dynamically changing .disabled doesn't work
sideshowbarker
Reported 2009-06-24 02:19:00 PDT
<MikeSmith> Hixie set up an "author view" of the HTML5 spec that hides some parts of the spec by disabling styles on them <MikeSmith> but hiding doesn't seem to work in any version of Webkit I tried <MikeSmith> http://www.whatwg.org/specs/web-apps/current-work/?style=author <bdash> MikeSmith: hiding them how? <Hixie> bdash: looks like dynamically changing .disabled isn't working if it's done onload (or near onload) <Hixie> bdash: (.disabled on <link>) <Hixie> bdash: the .disabled gets set right, but the stylesheets that apply don't update <Hixie> according to the inspector <bdash> ugh :(
Attachments
Testcase working as normal (450 bytes, text/html)
2009-06-26 06:30 PDT, Anthony Ricaud
no flags
Ian 'Hixie' Hickson
Comment 1 2009-06-26 02:01:59 PDT
(note that the spec's script has changed to work around this bug)
Anthony Ricaud
Comment 2 2009-06-26 06:30:11 PDT
Created attachment 31931 [details] Testcase working as normal Can't reproduce with the attached testcase. Do you have a static copy of the spec with the bug ?
Ian 'Hixie' Hickson
Comment 3 2009-06-28 02:34:40 PDT
Here's a testcase showing the bug: http://junkyard.damowmow.com/393
sideshowbarker
Comment 4 2009-06-28 02:43:44 PDT
[updated URL field to point to Hixie's reduced test case] fwiw, I note the test fails with KHTML as well (which I guess would suggest it's a bug that's been in there a long time, not a regression)
Anthony Ricaud
Comment 5 2009-06-28 07:56:52 PDT
From what I understand, this is not a bug with the disabled attribute. I think the stylesheet is never applied because it's linked as an alternate stylesheet.
Simon Fraser (smfr)
Comment 6 2011-01-08 21:33:32 PST
Dup of 25287?
Alexey Proskuryakov
Comment 7 2011-01-09 01:48:12 PST
Not a dupe of bug 25287- this is about <link>, not <style>. But I'm wondering if <style> remains broken in this particular case, too.
Alexey Proskuryakov
Comment 8 2011-01-09 02:07:09 PST
A modification of Hixie's test that uses setTimeout(..., 1000) instead of window.onload still fails. It seems wrong that .disabled is implemented via [Reflect] to me.
Radar WebKit Bug Importer
Comment 10 2024-07-11 12:06:54 PDT
Note You need to log in before you can comment on or make changes to this bug.