Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 fd87825
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 34 deletions.
15 changes: 4 additions & 11 deletions complete.html
Expand Up @@ -9247,9 +9247,6 @@ <h4 id=elements-in-the-dom><span class=secno>3.2.2 </span>Elements in the DOM</h
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>;

Expand Down Expand Up @@ -10005,7 +10002,8 @@ <h5 id=the-style-attribute><span class=secno>3.2.3.8 </span>The <dfn title=attr-

<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>

Expand All @@ -10024,13 +10022,8 @@ <h5 id=the-style-attribute><span class=secno>3.2.3.8 </span>The <dfn title=attr-

</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>

Expand Down
15 changes: 4 additions & 11 deletions index
Expand Up @@ -9247,9 +9247,6 @@ partial /*sealed*/ interface <dfn id=document>Document</dfn> {
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>;

Expand Down Expand Up @@ -10005,7 +10002,8 @@ Transport Protocol"&gt;HTTP&lt;/abbr&gt; today.&lt;/p&gt;</pre> <!-- DO NOT REWR

<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>

Expand All @@ -10024,13 +10022,8 @@ Transport Protocol"&gt;HTTP&lt;/abbr&gt; today.&lt;/p&gt;</pre> <!-- DO NOT REWR

</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>

Expand Down
16 changes: 4 additions & 12 deletions source
Expand Up @@ -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>;

Expand Down Expand Up @@ -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>

Expand All @@ -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>

Expand Down

0 comments on commit fd87825

Please sign in to comment.