Skip to content

Commit a6df904

Browse files
author
Simon Pieters
committed
[cssom] Make insertRule properly return a value
1 parent 062fc73 commit a6df904

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

cssom/Overview.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<h1>CSS Object Model (CSSOM)</h1>
3333

3434

35-
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 30 May 2013</h2>
35+
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 31 May 2013</h2>
3636

3737
<dl>
3838

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

101-
<p class="dontpublish">This is the 30 May 2013 Editor's Draft of CSSOM. Please send comments to
101+
<p class="dontpublish">This is the 31 May 2013 Editor's Draft of CSSOM. Please send comments to
102102
<a href="mailto:www-style@w3.org?subject=%5Bcssom%5D%20">www-style@w3.org</a>
103103
(<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>)
104104
with <samp>[cssom]</samp> at the start of the subject line.
@@ -1004,8 +1004,8 @@ <h4 id="the-cssstylesheet-interface"><span class="secno">6.1.2 </span>The <code
10041004
reflected in the returned object.</p>
10051005

10061006
<p>The <dfn id="dom-cssstylesheet-insertrule" title="dom-CSSStyleSheet-insertRule"><code>insertRule(<var title="">rule</var>, <var title="">index</var>)</code></dfn> method must <a href="#insert-a-css-rule">insert a CSS
1007-
rule</a>
1008-
<var title="">rule</var> in the CSS rule list returned by <code title="dom-CSSStyleSheet-cssRules"><a href="#dom-cssstylesheet-cssrules">cssRules</a></code> at <var title="">index</var>.
1007+
rule</a> <var title="">rule</var> in the CSS rule list returned by <code title="dom-CSSStyleSheet-cssRules"><a href="#dom-cssstylesheet-cssrules">cssRules</a></code> at <var title="">index</var>, and return
1008+
<var title="">index</var>.
10091009

10101010
<p>The <dfn id="dom-cssstylesheet-deleterule" title="dom-CSSStyleSheet-deleteRule"><code>deleteRule(<var title="">index</var>)</code></dfn> method must <a href="#remove-a-css-rule">remove a CSS rule</a> in the CSS rule
10111011
list returned by <code title="dom-CSSStyleSheet-cssRules"><a href="#dom-cssstylesheet-cssrules">cssRules</a></code> at <var title="">index</var>.
@@ -1763,7 +1763,6 @@ <h3 id="css-rules"><span class="secno">6.4 </span>CSS Rules</h3>
17631763
<code title="">@charset</code> at-rules, <code title="">@import</code> at-rules, and <code title="">@namespace</code> at-rules,
17641764
<a class="external" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a> an <code class="external"><a href="http://dom.spec.whatwg.org/#invalidstateerror">InvalidStateError</a></code> exception.
17651765
<li><p>Insert <var title="">new rule</var> into <var title="">list</var> at the zero-indexed position <var title="">index</var>.<p></li>
1766-
<li><p>Return <var title="">index</var>.</li>
17671766
</ol>
17681767
<p class="XXX">DOM-2 CSS specifies that a <code>NO_MODIFICATION_ALLOWED_ERR</code> exception is thrown
17691768
if the style sheet is read-only. Are there any read-only style sheets?</p>
@@ -1964,7 +1963,8 @@ <h4 id="the-cssmediarule-interface"><span class="secno">6.4.6 </span>The <code t
19641963
specified with the <code title="">@media</code> at-rule.</p>
19651964

19661965
<p>The <dfn id="dom-cssmediarule-insertrule" title="dom-CSSMediaRule-insertRule"><code>insertRule(<var title="">rule</var>, <var title="">index</var>)</code></dfn> method must <a href="#insert-a-css-rule">insert a CSS
1967-
rule</a> <var title="">rule</var> into the CSS rule list returned by <code title="dom-CSSMediaRule-cssRules"><a href="#dom-cssmediarule-cssrules">cssRules</a></code> at <var title="">index</var>.</p>
1966+
rule</a> <var title="">rule</var> into the CSS rule list returned by <code title="dom-CSSMediaRule-cssRules"><a href="#dom-cssmediarule-cssrules">cssRules</a></code> at <var title="">index</var>, and
1967+
return <var title="">index</var>.</p>
19681968

19691969
<p>The <dfn id="dom-cssmediarule-deleterule" title="dom-CSSMediaRule-deleteRule"><code>deleteRule(<var title="">index</var>)</code></dfn> method must <a href="#remove-a-css-rule">remove a CSS rule</a> from the CSS rule
19701970
list returned by <code title="dom-CSSMediaRule-cssRules"><a href="#dom-cssmediarule-cssrules">cssRules</a></code> at <var title="">index</var>.</p>

cssom/Overview.src.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -935,8 +935,8 @@ <h4>The <code title>CSSStyleSheet</code> Interface</h4>
935935
reflected in the returned object.</p>
936936

937937
<p>The <dfn title=dom-CSSStyleSheet-insertRule><code>insertRule(<var title>rule</var>, <var title>index</var>)</code></dfn> method must <span>insert a CSS
938-
rule</span>
939-
<var title>rule</var> in the CSS rule list returned by <code title=dom-CSSStyleSheet-cssRules>cssRules</code> at <var title>index</var>.
938+
rule</span> <var title>rule</var> in the CSS rule list returned by <code title=dom-CSSStyleSheet-cssRules>cssRules</code> at <var title>index</var>, and return
939+
<var title>index</var>.
940940

941941
<p>The <dfn title=dom-CSSStyleSheet-deleteRule><code>deleteRule(<var title>index</var>)</code></dfn> method must <span>remove a CSS rule</span> in the CSS rule
942942
list returned by <code title=dom-CSSStyleSheet-cssRules>cssRules</code> at <var title>index</var>.
@@ -1694,7 +1694,6 @@ <h3>CSS Rules</h3>
16941694
<code title>@charset</code> at-rules, <code title>@import</code> at-rules, and <code title>@namespace</code> at-rules,
16951695
<span data-anolis-spec='dom' title='concept-throw'>throw</span> an <code data-anolis-spec=dom>InvalidStateError</code> exception.
16961696
<li><p>Insert <var title>new rule</var> into <var title>list</var> at the zero-indexed position <var title>index</var>.<p></li>
1697-
<li><p>Return <var title>index</var>.</p></li>
16981697
</ol>
16991698
<p class='XXX'>DOM-2 CSS specifies that a <code>NO_MODIFICATION_ALLOWED_ERR</code> exception is thrown
17001699
if the style sheet is read-only. Are there any read-only style sheets?</p>
@@ -1895,7 +1894,8 @@ <h4>The <code title>CSSMediaRule</code> Interface</h4>
18951894
specified with the <code title>@media</code> at-rule.</p>
18961895

18971896
<p>The <dfn title=dom-CSSMediaRule-insertRule><code>insertRule(<var title>rule</var>, <var title>index</var>)</code></dfn> method must <span>insert a CSS
1898-
rule</span> <var title>rule</var> into the CSS rule list returned by <code title='dom-CSSMediaRule-cssRules'>cssRules</code> at <var title>index</var>.</p>
1897+
rule</span> <var title>rule</var> into the CSS rule list returned by <code title='dom-CSSMediaRule-cssRules'>cssRules</code> at <var title>index</var>, and
1898+
return <var title>index</var>.</p>
18991899

19001900
<p>The <dfn title=dom-CSSMediaRule-deleteRule><code>deleteRule(<var title>index</var>)</code></dfn> method must <span>remove a CSS rule</span> from the CSS rule
19011901
list returned by <code title='dom-CSSMediaRule-cssRules'>cssRules</code> at <var title>index</var>.</p>

0 commit comments

Comments
 (0)