1.1 --- a/css3-conditional/Overview.src.html Fri Dec 07 11:13:35 2012 +0900 1.2 +++ b/css3-conditional/Overview.src.html Thu Dec 06 18:31:02 2012 -0800 1.3 @@ -861,12 +861,35 @@ 1.4 <dl class='idl-methods'> 1.5 <dt><code>insertRule(DOMString rule, unsigned long index)</code>, returns 1.6 <code>unsigned long</code> 1.7 - <dd>The <code>insertRule</code> operation must insert a CSS rule <var>rule</var> 1.8 - into the CSS rule list returned by <code>cssRules</code> at <var>index</var>. 1.9 + <dd> 1.10 + The <code>insertRule</code> operation must 1.11 + insert a CSS rule <var>rule</var> 1.12 + into the CSS rule list returned by <code>cssRules</code>, 1.13 + such that the inserted rule will be at position <var>index</var>, 1.14 + and any rules previously at <var>index</var> or higher 1.15 + will increase their index by one. 1.16 + It must throw INDEX_SIZE_ERR 1.17 + if index is greater than <code>cssRules.length</code>. 1.18 + It must throw SYNTAX_ERR 1.19 + if the rule has a syntax error and is unparseable; 1.20 + this does not include syntax errors handled by error handling rules 1.21 + for constructs inside of the rule. 1.22 + It must throw HIERARCHY_REQUEST_ERR 1.23 + if the rule cannot be inserted at the location specified, 1.24 + for example, if an ''@import'' rule is inserted inside a group rule. 1.25 + 1.26 + <span class="issue">This needs to specify what to do 1.27 + if <code>rule</code> is the empty string, 1.28 + if it contains more than one CSS rule, 1.29 + or if it contains garbage after a valid rule.</span> 1.30 1.31 <dt><code>deleteRule (unsigned long index)</code>, return <code>void</code> 1.32 - <dd>The <code>deleteRule</code> operation must remove a CSS rule from the 1.33 - CSS rule list returned by <code>cssRules</code> at <var>index</var>. 1.34 + <dd> 1.35 + The <code>deleteRule</code> operation must 1.36 + remove a CSS rule from 1.37 + the CSS rule list returned by <code>cssRules</code> at <var>index</var>. 1.38 + It must throw INDEX_SIZE_ERR 1.39 + if index is greater than or equal to <code>cssRules.length</code>. 1.40 </dl> 1.41 1.42