Open Bug 1376729 Opened 7 years ago Updated 2 years ago

disabled-attribute on link-element does not take effect

Categories

(Core :: DOM: CSS Object Model, defect, P3)

54 Branch
defect

Tracking

()

UNCONFIRMED
Tracking Status
firefox57 --- wontfix

People

(Reporter: info, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36

Steps to reproduce:

I added a link-element for a stylesheet in my html head and set the attribute disabled.

<link id="stylesheet" rel="stylesheet" href="..." disabled>


Actual results:

The stylesheet takes effect and all styles will applied until I disabled the link element with javascript:

document.getElementById('stylesheet').disabled = false


Expected results:

Firefox should support disabling stylesheets or simply should let it be. If I do it with javascript or with html should be the same.

I prefer to support disabling stylesheets.
Component: Untriaged → DOM: CSS Object Model
Product: Firefox → Core
Priority: -- → P3
https://drafts.csswg.org/cssom/#concept-css-style-sheet-disabled-flag

Latest spec draft states disabled is unset by default. I can imagine use cases for having stylesheets disabled in the markup though, and I like the suggestion.

Filed the spec issue: https://github.com/w3c/csswg-drafts/issues/1799
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.