@@ -1056,8 +1056,7 @@ The <dfn method for=CSSStyleSheet>replace(<a for=CSSRule>text</a>)</dfn> method
1056
1056
<li> Set the <a>disallow modification flag</a> .
1057
1057
<li> <a>In parallel</a> , do these steps:
1058
1058
<ol>
1059
- <li> Let <var> rules</var> be the result of running <a>parse a list of rules</a> from <var> text</var> . If <var> rules</var> is
1060
- not a list of rules (i.e. an error occurred during parsing), set <var> rules</var> to an empty list.
1059
+ <li> Let <var> rules</var> be the result of running <a>parse a stylesheet's contents</a> from <var> text</var> .
1061
1060
<li> If <var> rules</var> contains one or more <a>@import</a> rules, <a lt="remove a CSS rule">remove those rules</a> from <var> rules</var> .
1062
1061
<li> Set <var> sheet</var> 's <a>CSS rules</a> to <var> rules</var> .
1063
1062
<li> Unset <var> sheet</var> 's <a>disallow modification flag</a> .
@@ -1073,8 +1072,7 @@ To <dfn export>synchronously replace the rules of a CSSStyleSheet</dfn> on <var>
1073
1072
<ol>
1074
1073
<li> If the <a>constructed flag</a> is not set, or the <a>disallow modification flag</a> is set, throw a {{NotAllowedError}}
1075
1074
{{DOMException}} .
1076
- <li> Let <var> rules</var> be the result of running <a>parse a list of rules</a> from <var> text</var> . If <var> rules</var> is
1077
- not a list of rules (i.e. an error occurred during parsing), set <var> rules</var> to an empty list.
1075
+ <li> Let <var> rules</var> be the result of running <a>parse a stylesheet's contents</a> from <var> text</var> .
1078
1076
<li> If <var> rules</var> contains one or more <a>@import</a> rules, <a lt="remove a CSS rule">remove those rules</a> from <var> rules</var> .
1079
1077
<li> Set <var> sheet</var> 's <a>CSS rules</a> to <var> rules</var> .
1080
1078
</ol>
@@ -2239,7 +2237,7 @@ the DOM a <a>CSS declaration block</a> is a
2239
2237
To <dfn export>parse a CSS declaration block</dfn> from a string <var> string</var> , follow these steps:
2240
2238
2241
2239
<ol>
2242
- <li> Let <var> declarations</var> be the return value of invoking <a>parse a list of declarations </a> with <var> string</var> .
2240
+ <li> Let <var> declarations</var> be the returned declarations from invoking <a>parse a block's contents </a> with <var> string</var> .
2243
2241
<li> Let <var> parsed declarations</var> be a new empty list.
2244
2242
<li> For each item <var> declaration</var> in <var> declarations</var> , follow these substeps:
2245
2243
<ol>
0 commit comments