Skip to content

Commit 4eb23ae

Browse files
author
Simon Pieters
committed
[cssom] Throw for insertRule('@charset ...',0). https://www.w3.org/Bugs/Public/show_bug.cgi?id=22207
1 parent fab412a commit 4eb23ae

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

cssom/Overview.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,8 @@ <h4 id="the-cssstylesheet-interface"><span class="secno">6.1.2 </span>The <code
995995
<li><p>Set <var>newRule</var> to the results of performing <a href="#parse-a-css-rule">parse a CSS rule</a>
996996
on argument <var>rule</var>, <a class="external" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throwing</a>
997997
a <code class="external"><a href="http://dom.spec.whatwg.org/#syntaxerror">SyntaxError</a></code> exception if a parse error occurs.</li>
998+
<li><p>If <var title="">newRule</var> is an <code title="">@charset</code> at-rule, <a class="external" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a> a
999+
<code class="external"><a href="http://dom.spec.whatwg.org/#syntaxerror">SyntaxError</a></code> exception.
9981000
<li><p>Set <var>N</var> to <code>cssLength.length</code>.</li>
9991001
<li><p>If argument <var>index</var> is greater than <var>N</var>, then <a class="external" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a>
10001002
an <code class="external"><a href="http://dom.spec.whatwg.org/#indexsizeerror">IndexSizeError</a></code> exception.</li>

cssom/Overview.src.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,8 @@ <h4>The <code title>CSSStyleSheet</code> Interface</h4>
925925
<li><p>Set <var>newRule</var> to the results of performing <span>parse a CSS rule</span>
926926
on argument <var>rule</var>, <span data-anolis-spec='dom' title='concept-throw'>throwing</span>
927927
a <code data-anolis-spec='dom'>SyntaxError</code> exception if a parse error occurs.</p></li>
928+
<li><p>If <var title>newRule</var> is an <code title>@charset</code> at-rule, <span data-anolis-spec='dom' title='concept-throw'>throw</span> a
929+
<code data-anolis-spec='dom'>SyntaxError</code> exception.
928930
<li><p>Set <var>N</var> to <code>cssLength.length</code>.</p></li>
929931
<li><p>If argument <var>index</var> is greater than <var>N</var>, then <span data-anolis-spec='dom' title='concept-throw'>throw</span>
930932
an <code data-anolis-spec='dom'>IndexSizeError</code> exception.</p></li>

0 commit comments

Comments
 (0)