New issue
Advanced search Search tips

Issue 668245 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

Updating style tag's textContent resets disabled flag

Reported by b...@simpla.io, Nov 23 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36

Steps to reproduce the problem:
1. Add a style tag to the head / body
2. Set `disabled` to true on that style tag
3. Set textContent to any valid CSS value in that style tag

What is the expected behavior?
The styles should not be applied to the document, and the disabled property on the style tag should be true.

What went wrong?
The style tag's disabled property is reset back to false, and the stylesheet is applied to the document.

Did this work before? N/A 

Does this work in other browsers? No
 The exact same behaviour can be seen in FireFox, Safari and Safari Mobile. The behaviour doesn't appear to exist in IE 11 or Edge.   

Chrome version: 54.0.2840.98  Channel: stable
OS Version: OS X 10.12.1
Flash Version: Shockwave Flash 23.0 r0

https://jsbin.com/dopawirici/edit?html,output
 
index.html
393 bytes View Download
Labels: -Pri-2 Needs-Triage-M54 M-54 Pri-1

Comment 2 by tkent@chromium.org, Nov 24 2016

Components: -Blink>DOM Blink>HTML
Labels: -Pri-1 -M-54 -Needs-Triage-M54 Pri-3
Status: Available (was: Unconfirmed)
Confirmed.

Priority is low because 'disabled' property is no standardized.
https://html.spec.whatwg.org/multipage/semantics.html#the-style-element

Project Member

Comment 3 by sheriffbot@chromium.org, Nov 24 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 4 by kochi@chromium.org, Nov 27 2017

Status: Available (was: Untriaged)
Project Member

Comment 5 by sheriffbot@chromium.org, Nov 27

Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Hotlist-Recharge-Cold
Status: Available (was: Untriaged)

Sign in to add a comment