8000 [Gecko Bug 1281135] Make <link disabled> work and HTMLLinkElement.disabled reflect that attribute. by moz-wptsync-bot · Pull Request #16521 · web-platform-tests/wpt · GitHub
[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gecko Bug 1281135] Make <link disabled> work and HTMLLinkElement.disabled reflect that attribute. #16521

Merged
merged 1 commit into from
Apr 25, 2019

Conversation

moz-wptsync-bot
Copy link
Collaborator

...instead of forwarding to the sheet like HTMLStyleElement does.

I've proposed this behavior in:

whatwg/html#3840 (comment)

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

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1281135
gecko-commit: edbf9758ea946df5063e84c397c43208c555fd74
gecko-integration-branch: central
gecko-reviewers: bzbarsky

…ttribute.

...instead of forwarding to the sheet like HTMLStyleElement does.

I've proposed this behavior in:

  whatwg/html#3840 (comment)

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

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1281135
gecko-commit: edbf9758ea946df5063e84c397c43208c555fd74
gecko-integration-branch: central
gecko-reviewers: bzbarsky
Copy link
Collaborator
@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already reviewed downstream.

@jgraham jgraham merged commit fe5cba9 into master Apr 25, 2019
@moz-wptsync-bot moz-wptsync-bot deleted the gecko/1281135 branch April 25, 2019 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0