Skip to content

Commit

Permalink
[cssom] Revert CSSNamespaceRule namespaceURI/prefix to be readonly. F…
Browse files Browse the repository at this point in the history
  • Loading branch information
zcorpan committed Aug 26, 2015
1 parent edd0d00 commit 30e20e4
Showing 1 changed file with 3 additions and 27 deletions.
30 changes: 3 additions & 27 deletions cssom/Overview.bs
Expand Up @@ -2015,40 +2015,16 @@ margin at-rule, with the following properties:
The <code>CSSNamespaceRule</code> interface represents an <code>@namespace</code> at-rule.

<pre class=idl>interface CSSNamespaceRule : CSSRule {
[TreatNullAs=EmptyString] attribute DOMString namespaceURI;
[TreatNullAs=EmptyString] attribute DOMString prefix;
readonly attribute DOMString namespaceURI;
readonly attribute DOMString prefix;
};</pre>

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

On setting, the {{CSSNamespaceRule/namespaceURI}} attribute must run the following steps:

<ol>
<li>Let <var>parent</var> be the <a for=CSSRule>parent CSS style sheet</a>.
<li>Let <var>list</var> be the <a for=CSSStyleSheet>CSS rules</a> of <var>parent</var>, or
null if <var>parent</var> is null.
<li>If <var>list</var> is not null and contains anything other than
<code>@import</code> at-rules, and <code>@namespace</code> at-rules,
<a>throw</a> an {{InvalidStateError}} exception.
<li>Set the namespace of the <code>@namespace</code> at-rule to the given value.
</ol>

The <dfn attribute for=CSSNamespaceRule>prefix</dfn> attribute must return the prefix of the <code>@namespace</code> at-rule or the
empty string if there is no prefix.

On setting, the {{CSSNamespaceRule/prefix}} attribute must run the following steps:

<ol>
<li>Let <var>parent</var> be the <a for=CSSRule>parent CSS style sheet</a>.
<li>Let <var>list</var> be the <a for=CSSStyleSheet>CSS rules</a> of <var>parent</var>, or
null if <var>parent</var> is null.
<li>If <var>list</var> is not null and contains anything other than
<code>@import</code> at-rules, and <code>@namespace</code> at-rules,
<a>throw</a> an {{InvalidStateError}} exception.
<li>Set the prefix of the <code>@namespace</code> at-rule to the given value.
</ol>


CSS Declarations {#css-declarations}
------------------------------------
Expand Down

0 comments on commit 30e20e4

Please sign in to comment.