Skip to content

Commit bf800cd

Browse files
author
Simon Pieters
committed
[cssom] Make 'insert a CSS rule' not insert invalid rules. https://www.w3.org/Bugs/Public/show_bug.cgi?id=22769
1 parent 400f3b9 commit bf800cd

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

cssom/Overview.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<h1>CSS Object Model (CSSOM)</h1>
1717

1818

19-
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 23 August 2013</h2>
19+
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 26 August 2013</h2>
2020

2121
<dl>
2222

@@ -90,7 +90,7 @@ <h2 class="no-num no-toc" id="sotd">Status of This Document</h2>
9090
can be found in the
9191
<a href="http://www.w3.org/TR/">W3C technical reports index at http://www.w3.org/TR/.</a></em>
9292

93-
<p class="dontpublish">This is the 23 August 2013 Editor's Draft of CSSOM. Please send comments to
93+
<p class="dontpublish">This is the 26 August 2013 Editor's Draft of CSSOM. Please send comments to
9494
<a href="mailto:www-style@w3.org?subject=%5Bcssom%5D%20">www-style@w3.org</a>
9595
(<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>)
9696
with <samp>[cssom]</samp> at the start of the subject line.
@@ -1802,6 +1802,8 @@ <h3 id="css-rules"><span class="secno">6.4 </span>CSS Rules</h3>
18021802
on argument <var>rule</var>.
18031803
<li><p>If <var>new rule</var> is a syntax error, <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a>
18041804
a <code class="external" data-anolis-spec="dom"><a href="http://dom.spec.whatwg.org/#syntaxerror">SyntaxError</a></code> exception.</li>
1805+
<li><p>Parse <var>new rule</var> according to the appropriate CSS specifications, dropping parts that are said to be ignored. If the whole style rule is
1806+
dropped, <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a> a <code class="external" data-anolis-spec="dom"><a href="http://dom.spec.whatwg.org/#syntaxerror">SyntaxError</a></code> exception.
18051807
<li><p>If <var>new rule</var> is an <code title="">@charset</code> at-rule, <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a> a
18061808
<code class="external" data-anolis-spec="dom"><a href="http://dom.spec.whatwg.org/#syntaxerror">SyntaxError</a></code> exception.
18071809
<li><p>Set <var>length</var> to the number of items in <var>list</var>.</li>

cssom/Overview.src.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1723,6 +1723,8 @@ <h3>CSS Rules</h3>
17231723
on argument <var>rule</var>.
17241724
<li><p>If <var>new rule</var> is a syntax error, <span data-anolis-spec='dom' title='concept-throw'>throw</span>
17251725
a <code data-anolis-spec='dom'>SyntaxError</code> exception.</p></li>
1726+
<li><p>Parse <var>new rule</var> according to the appropriate CSS specifications, dropping parts that are said to be ignored. If the whole style rule is
1727+
dropped, <span data-anolis-spec='dom' title='concept-throw'>throw</span> a <code data-anolis-spec='dom'>SyntaxError</code> exception.
17261728
<li><p>If <var>new rule</var> is an <code title>@charset</code> at-rule, <span data-anolis-spec='dom' title='concept-throw'>throw</span> a
17271729
<code data-anolis-spec='dom'>SyntaxError</code> exception.
17281730
<li><p>Set <var>length</var> to the number of items in <var>list</var>.</p></li>

0 commit comments

Comments
 (0)