gecko-dev/dom/xml
Emilio Cobos Álvarez ca33d8548f Bug 1281135 - Make <link disabled> work and HTMLLinkElement.disabled reflect that attribute. r=bzbarsky
...instead of forwarding to the sheet like HTMLStyleElement does.

I've proposed this behavior in:

  https://github.com/whatwg/html/issues/3840#issuecomment-480894419

I think this is one of the sane behaviors we can have, what Blink / WebKit do
makes no sense to me.

Alternative potentially-sane behavior is making the initial value of the
stylesheet's disabled bit the same as the content attribute, and both reflect
and forward the attribute from the setter.

That means that setAttribute does something different than setting `disabled`,
which means that you can get into all sorts of funny states when reloading the
sheet... So I rather not do that.

Differential Revision: https://phabricator.services.mozilla.com/D26573

--HG--
extra : moz-landing-system : lando
2019-04-19 13:31:05 +00:00
..
crashtests
resources
test Bug 332175 - Disable the XMLDocument.load() API on trunk; r=bzbarsky 2019-04-17 19:37:10 +00:00
CDATASection.cpp
CDATASection.h
htmlmathml-f.ent
moz.build
nsIXMLContentSink.h
nsXMLContentSink.cpp Bug 1539742 - Notify of appends to the right document when parsing into an already-adopted node. r=bzbarsky 2019-03-29 09:55:10 +00:00
nsXMLContentSink.h
nsXMLElement.cpp
nsXMLElement.h
nsXMLFragmentContentSink.cpp
nsXMLPrettyPrinter.cpp
nsXMLPrettyPrinter.h
ProcessingInstruction.cpp
ProcessingInstruction.h
XMLDocument.cpp Bug 1536411 - StoragePrincipal - part 1 - Implementation, r=Ehsan 2019-04-12 05:31:32 +00:00
XMLDocument.h Bug 1536411 - StoragePrincipal - part 1 - Implementation, r=Ehsan 2019-04-12 05:31:32 +00:00
XMLStylesheetProcessingInstruction.cpp Bug 1281135 - Make <link disabled> work and HTMLLinkElement.disabled reflect that attribute. r=bzbarsky 2019-04-19 13:31:05 +00:00
XMLStylesheetProcessingInstruction.h