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

[whatwg] HTMLLinkElement.disabled and HTMLLinkElement.sheet behavior

From: Julien Chaffraix <julien.chaffraix@gmail.com>
Date: Wed, 5 Oct 2011 18:01:48 -0700
Message-ID: <CAGY_oHKiwB9J8uF+XM98SuN_yNH4ZO7GeSRSjyO_EdjW=GsPuA@mail.gmail.com>
>> 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. ?;)

I stand corrected. ;)

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

Yes, we have seen some regressions because people were expecting exactly that.

Thanks,
Julien
Received on Wednesday, 5 October 2011 18:01:48 UTC

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