Skip to content
Permalink
Browse files

[e] (0) Move .style to CSSOM

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=21849
Affected topics: DOM APIs, HTML

git-svn-id: http://svn.whatwg.org/webapps@7915 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 5, 2013
1 parent d4b6a25 commit fd878253d9101235f914f4aa405d75d196ccc493
Showing with 12 additions and 34 deletions.
  1. +4 −11 complete.html
  2. +4 −11 index
  3. +4 −12 source
readonly attribute boolean? <a href=#dom-command-ro-commanddisabled title=dom-command-ro-commandDisabled>commandDisabled</a>;
readonly attribute boolean? <a href=#dom-command-ro-commandchecked title=dom-command-ro-commandChecked>commandChecked</a>;<!-- v2COMMAND
readonly attribute <span>HTMLCollection</span> <span title="dom-command-ro-commandTriggers">commandTriggers</span>;-->

// styling
[PutForwards=<a href=#dom-cssstyledeclaration-csstext title=dom-CSSStyleDeclaration-cssText>cssText</a>] readonly attribute <a href=#cssstyledeclaration>CSSStyleDeclaration</a> <a href=#dom-style title=dom-style>style</a>;
};
<a href=#htmlelement>HTMLElement</a> implements <a href=#globaleventhandlers>GlobalEventHandlers</a>;


<p>In user agents that support CSS, the attribute's value must be parsed when the attribute is
added or has its value changed<!-- so dynamic changes to the base URL don't affect the CSS -->,
according to the rules given for <span>CSS styling attributes</span>. <a href=#refsCSSATTR>[CSSATTR]</a></p>
according to the rules given for <a href=#css-styling-attribute title="CSS styling attribute">CSS styling
attributes</a>. <a href=#refsCSSATTR>[CSSATTR]</a></p>

</div>


</dl><div class=impl>

<p>The <dfn id=dom-style title=dom-style><code>style</code></dfn> IDL attribute must return a
<code><a href=#cssstyledeclaration>CSSStyleDeclaration</a></code> whose value represents the declarations specified in the
attribute. (If the attribute is absent, the object represents an empty declaration.) Mutating the
<code><a href=#cssstyledeclaration>CSSStyleDeclaration</a></code> object must create a <code title=attr-style><a href=#the-style-attribute>style</a></code>
attribute on the element (if there isn't one already) and then change its value to be a value
representing the serialized form of the <code><a href=#cssstyledeclaration>CSSStyleDeclaration</a></code> object. The same object
must be returned each time. <a href=#refsCSSOM>[CSSOM]</a></p>
<p>The <dfn id=dom-style title=dom-style><code>style</code></dfn> IDL attribute is defined in the CSS Object
Model (CSSOM) specification. <a href=#refsCSSOM>[CSSOM]</a></p>

</div>

15 index
readonly attribute boolean? <a href=#dom-command-ro-commanddisabled title=dom-command-ro-commandDisabled>commandDisabled</a>;
readonly attribute boolean? <a href=#dom-command-ro-commandchecked title=dom-command-ro-commandChecked>commandChecked</a>;<!-- v2COMMAND
readonly attribute <span>HTMLCollection</span> <span title="dom-command-ro-commandTriggers">commandTriggers</span>;-->

// styling
[PutForwards=<a href=#dom-cssstyledeclaration-csstext title=dom-CSSStyleDeclaration-cssText>cssText</a>] readonly attribute <a href=#cssstyledeclaration>CSSStyleDeclaration</a> <a href=#dom-style title=dom-style>style</a>;
};
<a href=#htmlelement>HTMLElement</a> implements <a href=#globaleventhandlers>GlobalEventHandlers</a>;


<p>In user agents that support CSS, the attribute's value must be parsed when the attribute is
added or has its value changed<!-- so dynamic changes to the base URL don't affect the CSS -->,
according to the rules given for <span>CSS styling attributes</span>. <a href=#refsCSSATTR>[CSSATTR]</a></p>
according to the rules given for <a href=#css-styling-attribute title="CSS styling attribute">CSS styling
attributes</a>. <a href=#refsCSSATTR>[CSSATTR]</a></p>

</div>


</dl><div class=impl>

<p>The <dfn id=dom-style title=dom-style><code>style</code></dfn> IDL attribute must return a
<code><a href=#cssstyledeclaration>CSSStyleDeclaration</a></code> whose value represents the declarations specified in the
attribute. (If the attribute is absent, the object represents an empty declaration.) Mutating the
<code><a href=#cssstyledeclaration>CSSStyleDeclaration</a></code> object must create a <code title=attr-style><a href=#the-style-attribute>style</a></code>
attribute on the element (if there isn't one already) and then change its value to be a value
representing the serialized form of the <code><a href=#cssstyledeclaration>CSSStyleDeclaration</a></code> object. The same object
must be returned each time. <a href=#refsCSSOM>[CSSOM]</a></p>
<p>The <dfn id=dom-style title=dom-style><code>style</code></dfn> IDL attribute is defined in the CSS Object
Model (CSSOM) specification. <a href=#refsCSSOM>[CSSOM]</a></p>

</div>

16 source
@@ -9091,9 +9091,6 @@ partial /*sealed*/ interface <dfn>Document</dfn> {
readonly attribute boolean? <span title="dom-command-ro-commandDisabled">commandDisabled</span>;
readonly attribute boolean? <span title="dom-command-ro-commandChecked">commandChecked</span>;<!-- v2COMMAND
readonly attribute <span>HTMLCollection</span> <span title="dom-command-ro-commandTriggers">commandTriggers</span>;-->

// styling
[PutForwards=<span title="dom-CSSStyleDeclaration-cssText">cssText</span>] readonly attribute <span>CSSStyleDeclaration</span> <span title="dom-style">style</span>;
};
<span>HTMLElement</span> implements <span>GlobalEventHandlers</span>;

@@ -9969,8 +9966,8 @@ Transport Protocol">HTTP&lt;/abbr> today.&lt;/p></pre> <!-- DO NOT REWRAP THIS L

<p>In user agents that support CSS, the attribute's value must be parsed when the attribute is
added or has its value changed<!-- so dynamic changes to the base URL don't affect the CSS -->,
according to the rules given for <span>CSS styling attributes</span>. <a
href="#refsCSSATTR">[CSSATTR]</a></p>
according to the rules given for <span title="CSS styling attribute">CSS styling
attributes</span>. <a href="#refsCSSATTR">[CSSATTR]</a></p>

</div>

@@ -9995,13 +9992,8 @@ Transport Protocol">HTTP&lt;/abbr> today.&lt;/p></pre> <!-- DO NOT REWRAP THIS L

<div class="impl">

<p>The <dfn title="dom-style"><code>style</code></dfn> IDL attribute must return a
<code>CSSStyleDeclaration</code> whose value represents the declarations specified in the
attribute. (If the attribute is absent, the object represents an empty declaration.) Mutating the
<code>CSSStyleDeclaration</code> object must create a <code title="attr-style">style</code>
attribute on the element (if there isn't one already) and then change its value to be a value
representing the serialized form of the <code>CSSStyleDeclaration</code> object. The same object
must be returned each time. <a href="#refsCSSOM">[CSSOM]</a></p>
<p>The <dfn title="dom-style"><code>style</code></dfn> IDL attribute is defined in the CSS Object
Model (CSSOM) specification. <a href="#refsCSSOM">[CSSOM]</a></p>

</div>

0 comments on commit fd87825

Please sign in to comment.
You can’t perform that action at this time.