This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 29433 - CSSRule#cssText setter should do nothing
Summary: CSSRule#cssText setter should do nothing
Status: RESOLVED FIXED
Alias: None
Product: CSS
Classification: Unclassified
Component: CSSOM (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Simon Pieters
QA Contact: public-css-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-08 15:29 UTC by Simon Pieters
Modified: 2016-02-08 15:43 UTC (History)
0 users

See Also:


Attachments

Description Simon Pieters 2016-02-08 15:29:50 UTC
https://drafts.csswg.org/cssom/#dom-cssrule-csstext

[[
On setting the cssText attribute these steps must be run:

Let new rule be the returned value of parsing the value.
If new rule is a syntax error, terminate this algorithm.
If the type of new rule does not match the type of the current object throw an InvalidModificationError exception.
Replace the current object with new rule.
]]

In WebKit/Blink/Gecko/IE11 the setter exists but does nothing. Align with reality.

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3873