|
16 | 16 | <h1>CSS Object Model (CSSOM)</h1> |
17 | 17 |
|
18 | 18 |
|
19 | | - <h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 16 September 2014</h2> |
| 19 | + <h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 2 October 2014</h2> |
20 | 20 |
|
21 | 21 | <dl> |
22 | 22 |
|
@@ -90,7 +90,7 @@ <h2 class="no-num no-toc" id="sotd">Status of This Document</h2> |
90 | 90 | can be found in the |
91 | 91 | <a href="http://www.w3.org/TR/">W3C technical reports index at http://www.w3.org/TR/.</a></em> |
92 | 92 |
|
93 | | -<p class="dontpublish">This is the 16 September 2014 Editor's Draft of CSSOM. Please send comments to |
| 93 | +<p class="dontpublish">This is the 2 October 2014 Editor's Draft of CSSOM. Please send comments to |
94 | 94 | <a href="mailto:www-style@w3.org?subject=%5Bcssom%5D%20">www-style@w3.org</a> |
95 | 95 | (<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>) |
96 | 96 | with <samp>[cssom]</samp> at the start of the subject line. |
@@ -2442,26 +2442,25 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.6.1 </span>The |
2442 | 2442 | </li> |
2443 | 2443 | <li><p>If <var>component value list</var> is null terminate these steps. |
2444 | 2444 | <li><p>If <var>property</var> is a shorthand property, then for each longhand property <var>longhand</var> that <var>property</var> maps to, in canonical |
2445 | | - order, <a href="#append-a-css-declaration" title="append a CSS declaration">append the CSS declaration</a> <var>longhand</var> with the appropriate value(s) from <var>component value |
| 2445 | + order, <a href="#set-a-css-declaration" title="set a CSS declaration">set the CSS declaration</a> <var>longhand</var> with the appropriate value(s) from <var>component value |
2446 | 2446 | list</var>, with the <i>important</i> flag set if <var>priority</var> is not the empty string, and unset otherwise, and with the list of declarations being the |
2447 | 2447 | <a href="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a>. |
2448 | | - <li><p>Otherwise, <a href="#append-a-css-declaration" title="append a CSS declaration">append the CSS declaration</a> <var>property</var> with value <var>component value list</var>, with |
| 2448 | + <li><p>Otherwise, <a href="#set-a-css-declaration" title="set a CSS declaration">set the CSS declaration</a> <var>property</var> with value <var>component value list</var>, with |
2449 | 2449 | the <i>important</i> flag set if <var>priority</var> is not the empty string, and unset otherwise, and with the list of declarations being the |
2450 | 2450 | <a href="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a>. |
2451 | 2451 | </ol> |
2452 | 2452 |
|
2453 | | -<p>To <dfn id="append-a-css-declaration">append a CSS declaration</dfn> <var>property</var> with a value <var>component value list</var> and optionally with an <i>important</i> flag set, in |
| 2453 | +<p>To <dfn id="set-a-css-declaration">set a CSS declaration</dfn> <var>property</var> with a value <var>component value list</var> and optionally with an <i>important</i> flag set, in |
2454 | 2454 | a list of declarations <var>declarations</var>, follow these steps: |
2455 | 2455 |
|
2456 | 2456 | <ol> |
2457 | 2457 | <li><p>If <var>property</var> is a <a class="external" data-anolis-spec="dom" href="https://dom.spec.whatwg.org/#case-sensitive">case-sensitive</a> match for a <a href="#concept-css-declaration-property-name" title="concept-css-declaration-property-name">property |
2458 | 2458 | name</a> of a <a href="#css-declaration">CSS declaration</a> in <var>declarations</var>, let <var>declaration</var> be that <a href="#css-declaration">CSS declaration</a>. |
2459 | 2459 | <li><p>Otherwise, append a new <a href="#css-declaration">CSS declaration</a> with the <a href="#concept-css-declaration-property-name" title="concept-css-declaration-property-name">property name</a> <var>property</var> |
2460 | 2460 | to <var>declarations</var> and let <var>declaration</var> be that <a href="#css-declaration">CSS declaration</a>. |
2461 | | - <li><p>If <var>declaration</var> has its <a href="#concept-css-declaration-important-flag" title="concept-css-declaration-important-flag">important flag</a> set and the <i>important</i> flag is not set, |
2462 | | - terminate these steps. |
2463 | 2461 | <li><p>Set <var>declaration</var>'s <a href="#concept-css-declaration-value" title="concept-css-declaration-value">value</a> to <var>component value list</var>. |
2464 | 2462 | <li><p>If the <i>important</i> flag is set, set <var>declaration</var>'s <a href="#concept-css-declaration-important-flag" title="concept-css-declaration-important-flag">important flag</a>. |
| 2463 | + Otherwise, unset <var>declaration</var>'s <a href="#concept-css-declaration-important-flag" title="concept-css-declaration-important-flag">important flag</a>. |
2465 | 2464 | </ol> |
2466 | 2465 |
|
2467 | 2466 | <p>The <dfn id="dom-cssstyledeclaration-setpropertyvalue" title="dom-CSSStyleDeclaration-setPropertyValue"><code>setPropertyValue(<var>property</var>, <var>value</var>)</code></dfn> method must run these |
|
0 commit comments