cssom/Overview.src.html

changeset 8372
b3a214e224d7
parent 8371
ca20cc414744
child 8373
37cd62aced08
     1.1 --- a/cssom/Overview.src.html	Fri Jun 07 10:32:38 2013 +0200
     1.2 +++ b/cssom/Overview.src.html	Fri Jun 07 14:43:47 2013 +0200
     1.3 @@ -196,14 +196,14 @@
     1.4  <cite>DOM</cite>,
     1.5  <cite>HTML</cite>,
     1.6  <cite>URL</cite>,
     1.7 -<!--<cite>Fetch</cite>,-->
     1.8 +<cite>Fetch</cite>,
     1.9  <cite>Associating Style Sheets with XML documents</cite>
    1.10  and
    1.11  <cite>XML</cite>.
    1.12  <span data-anolis-ref>DOM</span>
    1.13  <span data-anolis-ref>HTML</span>
    1.14  <span data-anolis-ref>URL</span>
    1.15 -<!--<span data-anolis-ref>CORS</span>-->
    1.16 +<span data-anolis-ref>FETCH</span>
    1.17  <span data-anolis-ref>XMLSS</span>
    1.18  <span data-anolis-ref>XML</span>
    1.19  
    1.20 @@ -795,7 +795,7 @@
    1.21   <dd><p>The literal string "<code title>text/css</code>".</p></dd>
    1.22  
    1.23   <dt><dfn title=concept-css-style-sheet-location>location</dfn></dt>
    1.24 - <dd><p>The <span data-anolis-spec=url title=concept-url>URL</span> of the
    1.25 + <dd><p>The <span data-anolis-spec=url title=concept-absolute-url>absolute URL</span> of the first request of the
    1.26   <span>CSS style sheet</span> or null if the <span>CSS style sheet</span> was
    1.27   embedded.</p></dd>
    1.28  
    1.29 @@ -870,6 +870,9 @@
    1.30   <dt><dfn title=concept-css-style-sheet-css-rules>CSS rules</dfn></dt>
    1.31   <dd><p>The <span title="CSS rule">CSS rules</span> associated with the
    1.32   <span>CSS style sheet</span>.</p></dd>
    1.33 + 
    1.34 + <dt><dfn title=concept-css-style-sheet-origin-clean-flag>origin-clean flag</dfn>
    1.35 + <dd><p>Either set or clear. If it is set, the API allows reading and modifying of the <span title=concept-css-style-sheet-css-rules>CSS rules</span>.
    1.36  </dl>
    1.37  
    1.38  <p>When you are to <span>create a CSS style sheet</span> the above properties,
    1.39 @@ -951,19 +954,35 @@
    1.40  <p>The <dfn title=dom-CSSStyleSheet-ownerRule><code>ownerRule</code></dfn> attribute must return the <span title=concept-css-style-sheet-owner-css-rule>owner
    1.41  CSS rule</span> or null if none. If a value other than null is ever returned, than that same value must always be returned on each get access.</p>
    1.42  
    1.43 -<p>The <dfn title=dom-CSSStyleSheet-cssRules><code>cssRules</code></dfn> attribute must return a read-only, live <code>CSSRuleList</code> object representing
    1.44 -the <span title=concept-css-style-sheet-css-rules>CSS rules</span>. The same object must be returned on each get access.</p>
    1.45 -<p class='note'>Even though the returned <code>CSSRuleList</code> object is read-only (from the perspective of
    1.46 -client-authored script), it can nevertheless change over time due to its liveness status. For example, invoking
    1.47 -the <code title=dom-CSSStyleSheet-insertRule>insertRule()</code> or <code title=dom-CSSStyleSheet-deleteRule>deleteRule()</code> methods can result in mutations
    1.48 -reflected in the returned object.</p>
    1.49 -
    1.50 -<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
    1.51 -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
    1.52 -<var title>index</var>.
    1.53 -
    1.54 -<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
    1.55 -list returned by <code title=dom-CSSStyleSheet-cssRules>cssRules</code> at <var title>index</var>.
    1.56 +<p>The <dfn title=dom-CSSStyleSheet-cssRules><code>cssRules</code></dfn> attribute must follow these steps:
    1.57 +
    1.58 +<ol>
    1.59 + <li><p>If the <span title=concept-css-style-sheet-origin-clean-flag>origin-clean flag</span> is clear,
    1.60 + <span title=concept-throw data-anolis-spec=dom>throw</span> a <code data-anolis-spec=dom>SecurityError</code> exception.
    1.61 + <li><p>Return a read-only, live <code>CSSRuleList</code> object representing
    1.62 + the <span title=concept-css-style-sheet-css-rules>CSS rules</span>. The same object must be returned on each get access.</p>
    1.63 + <p class='note'>Even though the returned <code>CSSRuleList</code> object is read-only (from the perspective of
    1.64 + client-authored script), it can nevertheless change over time due to its liveness status. For example, invoking
    1.65 + the <code title=dom-CSSStyleSheet-insertRule>insertRule()</code> or <code title=dom-CSSStyleSheet-deleteRule>deleteRule()</code> methods can result in
    1.66 + mutations reflected in the returned object.</p>
    1.67 +</ol>
    1.68 +
    1.69 +<p>The <dfn title=dom-CSSStyleSheet-insertRule><code>insertRule(<var title>rule</var>, <var title>index</var>)</code></dfn> method must run the following steps:
    1.70 +
    1.71 +<ol>
    1.72 + <li><p>If the <span title=concept-css-style-sheet-origin-clean-flag>origin-clean flag</span> is clear,
    1.73 + <span title=concept-throw data-anolis-spec=dom>throw</span> a <code data-anolis-spec=dom>SecurityError</code> exception.
    1.74 + <li><p>Return the result of invoking <span>insert a CSS rule</span> <var title>rule</var> in the <span title=concept-css-style-sheet-css-rules>CSS rules</span>
    1.75 + at <var title>index</var>.
    1.76 +</ol>
    1.77 +
    1.78 +<p>The <dfn title=dom-CSSStyleSheet-deleteRule><code>deleteRule(<var title>index</var>)</code></dfn> method must run the following steps:
    1.79 +
    1.80 +<ol>
    1.81 + <li><p>If the <span title=concept-css-style-sheet-origin-clean-flag>origin-clean flag</span> is clear,
    1.82 + <span title=concept-throw data-anolis-spec=dom>throw</span> a <code data-anolis-spec=dom>SecurityError</code> exception.
    1.83 + <li><p><span>Remove a CSS rule</span> in the <span title=concept-css-style-sheet-css-rules>CSS rules</span> at <var title>index</var>.
    1.84 +</ol>
    1.85  
    1.86  <h3>CSS Style Sheet Collections</h3>
    1.87  
    1.88 @@ -1474,22 +1493,38 @@
    1.89   value is not a <span>supported styling language</span> the user agent
    1.90   may terminate these steps.</p></li>
    1.91  
    1.92 - <li><p><span data-anolis-spec=html title="Resolve a URL">Resolve</span>
    1.93 - the <span data-anolis-spec=url title=concept-url>URL</span> specified by the
    1.94 - <code title>href</code> <span data-anolis-spec=xmlss>pseudo-attribute</span> and then
    1.95 - <span data-anolis-spec=html>fetch</span> it.</p></li>
    1.96 -
    1.97 - <li>
    1.98 -  <p>When the resource is available, the document is in
    1.99 -  <span data-anolis-spec=dom title=concept-document-quirks>quirks mode</span>
   1.100 -  and the
   1.101 -  <span data-anolis-spec=html>Content-Type metadata</span> of
   1.102 -  the resource is not a <span>supported styling language</span> change the
   1.103 -  <span data-anolis-spec=html>Content-Type metadata</span> of the resource
   1.104 -  to <code title>text/css</code>.</p>
   1.105 - </li>
   1.106 -
   1.107 - <li><p>If the resource is not in a
   1.108 + <li><p>Let <var title>input URL</var> be the value specified by the
   1.109 + <code title>href</code> <span data-anolis-spec=xmlss>pseudo-attribute</span>.
   1.110 + 
   1.111 + <li><p>Let <var title>base URL</var> be the processing instruction's <span data-anolis-spec=dom title=concept-node-document>node document</span>'s
   1.112 + <span data-anolis-spec=html>document base URL</span>.
   1.113 + 
   1.114 + <li><p>Let <var title>origin</var> be the processing instruction's <span data-anolis-spec=dom title=concept-node-document>node document</span>'s
   1.115 + <span data-anolis-spec=html>origin</span>.
   1.116 +
   1.117 + <li><p>Let <var title>parsed URL</var> be the return value of invoking the <span data-anolis-spec=url title=concept-url-parser>URL parser</span> with the
   1.118 + string <var title>input URL</var> and the base URL <var title>base URL</var>.
   1.119 + 
   1.120 + <li><p>If <var title>parsed URL</var> is failure, terminate these steps.
   1.121 + 
   1.122 + <li><p>Let <var title>request</var> be a new <span data-anolis-spec=fetch title=concept-request>request</span>, with the
   1.123 + <span data-anolis-spec=fetch title=concept-request-url>url</span> <var title>parsed URL</var>,
   1.124 + <span data-anolis-spec=fetch title=concept-request-origin>origin</span> <var title>origin</var> and
   1.125 + <span data-anolis-spec=fetch title=concept-request-referrer>referrer</span> <var title>base URL</var>.
   1.126 +
   1.127 + <li><p>Let <var title>response</var> be the result of <span data-anolis-spec=fetch title=concept-fetch>fetching</span> <var title>request</var>.</p></li>
   1.128 +
   1.129 + <li><p>Wait until <var title>response</var> is available.
   1.130 + 
   1.131 + <li><p>If <var title>response</var> is a <span data-anolis-spec=fetch title=concept-network-error>network error</span>, terminate these steps.
   1.132 + 
   1.133 + <li><p>If the processing instruction's <span data-anolis-spec=dom title=concept-node-document>node document</span> is
   1.134 + in <span data-anolis-spec=dom title=concept-document-quirks>quirks mode</span>, <var title>response</var> is
   1.135 + <span data-anolis-spec=fetch>CORS-same-origin</span> and the <span data-anolis-spec=html>Content-Type metadata</span> of <var title>response</var> is not a
   1.136 + <span>supported styling language</span> change the <span data-anolis-spec=html>Content-Type metadata</span> of <var title>response</var> to
   1.137 + <code title>text/css</code>.
   1.138 +
   1.139 + <li><p>If <var title>response</var> is not in a
   1.140   <span>supported styling language</span> terminate these steps.</p></li>
   1.141  
   1.142   <li>
   1.143 @@ -1497,29 +1532,31 @@
   1.144  
   1.145    <dl>
   1.146     <dt><span title=concept-css-style-sheet-location>location</span></dt>
   1.147 -   <dd><p>The <span data-anolis-spec=url title=concept-absolute-url>absolute URL</span> of the
   1.148 -   resource.</p></dd>
   1.149 +   <dd><p>The result of invoking the <span data-anolis-spec=url title=concept-url-serializer>URL serializer</span> with <var title>parsed URL</var>.</p></dd>
   1.150  
   1.151     <dt><span title=concept-css-style-sheet-parent>parent</span></dt>
   1.152 -   <dd><p>null</p></dd>
   1.153 +   <dd><p>null.</p></dd>
   1.154  
   1.155     <dt><span title=concept-css-style-sheet-owner-node>owner node</span></dt>
   1.156 -   <dd><p>The node.</p></dd>
   1.157 +   <dd><p>The processing instruction.</p></dd>
   1.158  
   1.159     <dt><span title=concept-css-style-sheet-owner-css-rule>owner CSS rule</span></dt>
   1.160 -   <dd><p>null</p></dd>
   1.161 +   <dd><p>null.</p></dd>
   1.162  
   1.163     <dt><span title=concept-css-style-sheet-media>media</span></dt>
   1.164     <dd><p>The value of the <code title>media</code> <span data-anolis-spec=xmlss>pseudo-attribute</span>
   1.165     if any, or the empty string otherwise.</p></dd>
   1.166  
   1.167     <dt><span title=concept-css-style-sheet-title>title</span></dt>
   1.168 -   <dd><p><var title>title</var></p></dd>
   1.169 +   <dd><p><var title>title</var>.</p></dd>
   1.170  
   1.171     <dt><span title=concept-css-style-sheet-alternate-flag>alternate flag</span></dt>
   1.172     <dd><p>Set if the <code title>alternate</code> <span data-anolis-spec=xmlss>pseudo-attribute</span>
   1.173     value is a <span data-anolis-spec=dom>case-sensitive</span> match for
   1.174     "<code title>yes</code>", or clear otherwise.
   1.175 +   
   1.176 +   <dt><span title=concept-css-style-sheet-origin-clean-flag>origin-clean flag</span>
   1.177 +   <dd><p>Set if <var title>response</var> is <span data-anolis-spec=fetch>CORS-same-origin</span>, or clear otherwise.
   1.178    </dl>
   1.179   </li>
   1.180  </ol>
   1.181 @@ -1550,18 +1587,36 @@
   1.182   "<code title>alternate</code>" and <var title>title</var> is the
   1.183   empty string terminate these steps.</p></li>
   1.184  
   1.185 - <li><p><span data-anolis-spec=html title="Resolve a URL">Resolve</span>
   1.186 - the specified <span data-anolis-spec=url title=concept-url>URL</span> and
   1.187 - <span data-anolis-spec=html>fetch</span> it.</p></li>
   1.188 -
   1.189 - <li><p>When the resource is available, the document is in
   1.190 - <span data-anolis-spec=dom title=concept-document-quirks>quirks mode</span>
   1.191 - and the <span data-anolis-spec=html>Content-Type metadata</span> of
   1.192 - the resource is not a <span>supported styling language</span> change the
   1.193 - <span data-anolis-spec=html>Content-Type metadata</span> of the resource
   1.194 - to <code title>text/css</code>.</p></li>
   1.195 -
   1.196 - <li><p>If the resource is not in a
   1.197 + <li><p>Let <var title>input URL</var> be the value specified. <span class=XXX>Be more specific</span>
   1.198 + 
   1.199 + <li><p>Let <var title>base URL</var> be the document's <span data-anolis-spec=html>document base URL</span>. <span class=XXX>Is there a document at this
   1.200 + point?</span>
   1.201 + 
   1.202 + <li><p>Let <var title>origin</var> be the document's <span data-anolis-spec=html>origin</span>.
   1.203 +
   1.204 + <li><p>Let <var title>parsed URL</var> be the return value of invoking the <span data-anolis-spec=url title=concept-url-parser>URL parser</span> with the
   1.205 + string <var title>input URL</var> and the base URL <var title>base URL</var>.
   1.206 + 
   1.207 + <li><p>If <var title>parsed URL</var> is failure, terminate these steps.
   1.208 + 
   1.209 + <li><p>Let <var title>request</var> be a new <span data-anolis-spec=fetch title=concept-request>request</span>, with the
   1.210 + <span data-anolis-spec=fetch title=concept-request-url>url</span> <var title>parsed URL</var>,
   1.211 + <span data-anolis-spec=fetch title=concept-request-origin>origin</span> <var title>origin</var> and
   1.212 + <span data-anolis-spec=fetch title=concept-request-referrer>referrer</span> <var title>base URL</var>.
   1.213 +
   1.214 + <li><p>Let <var title>response</var> be the result of <span data-anolis-spec=fetch title=concept-fetch>fetching</span> <var title>request</var>.</p></li>
   1.215 +
   1.216 + <li><p>Wait until <var title>response</var> is available.
   1.217 + 
   1.218 + <li><p>If <var title>response</var> is a <span data-anolis-spec=fetch title=concept-network-error>network error</span>, terminate these steps.
   1.219 + 
   1.220 + <li><p>If the processing instruction's <span data-anolis-spec=dom title=concept-node-document>node document</span> is
   1.221 + in <span data-anolis-spec=dom title=concept-document-quirks>quirks mode</span>, <var title>response</var> is
   1.222 + <span data-anolis-spec=fetch>CORS-same-origin</span> and the <span data-anolis-spec=html>Content-Type metadata</span> of <var title>response</var> is not a
   1.223 + <span>supported styling language</span> change the <span data-anolis-spec=html>Content-Type metadata</span> of <var title>response</var> to
   1.224 + <code title>text/css</code>.
   1.225 +
   1.226 + <li><p>If <var title>response</var> is not in a
   1.227   <span>supported styling language</span> terminate these steps.</p></li>
   1.228  
   1.229   <li>
   1.230 @@ -1569,30 +1624,32 @@
   1.231  
   1.232    <dl>
   1.233     <dt><span title=concept-css-style-sheet-location>location</span></dt>
   1.234 -   <dd><p>The <span data-anolis-spec=url title=concept-absolute-url>absolute URL</span> of the
   1.235 -   resource.</p></dd>
   1.236 +   <dd><p>The result of invoking the <span data-anolis-spec=url title=concept-url-serializer>URL serializer</span> with <var title>parsed URL</var>.</p></dd>
   1.237  
   1.238     <dt><span title=concept-css-style-sheet-owner-node>owner node</span></dt>
   1.239 -   <dd><p>null</p></dd>
   1.240 +   <dd><p>null.</p></dd>
   1.241  
   1.242     <dt><span title=concept-css-style-sheet-parent>parent</span></dt>
   1.243 -   <dd><p>null</p></dd>
   1.244 +   <dd><p>null.</p></dd>
   1.245  
   1.246     <dt><span title=concept-css-style-sheet-owner-css-rule>owner CSS rule</span></dt>
   1.247 -   <dd><p>null</p></dd>
   1.248 +   <dd><p>null.</p></dd>
   1.249  
   1.250     <dt><span title=concept-css-style-sheet-media>media</span></dt>
   1.251     <dd><p>The value of the first <code title>media</code> parameter.</p></dd>
   1.252     <!-- XXX register media parameter? bah -->
   1.253  
   1.254     <dt><span title=concept-css-style-sheet-title>title</span></dt>
   1.255 -   <dd><p><var title>title</var></p></dd>
   1.256 +   <dd><p><var title>title</var>.</p></dd>
   1.257  
   1.258     <dt><span title=concept-css-style-sheet-alternate-flag>alternate flag</span></dt>
   1.259     <dd><p>Set if one of the specified link relation type for this HTTP
   1.260     <code title="http-link">Link</code> header is an
   1.261     <span data-anolis-spec=dom>ASCII case-insensitive</span> match for
   1.262     "<code title>alternate</code>", or false otherwise.
   1.263 +   
   1.264 +   <dt><span title=concept-css-style-sheet-origin-clean-flag>origin-clean flag</span>
   1.265 +   <dd><p>Set if <var title>response</var> is <span data-anolis-spec=fetch>CORS-same-origin</span>, or clear otherwise.
   1.266    </dl>
   1.267   </li>
   1.268  </ol>
   1.269 @@ -1624,6 +1681,9 @@
   1.270  <dd><p>An optional reference to an associated <span>CSS style sheet</span>.
   1.271  This item is initialized to reference an associated style sheet when the rule is created. Subsequent to initialization, this item
   1.272  is reset to null if the rule becomes disassociated from its initial style sheet. Once reset to null, it must never change.</p></dd>
   1.273 +
   1.274 +<dt><dfn title=concept-css-rule-nested-css-rules>child CSS rules</dfn>
   1.275 +<dd><p>A list of child <span title="CSS rule">CSS rules</span>.
   1.276  </dl>
   1.277  
   1.278  <p>In addition to the above state, each <span>CSS rule</span> may be associated
   1.279 @@ -1717,6 +1777,7 @@
   1.280   <code title>@charset</code> at-rules, <code title>@import</code> at-rules, and <code title>@namespace</code> at-rules,
   1.281   <span data-anolis-spec='dom' title='concept-throw'>throw</span> an <code data-anolis-spec=dom>InvalidStateError</code> exception.
   1.282   <li><p>Insert <var title>new rule</var> into <var title>list</var> at the zero-indexed position <var title>index</var>.<p></li>
   1.283 + <li><p>Return <var title>index</var>.
   1.284  </ol>
   1.285  <p class='XXX'>DOM-2 CSS specifies that a <code>NO_MODIFICATION_ALLOWED_ERR</code> exception is thrown
   1.286  if the style sheet is read-only. Are there any read-only style sheets?</p>
   1.287 @@ -1895,7 +1956,7 @@
   1.288  attribute of the associated <span>CSS style sheet</span>.</p>
   1.289  
   1.290  <p>The <dfn title=dom-CSSImportRule-styleSheet><code>styleSheet</code></dfn> attribute must return the associated <span>CSS style sheet</span>.</p>
   1.291 -<p class='note'>If loading of the style sheet fails its <code title='dom-CSSStyleSheet-cssRules'>cssRules</code>
   1.292 +<p class='note'>If loading of the style sheet fails its <span title=concept-css-style-sheet-css-rules>CSS rules</span>
   1.293  list is simply empty, i.e., an <code title>@import</code> at-rule always has an associated <span>CSS style sheet</span>.</p>
   1.294  
   1.295  
   1.296 @@ -1913,15 +1974,15 @@
   1.297  <p>The <dfn title=dom-CSSMediaRule-media><code>media</code></dfn> attribute must return a <code>MediaList</code> object for the list of media queries specified
   1.298  with the <code title>@media</code> at-rule.</p>
   1.299  
   1.300 -<p>The <dfn title=dom-CSSMediaRule-cssRules><code>cssRules</code></dfn> attribute must return a <code>CSSRuleList</code> object for the list of CSS rules 
   1.301 -specified with the <code title>@media</code> at-rule.</p>
   1.302 -
   1.303 -<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
   1.304 -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
   1.305 -return <var title>index</var>.</p>
   1.306 -
   1.307 -<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
   1.308 -list returned by <code title='dom-CSSMediaRule-cssRules'>cssRules</code> at <var title>index</var>.</p>
   1.309 +<p>The <dfn title=dom-CSSMediaRule-cssRules><code>cssRules</code></dfn> attribute must return a <code>CSSRuleList</code> object for the
   1.310 +<span title=concept-css-rule-child-css-rules>child CSS rules</span> specified with the <code title>@media</code> at-rule.</p>
   1.311 +
   1.312 +<p>The <dfn title=dom-CSSMediaRule-insertRule><code>insertRule(<var title>rule</var>, <var title>index</var>)</code></dfn> method must return the result of
   1.313 +invoking <span>insert a CSS rule</span> <var title>rule</var> into the <span title=concept-css-rule-child-css-rules>child CSS rules</span> at
   1.314 +<var title>index</var>.</p>
   1.315 +
   1.316 +<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
   1.317 +<span title=concept-css-rule-child-css-rules>child CSS rules</span> at <var title>index</var>.</p>
   1.318  
   1.319  
   1.320  <h4>The <code title>CSSFontFaceRule</code> Interface</h4>
   1.321 @@ -1976,9 +2037,9 @@
   1.322  <p>On setting, the <code title=dom-CSSNamespaceRule-namespaceURI>namespaceURI</code> attribute must run the following steps:</p>
   1.323  
   1.324  <ol>
   1.325 - <li><p>Let <var title>CSS style sheet</var> be the value returned by <code title=dom-CSSRule-parentStyleSheet>parentStyleSheet</code>.
   1.326 - <li><p>Let <var title>list</var> be the value returned by <code title=dom-CSSStyleSheet-cssRules>cssRules</code> of <var title>CSS style sheet</var>, or
   1.327 - null if <var title>CSS style sheet</var> is null.
   1.328 + <li><p>Let <var title>parent</var> be the <span title=concept-css-rule-parent-css-style-sheet>parent CSS style sheet</span>.
   1.329 + <li><p>Let <var title>list</var> be the <span title=concept-css-style-sheet-css-rules>CSS rules</span> of <var title>parent</var>, or
   1.330 + null if <var title>parent</var> is null.
   1.331   <li><p>If <var title>list</var> is not null and contains anything other than
   1.332   <code title>@charset</code> at-rules, <code title>@import</code> at-rules, and <code title>@namespace</code> at-rules,
   1.333   <span data-anolis-spec='dom' title='concept-throw'>throw</span> an <code data-anolis-spec=dom>InvalidStateError</code> exception.
   1.334 @@ -1991,9 +2052,9 @@
   1.335  <p>On setting, the <code title=dom-CSSNamespaceRule-prefix>prefix</code> attribute must run the following steps:</p>
   1.336  
   1.337  <ol>
   1.338 - <li><p>Let <var title>CSS style sheet</var> be the value returned by <code title=dom-CSSRule-parentStyleSheet>parentStyleSheet</code>.
   1.339 - <li><p>Let <var title>list</var> be the value returned by <code title=dom-CSSStyleSheet-cssRules>cssRules</code> of <var title>CSS style sheet</var>, or
   1.340 - null if <var title>CSS style sheet</var> is null.
   1.341 + <li><p>Let <var title>parent</var> be the <span title=concept-css-rule-parent-css-style-sheet>parent CSS style sheet</span>.
   1.342 + <li><p>Let <var title>list</var> be the <span title=concept-css-style-sheet-css-rules>CSS rules</span> of <var title>parent</var>, or
   1.343 + null if <var title>parent</var> is null.
   1.344   <li><p>If <var title>list</var> is not null and contains anything other than
   1.345   <code title>@charset</code> at-rules, <code title>@import</code> at-rules, and <code title>@namespace</code> at-rules,
   1.346   <span data-anolis-spec='dom' title='concept-throw'>throw</span> an <code data-anolis-spec=dom>InvalidStateError</code> exception.

mercurial