You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>To <dfnid="parse-a-css-declaration-block">parse a CSS declaration block</dfn> ...</p>
2148
+
<p>To <dfnid="parse-a-css-declaration-block">parse a CSS declaration block</dfn> from a string <var>string</var>, invoke <aclass="external" data-anolis-spec="csssyntax" href="http://dev.w3.org/csswg/css-syntax/#parse-a-list-of-declarations0">parse a list of declarations</a> with
2149
+
<var>string</var> and return the value returned.</p>
2149
2150
2150
2151
<p>To <dfnid="serialize-a-css-declaration-block">serialize a CSS declaration block</dfn>
2151
2152
represented by a <code><ahref="#cssstyledeclaration">CSSStyleDeclaration</a></code> instance named <var>d</var>,
<li><p>If the <ahref="#concept-css-declaration-block-readonly-flag" title="concept-css-declaration-block-readonly-flag">readonly flag</a> is set, <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a>
2227
2228
a <codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#nomodificationallowederror">NoModificationAllowedError</a></code> exception and terminate these steps.</li>
2228
2229
<li><p>Empty the <ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a>.</li>
2229
-
<li><p><ahref="#parse-a-css-declaration-block" title="Parse a CSS declaration block">Parse</a> the given value and, if the return value is not null, insert it into the
2230
+
<li><p><ahref="#parse-a-css-declaration-block" title="Parse a CSS declaration block">Parse</a> the given value and, if the return value is not the empty list, insert it into the
<p>The <dfnid="dom-elementcssinlinestyle-style" title="dom-ElementCSSInlineStyle-style"><code>style</code></dfn> attribute must return a <ahref="#css-declaration-block">CSS declaration block</a> with the
2711
-
<ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a> being set to the declarations
2712
-
specified in the element's<codetitle="">style</code> content attribute. If the
2713
-
<codetitle="">style</code> content attribute is absent, the object represents an empty
2714
-
declaration. Mutating the <code><ahref="#cssstyledeclaration">CSSStyleDeclaration</a></code> object must set the
2712
+
<ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a> being set to the result of <ahref="#parse-a-css-declaration-block" title="Parse a CSS declaration block">parsing</a>
2713
+
the <codetitle="">style</code> content attribute. If the
2714
+
<codetitle="">style</code> content attribute is absent, the object represents an empty list of
2715
+
declarations. Mutating the <code><ahref="#cssstyledeclaration">CSSStyleDeclaration</a></code> object must set the
2715
2716
<codetitle="">style</code> content attribute on the element to the
2716
2717
<ahref="#serialize-a-css-declaration-block" title="serialize a CSS declaration block">serialization</a> of the
<p>To <dfn>parse a CSS declaration block</dfn> ...</p>
2071
+
<p>To <dfn>parse a CSS declaration block</dfn> from a string <var>string</var>, invoke <spandata-anolis-spec=csssyntax>parse a list of declarations</span> with
2072
+
<var>string</var> and return the value returned.</p>
2072
2073
2073
2074
<p>To <dfn>serialize a CSS declaration block</dfn>
2074
2075
represented by a <code>CSSStyleDeclaration</code> instance named <var>d</var>,
<li><p>If the <spantitle=concept-css-declaration-block-readonly-flag>readonly flag</span> is set, <spandata-anolis-spec=domtitle=concept-throw>throw</span>
2150
2151
a <codedata-anolis-spec=dom>NoModificationAllowedError</code> exception and terminate these steps.</li>
2151
2152
<li><p>Empty the <spantitle=concept-css-declaration-block-declarations>declarations</span>.</li>
2152
-
<li><p><spantitle='Parse a CSS declaration block'>Parse</span> the given value and, if the return value is not null, insert it into the
2153
+
<li><p><spantitle='Parse a CSS declaration block'>Parse</span> the given value and, if the return value is not the empty list, insert it into the
<p>The <dfntitle=dom-ElementCSSInlineStyle-style><code>style</code></dfn> attribute must return a <span>CSS declaration block</span> with the
2634
-
<spantitle=concept-css-declaration-block-declarations>declarations</span> being set to the declarations
2635
-
specified in the element's<codetitle>style</code> content attribute. If the
2636
-
<codetitle>style</code> content attribute is absent, the object represents an empty
2637
-
declaration. Mutating the <code>CSSStyleDeclaration</code> object must set the
2635
+
<spantitle=concept-css-declaration-block-declarations>declarations</span> being set to the result of <spantitle='Parse a CSS declaration block'>parsing</span>
2636
+
the <codetitle>style</code> content attribute. If the
2637
+
<codetitle>style</code> content attribute is absent, the object represents an empty list of
2638
+
declarations. Mutating the <code>CSSStyleDeclaration</code> object must set the
2638
2639
<codetitle>style</code> content attribute on the element to the
2639
2640
<spantitle='serialize a CSS declaration block'>serialization</span> of the
0 commit comments