[whatwg] HTMLLinkElement.disabled and HTMLLinkElement.sheet behavior

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

Received on Tuesday, 4 October 2011 20:35:31 UTC