[cssom] Spec CSSStyleDeclaration#removeProperty's return value

Thu, 25 Apr 2013 14:12:22 +0200

author
Simon Pieters <simonp@opera.com>
date
Thu, 25 Apr 2013 14:12:22 +0200
changeset 8008
e6ae584ef958
parent 8007
8b19669fd05f
child 8009
7ee98847da81

[cssom] Spec CSSStyleDeclaration#removeProperty's return value

cssom/Overview.html file | annotate | diff | comparison | revisions
cssom/idl/CSSStyleDeclaration.idl file | annotate | diff | comparison | revisions
     1.1 --- a/cssom/Overview.html	Thu Apr 25 13:58:27 2013 +0200
     1.2 +++ b/cssom/Overview.html	Thu Apr 25 14:12:22 2013 +0200
     1.3 @@ -1975,7 +1975,9 @@
     1.4  <dt class="method" id="widl-CSSStyleDeclaration-removeProperty-DOMString-DOMString-property">
     1.5  <code>removeProperty</code> (<span class="idlParam"><span class="idlParamType"><a>DOMString</a></span> <span class="idlParamName">property</span></span>), returns <span class="idlMethType"><a>DOMString</a></span></dt>
     1.6  <dd>
     1.7 -<p>The <code>removeProperty</code> operation must run these steps:</p>    <ol>     <li><p>If the <a href="#css-declaration-block-readonly-flag">CSS declaration block readonly flag</a> is set, <a class="external" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a> a       '<code class="external"><a href="http://dom.spec.whatwg.org/#nomodificationallowederror">NoModificationAllowedError</a></code>' and terminate these steps.</li>     <li><p>If <var>property</var> is an <a class="external" href="http://dom.spec.whatwg.org/#ascii-case-insensitive">ASCII case-insensitive</a> match for a property of a declaration in the       <a href="#css-declaration-block-declarations">CSS declaration block declarations</a>, and that property is defined to be a case-insensitive property, remove the declaration.</li>     <li><p>If <var>property</var> is a <a class="external" href="http://dom.spec.whatwg.org/#case-sensitive">case-sensitive</a> match for a property of a declaration in the       <a href="#css-declaration-block-declarations">CSS declaration block declarations</a>, and that property is defined to be a case-sensitive property, remove the declaration.</li>    </ol></dd>
     1.8 +<p>The <code>removeProperty</code> operation must run these steps:</p>    <ol>     <li><p>If the <a href="#css-declaration-block-readonly-flag">CSS declaration block readonly flag</a> is set, <a class="external" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a> a       '<code class="external"><a href="http://dom.spec.whatwg.org/#nomodificationallowederror">NoModificationAllowedError</a></code>' and terminate these steps.</li>     <li><p>Let <var>value</var> be the return value of invoking <span title="dom-CSSStyleDeclaration-getPropertyValue">getPropertyValue()</span>       with <var>property</var> as argument.
     1.9 +     <li><p>If <var>property</var> is an <a class="external" href="http://dom.spec.whatwg.org/#ascii-case-insensitive">ASCII case-insensitive</a> match for a property of a declaration in the <a href="#css-declaration-block-declarations">CSS declaration block declarations</a>, and that property is defined to be a case-insensitive property, remove the declaration.</li> <li><p>If <var>property</var> is a <a class="external" href="http://dom.spec.whatwg.org/#case-sensitive">case-sensitive</a> match for a property of a declaration in the <a href="#css-declaration-block-declarations">CSS declaration block declarations</a>, and that property is defined to be a case-sensitive property, remove the declaration.</li> <li><p>Return <var>value</var>.
    1.10 +    </ol></dd>
    1.11  </dl>
    1.12  
    1.13    
     2.1 --- a/cssom/idl/CSSStyleDeclaration.idl	Thu Apr 25 13:58:27 2013 +0200
     2.2 +++ b/cssom/idl/CSSStyleDeclaration.idl	Thu Apr 25 14:12:22 2013 +0200
     2.3 @@ -103,10 +103,13 @@
     2.4      <ol>\
     2.5       <li><p>If the <span>CSS declaration block readonly flag</span> is set, <span data-anolis-spec=dom title=concept-throw>throw</span> a\
     2.6         '<code data-anolis-spec=dom>NoModificationAllowedError</code>' and terminate these steps.</li>\
     2.7 +     <li><p>Let <var>value</var> be the return value of invoking <span title='dom-CSSStyleDeclaration-getPropertyValue'>getPropertyValue()</span>\
     2.8 +       with <var>property</var> as argument.
     2.9       <li><p>If <var>property</var> is an <span data-anolis-spec=dom>ASCII case-insensitive</span> match for a property of a declaration in the\
    2.10         <span>CSS declaration block declarations</span>, and that property is defined to be a case-insensitive property, remove the declaration.</p></li>\
    2.11       <li><p>If <var>property</var> is a <span data-anolis-spec=dom>case-sensitive</span> match for a property of a declaration in the\
    2.12         <span>CSS declaration block declarations</span>, and that property is defined to be a case-sensitive property, remove the declaration.</p></li>\
    2.13 +     <li><p>Return <var>value</var>.
    2.14      </ol>"
    2.15    ]
    2.16    DOMString removeProperty(DOMString property);

mercurial