|
32 | 32 | <div class="head"> |
33 | 33 |
|
34 | 34 | <!--begin-logo--> |
35 | | -<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="https://www.w3.org/Icons/w3c_home" width="72"></a></p> |
| 35 | +<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> |
36 | 36 | <!--end-logo--> |
37 | 37 |
|
38 | 38 |
|
39 | 39 | <h1>CSS Object Model (CSSOM)</h1> |
40 | 40 |
|
41 | 41 |
|
42 | | - <h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 4 June 2013</h2> |
| 42 | + <h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 5 June 2013</h2> |
43 | 43 |
|
44 | 44 | <dl> |
45 | 45 |
|
@@ -105,7 +105,7 @@ <h2 class="no-num no-toc" id="sotd">Status of This Document</h2> |
105 | 105 | can be found in the |
106 | 106 | <a href="http://www.w3.org/TR/">W3C technical reports index at http://www.w3.org/TR/.</a></em> |
107 | 107 |
|
108 | | -<p class="dontpublish">This is the 4 June 2013 Editor's Draft of CSSOM. Please send comments to |
| 108 | +<p class="dontpublish">This is the 5 June 2013 Editor's Draft of CSSOM. Please send comments to |
109 | 109 | <a href="mailto:www-style@w3.org?subject=%5Bcssom%5D%20">www-style@w3.org</a> |
110 | 110 | (<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>) |
111 | 111 | with <samp>[cssom]</samp> at the start of the subject line. |
@@ -2286,31 +2286,35 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.5.1 </span>The |
2286 | 2286 |
|
2287 | 2287 | <p class="example">For example, for the 'font-size' property there would be a <code title="">fontSize</code> IDL attribute. |
2288 | 2288 |
|
2289 | | -<p>For each CSS property <var title="">property</var> that the user agent supports, except for properties that have no "<code title="">-</code>" (U+002D) in the |
2290 | | -property name, user agents must act as if there was a WebIDL <a class="external" href="http://dev.w3.org/2006/webapi/WebIDL/#dfn-regular-attribute">regular attribute</a> member as part of the |
2291 | | -<code><a href="#cssstyledeclaration">CSSStyleDeclaration</a></code> interface with the type being <code title="">DOMString</code> and the <a class="external" href="http://dev.w3.org/2006/webapi/WebIDL/#dfn-identifier">identifier</a> being |
2292 | | -<var title="">property</var>, and let <var title="">dashed attribute</var> be <var title="">property</var>. |
| 2289 | +<!-- [GA] Remove spec text for so called "dashed-attribute" until consensus obtains on whether to include in spec. |
2293 | 2290 |
|
2294 | | -<p>The <dfn id="dom-cssstyledeclaration-dashed-attribute" title="dom-CSSStyleDeclaration-dashed-attribute"><code><var title="">dashed attribute</var></code></dfn> attribute, on getting, must return the |
2295 | | -result of invoking <code title="dom-CSSStyleDeclaration-getPropertyValue"><a href="#dom-cssstyledeclaration-getpropertyvalue">getPropertyValue()</a></code> with the |
2296 | | -argument being <var title="">dashed attribute</var>.</p> |
| 2291 | +<p>For each CSS property <var title>property</var> that the user agent supports, except for properties that have no "<code title>-</code>" (U+002D) in the |
| 2292 | +property name, user agents must act as if there was a WebIDL <span data-anolis-spec=webidl>regular attribute</span> member as part of the |
| 2293 | +<code>CSSStyleDeclaration</code> interface with the type being <code title>DOMString</code> and the <span data-anolis-spec=webidl>identifier</span> being |
| 2294 | +<var title>property</var>, and let <var title>dashed attribute</var> be <var title>property</var>. |
2297 | 2295 |
|
2298 | | -<p>Setting the <code title="dom-CSSStyleDeclaration-dashed-attribute"><a href="#dom-cssstyledeclaration-dashed-attribute"><var title="">dashed attribute</var></a></code> attribute must invoke |
2299 | | -<code title="dom-CSSStyleDeclaration-setProperty"><a href="#dom-cssstyledeclaration-setproperty">setProperty()</a></code> with the |
2300 | | -first argument being <var title="">dashed attribute</var>, as second argument the given value, and no third argument. Any |
| 2296 | +<p>The <dfn title=dom-CSSStyleDeclaration-dashed-attribute><code><var title>dashed attribute</var></code></dfn> attribute, on getting, must return the |
| 2297 | +result of invoking <code title=dom-CSSStyleDeclaration-getPropertyValue>getPropertyValue()</code> with the |
| 2298 | +argument being <var title>dashed attribute</var>.</p> |
| 2299 | +
|
| 2300 | +<p>Setting the <code title=dom-CSSStyleDeclaration-dashed-attribute><var title>dashed attribute</var></code> attribute must invoke |
| 2301 | +<code title=dom-CSSStyleDeclaration-setProperty>setProperty()</code> with the |
| 2302 | +first argument being <var title>dashed attribute</var>, as second argument the given value, and no third argument. Any |
2301 | 2303 | exceptions thrown must be re-thrown.</p> |
2302 | 2304 |
|
2303 | | -<div class="example"> |
2304 | | - <p>For example, for the 'font-size' property there would be a <code title="">font-size</code> IDL attribute. In JavaScript, the property can be accessed as |
2305 | | - follows, assuming <var title="">element</var> is an <a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#html-elements" title="HTML elements">HTML element</a>: |
2306 | | - <pre><var title="">element</var>.style['font-size'];</pre> |
| 2305 | +<div class=example> |
| 2306 | + <p>For example, for the 'font-size' property there would be a <code title>font-size</code> IDL attribute. In JavaScript, the property can be accessed as |
| 2307 | + follows, assuming <var title>element</var> is an <span data-anolis-spec=html title="HTML elements">HTML element</span>: |
| 2308 | + <pre><var title>element</var>.style['font-size'];</pre> |
2307 | 2309 | </div> |
2308 | 2310 |
|
2309 | | -<p class="note">WebIDL does not allow dashes in identifiers in its syntax. |
| 2311 | +<p class=note>WebIDL does not allow dashes in identifiers in its syntax. |
2310 | 2312 |
|
2311 | | -<p class="XXX">The <code title="dom-CSSStyleDeclaration-dashed-attribute"><a href="#dom-cssstyledeclaration-dashed-attribute"><var title="">dashed attribute</var></a></code> attributes will be removed from the specification |
| 2313 | +<p class=XXX>The <code title=dom-CSSStyleDeclaration-dashed-attribute><var title>dashed attribute</var></code> attributes will be removed from the specification |
2312 | 2314 | if implementations remove support. User agents that currently support them are urged to experiment with removing support. |
2313 | 2315 |
|
| 2316 | +--> |
| 2317 | + |
2314 | 2318 | <p>The <dfn id="css-property-to-idl-attribute">CSS property to IDL attribute</dfn> algorithm for <var title="">property</var> is as |
2315 | 2319 | follows:</p> |
2316 | 2320 |
|
|
0 commit comments