<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>26673</bug_id>
          
          <creation_ts>2009-06-24 02:19:00 -0700</creation_ts>
          <short_desc>Dynamically changing .disabled doesn&apos;t work</short_desc>
          <delta_ts>2024-07-11 15:30:21 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://junkyard.damowmow.com/393</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar, NeedsReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="sideshowbarker">mike</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>eoconnor</cc>
    
    <cc>ian</cc>
    
    <cc>karlcow</cc>
    
    <cc>mrowe</cc>
    
    <cc>rik</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>vmarty89</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>127877</commentid>
    <comment_count>0</comment_count>
    <who name="sideshowbarker">mike</who>
    <bug_when>2009-06-24 02:19:00 -0700</bug_when>
    <thetext>&lt;MikeSmith&gt; Hixie set up an &quot;author view&quot; of the HTML5 spec that hides some parts of the spec by disabling styles on them
&lt;MikeSmith&gt; but hiding doesn&apos;t seem to work in any version of Webkit I tried
&lt;MikeSmith&gt; http://www.whatwg.org/specs/web-apps/current-work/?style=author
&lt;bdash&gt; MikeSmith: hiding them how?
&lt;Hixie&gt; bdash: looks like dynamically changing .disabled isn&apos;t working if it&apos;s done onload (or near onload)
&lt;Hixie&gt; bdash: (.disabled on &lt;link&gt;)
&lt;Hixie&gt; bdash: the .disabled gets set right, but the stylesheets that apply don&apos;t update
&lt;Hixie&gt; according to the inspector
&lt;bdash&gt; ugh :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128450</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-06-26 02:01:59 -0700</bug_when>
    <thetext>(note that the spec&apos;s script has changed to work around this bug)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128482</commentid>
    <comment_count>2</comment_count>
      <attachid>31931</attachid>
    <who name="Anthony Ricaud">rik</who>
    <bug_when>2009-06-26 06:30:11 -0700</bug_when>
    <thetext>Created attachment 31931
Testcase working as normal

Can&apos;t reproduce with the attached testcase.

Do you have a static copy of the spec with the bug ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128724</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-06-28 02:34:40 -0700</bug_when>
    <thetext>Here&apos;s a testcase showing the bug: http://junkyard.damowmow.com/393</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128726</commentid>
    <comment_count>4</comment_count>
    <who name="sideshowbarker">mike</who>
    <bug_when>2009-06-28 02:43:44 -0700</bug_when>
    <thetext>[updated URL field to point to Hixie&apos;s reduced test case]

fwiw, I note the test fails with KHTML as well (which I guess would suggest it&apos;s a bug that&apos;s been in there a long time, not a regression)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128737</commentid>
    <comment_count>5</comment_count>
    <who name="Anthony Ricaud">rik</who>
    <bug_when>2009-06-28 07:56:52 -0700</bug_when>
    <thetext>From what I understand, this is not a bug with the disabled attribute. I think the stylesheet is never applied because it&apos;s linked as an alternate stylesheet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331376</commentid>
    <comment_count>6</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-01-08 21:33:32 -0800</bug_when>
    <thetext>Dup of 25287?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331403</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-01-09 01:48:12 -0800</bug_when>
    <thetext>Not a dupe of bug 25287-  this is about &lt;link&gt;, not &lt;style&gt;. But I&apos;m wondering if &lt;style&gt; remains broken in this particular case, too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331406</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-01-09 02:07:09 -0800</bug_when>
    <thetext>A modification of Hixie&apos;s test that uses setTimeout(..., 1000) instead of window.onload still fails.

It seems wrong that .disabled is implemented via [Reflect] to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2045806</commentid>
    <comment_count>9</comment_count>
    <who name="Theresa O&apos;Connor">eoconnor</who>
    <bug_when>2024-07-11 12:06:44 -0700</bug_when>
    <thetext>See also:

https://issues.chromium.org/issues/41389485

http://arkanis.de/weblog/2018-05-21-chromium-and-webkit-bug-when-switching-stylesheets</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2045807</commentid>
    <comment_count>10</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-07-11 12:06:54 -0700</bug_when>
    <thetext>&lt;rdar://problem/131556588&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2045854</commentid>
    <comment_count>11</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-07-11 15:30:21 -0700</bug_when>
    <thetext>https://searchfox.org/wubkat/rev/80329f1d5c7dfbbb9f782591faecc859d9abf55b/Source/WebCore/html/HTMLLinkElement.cpp#121</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>31931</attachid>
            <date>2009-06-26 06:30:11 -0700</date>
            <delta_ts>2009-06-26 06:30:11 -0700</delta_ts>
            <desc>Testcase working as normal</desc>
            <filename>testcase.html</filename>
            <type>text/html</type>
            <size>450</size>
            <attacher name="Anthony Ricaud">rik</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxodG1sPgo8aGVhZD4KICAgIDx0aXRsZT5UZXN0Y2FzZSBmb3IgQnVn
IDI2NjczPC90aXRsZT4KICAgIDxzdHlsZT4KICAgIGgxIHsKICAgICAgICBjb2xvcjogZ3JlZW47
CiAgICB9CiAgICA8L3N0eWxlPgogICAgPGxpbmsgaHJlZj0idGVzdGNhc2UuY3NzIiByZWw9InN0
eWxlc2hlZXQiIHR5cGU9InRleHQvY3NzIj4KICAgIDwhLS0gQ29udGVudCBvZiB0ZXN0Y2FzZS5j
c3MKICAgIGgxIHsKICAgICAgICBjb2xvcjogcmVkOwogICAgfSAgICAKICAgIC0tPgo8L2hlYWQ+
Cjxib2R5PgogICAgPGgxPlNob3VsZCBiZSBncmVlbjwvaDE+CjxzY3JpcHQ+CndpbmRvdy5vbmxv
YWQgPSBmdW5jdGlvbiAoKSB7CiAgICBkb2N1bWVudC5nZXRFbGVtZW50c0J5VGFnTmFtZSgnbGlu
aycpWzBdLmRpc2FibGVkID0gdHJ1ZTsKfQo8L3NjcmlwdD4KPC9ib2R5Pgo8L2h0bWw+
</data>

          </attachment>
      

    </bug>

</bugzilla>