W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2011

[whatwg] HTMLLinkElement.disabled and HTMLLinkElement.sheet behavior

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 05 Oct 2011 22:46:14 -0400
Message-ID: <4E8D1676.2080804@mit.edu>
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 

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...

Received on Wednesday, 5 October 2011 19:46:14 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:37 UTC