You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
by CSS, then <aclass="external" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a>
1738
1738
a <codeclass="external"><ahref="http://dom.spec.whatwg.org/#hierarchyrequesterror">HierarchyRequestError</a></code> exception. <ahref="#refsCSS">[CSS]</a></p>
1739
1739
<pclass="note">For example, a CSS style sheet cannot contain an <codetitle="">@import</code> at-rule after a rule set.</li>
1740
+
<li><p>If <vartitle="">newRule</var> is an <codetitle="">@namespace</code> at-rule, and <vartitle="">list</var> contains anything other than
1741
+
<codetitle="">@charset</code> at-rules, <codetitle="">@import</code> at-rules, and <codetitle="">@namespace</code> at-rules,
1742
+
<aclass="external" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a> an <codeclass="external"><ahref="http://dom.spec.whatwg.org/#invalidstateerror">InvalidStateError</a></code> exception.
1740
1743
<li><p>Insert <var>newRule</var> into <var>list</var> at the zero-indexed position <var>index</var>.<p></li>
<li><p>If <var>index</var> is greater than or equal to <var>N</var>, then <aclass="external" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a>
1750
1753
an <codeclass="external"><ahref="http://dom.spec.whatwg.org/#indexsizeerror">IndexSizeError</a></code> exception.</li>
1751
1754
<li><p>Set <var>oldRule</var> to the <var>index</var>th item in <var>list</var>.</li>
1755
+
<li><p>If <vartitle="">oldRule</var> is an <codetitle="">@namespace</code> at-rule, and <vartitle="">list</var> contains anything other than
1756
+
<codetitle="">@charset</code> at-rules, <codetitle="">@import</code> at-rules, and <codetitle="">@namespace</code> at-rules,
1757
+
<aclass="external" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a> an <codeclass="external"><ahref="http://dom.spec.whatwg.org/#invalidstateerror">InvalidStateError</a></code> exception.
1752
1758
<li><p>Remove rule <var>oldRule</var> from <var>list</var> at the zero-indexed position <var>index</var>.<p></li>
<p>The <dfnid="dom-cssnamespacerule-namespaceuri" title="dom-CSSNamespaceRule-namespaceURI"><code>namespaceURI</code></dfn> attribute must return the namespace of the <code>@namespace</code> rule.</p>
1989
+
<p>The <dfnid="dom-cssnamespacerule-namespaceuri" title="dom-CSSNamespaceRule-namespaceURI"><code>namespaceURI</code></dfn> attribute, on getting, must return the namespace of the
1990
+
<code>@namespace</code> rule. On setting, the <codetitle="dom-CSSNamespaceRule-namespaceURI"><ahref="#dom-cssnamespacerule-namespaceuri">namespaceURI</a></code> attribute must run the following steps:</p>
1991
+
1992
+
<ol>
1993
+
<li><p>Let <vartitle="">style sheet</var> be the value returned by <codetitle="dom-CSSRule-parentStyleSheet"><ahref="#dom-cssrule-parentstylesheet">parentStyleSheet</a></code>.
1994
+
<li><p>Let <vartitle="">list</var> be the value returned by <codetitle="dom-CSSStyleSheet-cssRules"><ahref="#dom-cssstylesheet-cssrules">cssRules</a></code> of <vartitle="">style sheet</var>, or
1995
+
<codetitle="">null</code> if <vartitle="">style sheet</var> is <codetitle="">null</code>.
1996
+
<li><p>If <vartitle="">list</var> is not <codetitle="">null</code> and contains anything other than
1997
+
<codetitle="">@charset</code> at-rules, <codetitle="">@import</code> at-rules, and <codetitle="">@namespace</code> at-rules,
1998
+
<aclass="external" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a> an <codeclass="external"><ahref="http://dom.spec.whatwg.org/#invalidstateerror">InvalidStateError</a></code> exception.
1999
+
<li><p>Set the namespace of the <codetitle="">@namespace</code> at-rule to the given value.
2000
+
</ol>
1984
2001
1985
2002
<p>The <dfnid="dom-cssnamespacerule-prefix" title="dom-CSSNamespaceRule-prefix"><code>prefix</code></dfn> attribute must return the prefix of the <code>@namespace</code> rule or the
1986
-
empty string if there is no prefix.</p>
2003
+
empty string if there is no prefix. On setting, the <codetitle="dom-CSSNamespaceRule-prefix"><ahref="#dom-cssnamespacerule-prefix">prefix</a></code> attribute must run the following steps:</p>
1987
2004
2005
+
<ol>
2006
+
<li><p>Let <vartitle="">style sheet</var> be the value returned by <codetitle="dom-CSSRule-parentStyleSheet"><ahref="#dom-cssrule-parentstylesheet">parentStyleSheet</a></code>.
2007
+
<li><p>Let <vartitle="">list</var> be the value returned by <codetitle="dom-CSSStyleSheet-cssRules"><ahref="#dom-cssstylesheet-cssrules">cssRules</a></code> of <vartitle="">style sheet</var>, or
2008
+
<codetitle="">null</code> if <vartitle="">style sheet</var> is <codetitle="">null</code>.
2009
+
<li><p>If <vartitle="">list</var> is not <codetitle="">null</code> and contains anything other than
2010
+
<codetitle="">@charset</code> at-rules, <codetitle="">@import</code> at-rules, and <codetitle="">@namespace</code> at-rules,
2011
+
<aclass="external" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a> an <codeclass="external"><ahref="http://dom.spec.whatwg.org/#invalidstateerror">InvalidStateError</a></code> exception.
2012
+
<li><p>Set the prefix of the <codetitle="">@namespace</code> at-rule to the given value.
<p>The <dfntitle=dom-CSSNamespaceRule-namespaceURI><code>namespaceURI</code></dfn> attribute must return the namespace of the <code>@namespace</code> rule.</p>
1919
+
<p>The <dfntitle=dom-CSSNamespaceRule-namespaceURI><code>namespaceURI</code></dfn> attribute, on getting, must return the namespace of the
1920
+
<code>@namespace</code> rule. On setting, the <codetitle=dom-CSSNamespaceRule-namespaceURI>namespaceURI</code> attribute must run the following steps:</p>
1921
+
1922
+
<ol>
1923
+
<li><p>Let <vartitle>style sheet</var> be the value returned by <codetitle=dom-CSSRule-parentStyleSheet>parentStyleSheet</code>.
1924
+
<li><p>Let <vartitle>list</var> be the value returned by <codetitle=dom-CSSStyleSheet-cssRules>cssRules</code> of <vartitle>style sheet</var>, or
1925
+
<codetitle>null</code> if <vartitle>style sheet</var> is <codetitle>null</code>.
1926
+
<li><p>If <vartitle>list</var> is not <codetitle>null</code> and contains anything other than
1927
+
<codetitle>@charset</code> at-rules, <codetitle>@import</code> at-rules, and <codetitle>@namespace</code> at-rules,
1928
+
<spandata-anolis-spec='dom' title='concept-throw'>throw</span> an <codedata-anolis-spec=dom>InvalidStateError</code> exception.
1929
+
<li><p>Set the namespace of the <codetitle>@namespace</code> at-rule to the given value.
1930
+
</ol>
1914
1931
1915
1932
<p>The <dfntitle=dom-CSSNamespaceRule-prefix><code>prefix</code></dfn> attribute must return the prefix of the <code>@namespace</code> rule or the
1916
-
empty string if there is no prefix.</p>
1933
+
empty string if there is no prefix. On setting, the <codetitle=dom-CSSNamespaceRule-prefix>prefix</code> attribute must run the following steps:</p>
1917
1934
1935
+
<ol>
1936
+
<li><p>Let <vartitle>style sheet</var> be the value returned by <codetitle=dom-CSSRule-parentStyleSheet>parentStyleSheet</code>.
1937
+
<li><p>Let <vartitle>list</var> be the value returned by <codetitle=dom-CSSStyleSheet-cssRules>cssRules</code> of <vartitle>style sheet</var>, or
1938
+
<codetitle>null</code> if <vartitle>style sheet</var> is <codetitle>null</code>.
1939
+
<li><p>If <vartitle>list</var> is not <codetitle>null</code> and contains anything other than
1940
+
<codetitle>@charset</code> at-rules, <codetitle>@import</code> at-rules, and <codetitle>@namespace</code> at-rules,
1941
+
<spandata-anolis-spec='dom' title='concept-throw'>throw</span> an <codedata-anolis-spec=dom>InvalidStateError</code> exception.
1942
+
<li><p>Set the prefix of the <codetitle>@namespace</code> at-rule to the given value.
0 commit comments