[whatwg] HTMLLinkElement.disabled and HTMLLinkElement.sheet behavior
Boris Zbarsky
bzbarsky at MIT.EDU
Wed Oct 5 19:46:14 PDT 2011
On 10/5/11 9:01 PM, Julien Chaffraix wrote:
>> Ah. Do they set disabled and expect it to take effect whenever the sheet
>> actually appears?
>
> Yes, we have seen some regressions because people were expecting exactly that.
So for what it's worth, Gecko implemented the current behavior of
creating the stylesheet immediately as soon as we know the <link> is
linking to a stylesheet in
https://bugzilla.mozilla.org/show_bug.cgi?id=107567
One of the considerations there was in fact allowing pages to change
disabled state without having to wait for the sheet to load. That
includes things like selection of alternate stylesheet sets working
correctly even if not all the alternate sheets have finished loading and
so forth...
-Boris
More information about the whatwg
mailing list