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

[whatwg] HTMLLinkElement.disabled and HTMLLinkElement.sheet behavior

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 04 Oct 2011 23:35:31 -0400
Message-ID: <4E8BD083.6000406@mit.edu>
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....

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

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