← Back to release summary

Update the behavior of the "disabled" attribute for HTMLLinkElement

Category
DOM
Type
New or changed feature
Status
Enabled by default (Chrome 85)
Intent stage
Shipped

Summary

Previously, Chromium had intermittent behavior with respect to the "disabled" attribute: - <link id=foo rel="stylesheet" disabled> would not show up in document.styleSheets. - foo.disabled=false; foo.disabled=true; would cause it to appear (and remain) in document.styleSheets. - <link rel="alternate stylesheet"> cannot be enabled, except by disabling and re-enabling it. - When disabled, link.ownerNode was not null The above issues are being resolved.

Motivation

The behavior of <link disabled> was not very interoperable, and not well specified. With this HTML spec PR (https://github.com/whatwg/html/pull/4519) the behavior has been more completely specified. Chrome will implement this modified behavior starting in M85. See https://github.com/whatwg/html/issues/3840 for more details and conversation.

Standards & signals

Docs: https://github.com/whatwg/html/pull/4519

Samples: https://github.com/whatwg/html/issues/3840#issue-343413388

Explainers: https://github.com/whatwg/html/issues/3840

View on chromestatus.com