[whatwg] HTMLLinkElement.disabled and HTMLLinkElement.sheet behavior

Boris Zbarsky bzbarsky at MIT.EDU
Tue Oct 4 20:35:31 PDT 2011


On 10/4/11 5:43 PM, Julien Chaffraix wrote:
> Thanks for the explanation. I took a black-box approach in testing - I
> don't pretend to know how Firefox works - and from that perspective,
> it looked like it was synchronous as the |sheet| was present and
> properly populated in JS.

Try setting an interval to poll right before the <link> is parsed.  That 
will black-box show that it's not synchronous.  ;)

> It is. However the specification states that |disabled| would be
> ignored if there is no |sheet|. It looks like web-authors don't factor
> this into their code.

Ah.  Do they set disabled and expect it to take effect whenever the 
sheet actually appears?

I would totally believe the web depending on that....

-Boris



More information about the whatwg mailing list