[cssom] Add a getter to CSSStyleDeclaration. http://www.w3.org/mid/4FB07D3C.2050907@mit.edu

Tue, 28 May 2013 15:39:52 +0200

author
Simon Pieters <simonp@opera.com>
date
Tue, 28 May 2013 15:39:52 +0200
changeset 8266
8f01b1522548
parent 8265
a5f3a554eccb
child 8267
14e317c31b0b

[cssom] Add a getter to CSSStyleDeclaration. http://www.w3.org/mid/4FB07D3C.2050907@mit.edu

cssom/Overview.html file | annotate | diff | comparison | revisions
cssom/Overview.src.html file | annotate | diff | comparison | revisions
     1.1 --- a/cssom/Overview.html	Tue May 28 15:31:09 2013 +0200
     1.2 +++ b/cssom/Overview.html	Tue May 28 15:39:52 2013 +0200
     1.3 @@ -2076,7 +2076,7 @@
     1.4  <pre class="idl">interface <dfn id="cssstyledeclaration">CSSStyleDeclaration</dfn> {
     1.5    attribute DOMString <a href="#dom-cssstyledeclaration-csstext" title="dom-CSSStyleDeclaration-cssText">cssText</a>;
     1.6    readonly attribute unsigned long <a href="#dom-cssstyledeclaration-length" title="dom-CSSStyleDeclaration-length">length</a>;
     1.7 -  DOMString <a href="#dom-cssstyledeclaration-item" title="dom-CSSStyleDeclaration-item">item</a>(unsigned long index);
     1.8 +  getter DOMString <a href="#dom-cssstyledeclaration-item" title="dom-CSSStyleDeclaration-item">item</a>(unsigned long index);
     1.9    DOMString <a href="#dom-cssstyledeclaration-getpropertyvalue" title="dom-CSSStyleDeclaration-getPropertyValue">getPropertyValue</a>(DOMString property);
    1.10    DOMString <a href="#dom-cssstyledeclaration-getpropertypriority" title="dom-CSSStyleDeclaration-getPropertyPriority">getPropertyPriority</a>(DOMString property);
    1.11    void <a href="#dom-cssstyledeclaration-setproperty" title="dom-CSSStyleDeclaration-setProperty">setProperty</a>(DOMString property, DOMString value, optional [TreatNullAs=EmptyString] DOMString priority);
    1.12 @@ -2084,6 +2084,10 @@
    1.13    readonly attribute <a href="#cssrule">CSSRule</a>? <a href="#dom-cssstyledeclaration-length" title="dom-CSSStyleDeclaration-length">parentRule</a>;
    1.14  };</pre>
    1.15  
    1.16 +<p>The object's <a class="external" href="http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-indices">supported property indices</a> are the numbers in the range zero to one less than the number of declarations in
    1.17 +the <a href="#css-declaration-block-declarations">CSS declaration block declarations</a>. If there are no such declarations, then there are no <a class="external" href="http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-indices">supported property
    1.18 +indices</a>.
    1.19 +
    1.20  <p>The <dfn id="dom-cssstyledeclaration-csstext" title="dom-CSSStyleDeclaration-cssText"><code>cssText</code></dfn> attribute must return the result of <a href="#serialize-a-css-declaration-block" title="serialize a CSS declaration block">serializing</a> the
    1.21  <a href="#css-declaration-block-declarations">CSS declaration block declarations</a>.</p>
    1.22  <p>Setting the <code title="dom-CSSStyleDeclaration-cssText"><a href="#dom-cssstyledeclaration-csstext">cssText</a></code> attribute must run these steps:
     2.1 --- a/cssom/Overview.src.html	Tue May 28 15:31:09 2013 +0200
     2.2 +++ b/cssom/Overview.src.html	Tue May 28 15:39:52 2013 +0200
     2.3 @@ -2006,7 +2006,7 @@
     2.4  <pre class=idl>interface <dfn>CSSStyleDeclaration</dfn> {
     2.5    attribute DOMString <span title=dom-CSSStyleDeclaration-cssText>cssText</span>;
     2.6    readonly attribute unsigned long <span title=dom-CSSStyleDeclaration-length>length</span>;
     2.7 -  DOMString <span title=dom-CSSStyleDeclaration-item>item</span>(unsigned long index);
     2.8 +  getter DOMString <span title=dom-CSSStyleDeclaration-item>item</span>(unsigned long index);
     2.9    DOMString <span title=dom-CSSStyleDeclaration-getPropertyValue>getPropertyValue</span>(DOMString property);
    2.10    DOMString <span title=dom-CSSStyleDeclaration-getPropertyPriority>getPropertyPriority</span>(DOMString property);
    2.11    void <span title=dom-CSSStyleDeclaration-setProperty>setProperty</span>(DOMString property, DOMString value, optional [TreatNullAs=EmptyString] DOMString priority);
    2.12 @@ -2014,6 +2014,10 @@
    2.13    readonly attribute <span>CSSRule</span>? <span title=dom-CSSStyleDeclaration-length>parentRule</span>;
    2.14  };</pre>
    2.15  
    2.16 +<p>The object's <span data-anolis-spec=webidl>supported property indices</span> are the numbers in the range zero to one less than the number of declarations in
    2.17 +the <span>CSS declaration block declarations</span>. If there are no such declarations, then there are no <span data-anolis-spec=webidl>supported property
    2.18 +indices</span>.
    2.19 +
    2.20  <p>The <dfn title=dom-CSSStyleDeclaration-cssText><code>cssText</code></dfn> attribute must return the result of <span title='serialize a CSS declaration block'>serializing</span> the
    2.21  <span>CSS declaration block declarations</span>.</p>
    2.22  <p>Setting the <code title=dom-CSSStyleDeclaration-cssText>cssText</code> attribute must run these steps:

mercurial