Skip to content

Commit 30e20e4

Browse files
committed
[cssom] Revert CSSNamespaceRule namespaceURI/prefix to be readonly. Fixes https://www.w3.org/Bugs/Public/show_bug.cgi?id=22208
1 parent edd0d00 commit 30e20e4

1 file changed

Lines changed: 3 additions & 27 deletions

File tree

cssom/Overview.bs

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,40 +2015,16 @@ margin at-rule, with the following properties:
20152015
The <code>CSSNamespaceRule</code> interface represents an <code>@namespace</code> at-rule.
20162016

20172017
<pre class=idl>interface CSSNamespaceRule : CSSRule {
2018-
[TreatNullAs=EmptyString] attribute DOMString namespaceURI;
2019-
[TreatNullAs=EmptyString] attribute DOMString prefix;
2018+
readonly attribute DOMString namespaceURI;
2019+
readonly attribute DOMString prefix;
20202020
};</pre>
20212021

2022-
The <dfn attribute for=CSSNamespaceRule>namespaceURI</dfn> attribute, on getting, must return the namespace of the
2022+
The <dfn attribute for=CSSNamespaceRule>namespaceURI</dfn> attribute must return the namespace of the
20232023
<code>@namespace</code> at-rule.
20242024

2025-
On setting, the {{CSSNamespaceRule/namespaceURI}} attribute must run the following steps:
2026-
2027-
<ol>
2028-
<li>Let <var>parent</var> be the <a for=CSSRule>parent CSS style sheet</a>.
2029-
<li>Let <var>list</var> be the <a for=CSSStyleSheet>CSS rules</a> of <var>parent</var>, or
2030-
null if <var>parent</var> is null.
2031-
<li>If <var>list</var> is not null and contains anything other than
2032-
<code>@import</code> at-rules, and <code>@namespace</code> at-rules,
2033-
<a>throw</a> an {{InvalidStateError}} exception.
2034-
<li>Set the namespace of the <code>@namespace</code> at-rule to the given value.
2035-
</ol>
2036-
20372025
The <dfn attribute for=CSSNamespaceRule>prefix</dfn> attribute must return the prefix of the <code>@namespace</code> at-rule or the
20382026
empty string if there is no prefix.
20392027

2040-
On setting, the {{CSSNamespaceRule/prefix}} attribute must run the following steps:
2041-
2042-
<ol>
2043-
<li>Let <var>parent</var> be the <a for=CSSRule>parent CSS style sheet</a>.
2044-
<li>Let <var>list</var> be the <a for=CSSStyleSheet>CSS rules</a> of <var>parent</var>, or
2045-
null if <var>parent</var> is null.
2046-
<li>If <var>list</var> is not null and contains anything other than
2047-
<code>@import</code> at-rules, and <code>@namespace</code> at-rules,
2048-
<a>throw</a> an {{InvalidStateError}} exception.
2049-
<li>Set the prefix of the <code>@namespace</code> at-rule to the given value.
2050-
</ol>
2051-
20522028

20532029
CSS Declarations {#css-declarations}
20542030
------------------------------------

0 commit comments

Comments
 (0)