Skip to content

Commit d5911fb

Browse files
committed
Comment out prose describing 'dashed-attribute' behavior until a consensus is obtained on its inclusion.
1 parent 03f74dd commit d5911fb

2 files changed

Lines changed: 27 additions & 19 deletions

File tree

cssom/Overview.html

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232
<div class="head">
3333

3434
<!--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>
3636
<!--end-logo-->
3737

3838

3939
<h1>CSS Object Model (CSSOM)</h1>
4040

4141

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

4444
<dl>
4545

@@ -105,7 +105,7 @@ <h2 class="no-num no-toc" id="sotd">Status of This Document</h2>
105105
can be found in the
106106
<a href="http://www.w3.org/TR/">W3C technical reports index at http://www.w3.org/TR/.</a></em>
107107

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
109109
<a href="mailto:www-style@w3.org?subject=%5Bcssom%5D%20">www-style@w3.org</a>
110110
(<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>)
111111
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
22862286

22872287
<p class="example">For example, for the 'font-size' property there would be a <code title="">fontSize</code> IDL attribute.
22882288

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.
22932290
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>.
22972295
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
23012303
exceptions thrown must be re-thrown.</p>
23022304
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>
23072309
</div>
23082310
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.
23102312
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
23122314
if implementations remove support. User agents that currently support them are urged to experiment with removing support.
23132315
2316+
-->
2317+
23142318
<p>The <dfn id="css-property-to-idl-attribute">CSS property to IDL attribute</dfn> algorithm for <var title="">property</var> is as
23152319
follows:</p>
23162320

cssom/Overview.src.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2217,6 +2217,8 @@ <h4>The <code title>CSSStyleDeclaration</code> Interface</h4>
22172217

22182218
<p class=example>For example, for the 'font-size' property there would be a <code title>fontSize</code> IDL attribute.
22192219

2220+
<!-- [GA] Remove spec text for so called "dashed-attribute" until consensus obtains on whether to include in spec.
2221+
22202222
<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
22212223
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
22222224
<code>CSSStyleDeclaration</code> interface with the type being <code title>DOMString</code> and the <span data-anolis-spec=webidl>identifier</span> being
@@ -2242,6 +2244,8 @@ <h4>The <code title>CSSStyleDeclaration</code> Interface</h4>
22422244
<p class=XXX>The <code title=dom-CSSStyleDeclaration-dashed-attribute><var title>dashed attribute</var></code> attributes will be removed from the specification
22432245
if implementations remove support. User agents that currently support them are urged to experiment with removing support.
22442246
2247+
-->
2248+
22452249
<p>The <dfn>CSS property to IDL attribute</dfn> algorithm for <var title>property</var> is as
22462250
follows:</p>
22472251

0 commit comments

Comments
 (0)