Skip to content

Commit 5b40bb1

Browse files
committed
(1) add per-constructor enumeration under interface definition;
(2) restore extended attribute output into formatted idl;
1 parent 8418c2b commit 5b40bb1

4 files changed

Lines changed: 323 additions & 156 deletions

File tree

cssom-view/cssom.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,15 +231,15 @@ pre.idl::before {
231231
font-weight: bold;
232232
}
233233

234-
dl.members, dl.attributes, dl.methods, dl.constants, dl.fields, dl.dictionary-members {
234+
dl.members, dl.constructors. dl.attributes, dl.methods, dl.constants, dl.fields, dl.dictionary-members {
235235
margin-left: 2em;
236236
}
237237

238-
.members dt, .attributes dt, .methods dt, .constants dt, .fields dt, .dictionary-members dt {
238+
.members dt, .constructors dt, .attributes dt, .methods dt, .constants dt, .fields dt, .dictionary-members dt {
239239
font-weight: normal;
240240
}
241241

242-
.members dt code, .attributes dt code, .methods dt code, .constants dt code, .fields dt code, .dictionary-members dt code {
242+
.members dt code, .constructors dt code, .attributes dt code, .methods dt code, .constants dt code, .fields dt code, .dictionary-members dt code {
243243
font-weight: bold;
244244
color: #000;
245245
font-family: monospace;

cssom/Overview.html

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h1 id="cssom">CSS Object Model (CSSOM)</h1>
1818

1919
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
2020

21-
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 11 August 2012</h2>
21+
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 13 August 2012</h2>
2222

2323
<dl>
2424

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

86-
<p class="dontpublish">This is the 11 August 2012 Editor's Draft of CSSOM. Please send comments to
86+
<p class="dontpublish">This is the 13 August 2012 Editor's Draft of CSSOM. Please send comments to
8787
<a href="mailto:www-style@w3.org?subject=%5Bcssom%5D%20">www-style@w3.org</a>
8888
(<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>)
8989
with <samp>[cssom]</samp> at the start of the subject line.
@@ -532,13 +532,20 @@ <h3 id="comparing-media-queries"><span class="secno">4.3 </span>Comparing Media
532532
<h3 id="the-medialist-interface"><span class="secno">4.4 </span>The <code>MediaList</code> Interface</h3>
533533

534534
<p>An object that implements the <a class="idlType" href="#widl-def-MediaList"><code>MediaList</code></a> interface has an associated <dfn id="collection-of-media-queries">collection of media queries</dfn>.</p>
535-
<pre class="idl"><span class="idlInterface" id="widl-def-MediaList">interface <span class="idlInterfaceID">MediaList</span> {
535+
<pre class="idl"><span class="idlInterface" id="widl-def-MediaList">[Constructor]
536+
interface <span class="idlInterfaceID">MediaList</span> {
536537
<span class="idlAttribute"> stringifier attribute <span class="idlAttrType"><a>DOMString</a></span> <span class="idlAttrName"><a href="#widl-MediaList-mediaText">mediaText</a></span>;</span>
537538
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>unsigned long</a></span> <span class="idlAttrName"><a href="#widl-MediaList-length">length</a></span>;</span>
538539
<span class="idlMethod"> <span class="idlMethType"><a>DOMString</a></span> <span class="idlMethName"><a href="#widl-MediaList-item-DOMString-unsigned-long-index">item</a></span> (<span class="idlParam"><span class="idlParamType"><a>unsigned long</a></span> <span class="idlParamName">index</span></span>);</span>
539540
<span class="idlMethod"> <span class="idlMethType"><a>void</a></span> <span class="idlMethName"><a href="#widl-MediaList-appendMedium-void-DOMString-medium">appendMedium</a></span> (<span class="idlParam"><span class="idlParamType"><a>DOMString</a></span> <span class="idlParamName">medium</span></span>);</span>
540541
<span class="idlMethod"> <span class="idlMethType"><a>void</a></span> <span class="idlMethName"><a href="#widl-MediaList-deleteMedium-void-DOMString-medium">deleteMedium</a></span> (<span class="idlParam"><span class="idlParamType"><a>DOMString</a></span> <span class="idlParamName">medium</span></span>);</span>
541542
};</span></pre>
543+
<dl class="constructors">
544+
<dt class="constructor" id="widl-MediaList-void">
545+
<code>MediaList</code> ()</dt>
546+
<dd>
547+
<p>To <dfn id="create-a-medialist-object">create a <code>MediaList</code> object</dfn> from a string <var>s</var>, run these steps:</p> <ol> <li><p>Create a new <code>MediaList</code> object.</li> <li><p>Set its <span title="dom-MediaList-mediaText">mediaText</span> attribute to <var>s</var>.</li> <li><p>Return the newly created <code><code>MediaList</code></code> object.</li> </ol></dd>
548+
</dl>
542549
<dl class="attributes">
543550
<dt class="attribute" id="widl-MediaList-mediaText">
544551
<code>mediaText</code> of type <span class="idlAttrType"><a>DOMString</a></span></dt>
@@ -563,7 +570,7 @@ <h3 id="the-medialist-interface"><span class="secno">4.4 </span>The <code>MediaL
563570
<dd>
564571
<p>The <code>deleteMedium</code> method must run these steps:</p> <ol> <li><p>Let <var>m</var> be the result of <a href="#parse-a-media-query" title="parse a media query">parsing</a> the given value.</li> <li><p>If <var>m</var> is null terminate these steps.</li> <li><p>Remove any media query from the <a href="#collection-of-media-queries">collection of media queries</a> for which <a href="#compare-media-queries" title="compare media queries">comparing</a> the media query with <var>m</var> returns true.</li> </ol></dd>
565572
</dl>
566-
<p>To <dfn id="create-a-medialist-object">create a <code>MediaList</code> object</dfn> from a string <var>s</var>, run these steps:</p> <ol> <li><p>Create a new {@name} object.</li> <li><p>Set its <span title="dom-MediaList-mediaText">mediaText</span> attribute to <var>s</var>.</li> <li><p>Return the newly created <code>{@name}</code> object.</li> </ol>
573+
567574

568575
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
569576

@@ -929,7 +936,7 @@ <h4 id="the-stylesheet-interface"><span class="secno">6.1.1 </span>The <code>Sty
929936
<h4 id="the-cssstylesheet-interface"><span class="secno">6.1.2 </span>The <code>CSSStyleSheet</code> Interface</h4>
930937

931938
<p>The <code>CSSStyleSheet</code> interface represents a CSS <a href="#style-sheet">style sheet</a> rule.</p>
932-
<pre class="idl"><span class="idlInterface" id="widl-def-CSSStyleSheet">interface <span class="idlInterfaceID">CSSStyleSheet</span> {
939+
<pre class="idl"><span class="idlInterface" id="widl-def-CSSStyleSheet">interface <span class="idlInterfaceID">CSSStyleSheet</span> : <span class="idlSuperclass"><a class="idlType" href="#widl-def-StyleSheet"><code>StyleSheet</code></a></span> {
933940
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>CSSRule</a>?</span> <span class="idlAttrName"><a href="#widl-CSSStyleSheet-ownerRule">ownerRule</a></span>;</span>
934941
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>CSSRuleList</a></span> <span class="idlAttrName"><a href="#widl-CSSStyleSheet-cssRules">cssRules</a></span>;</span>
935942
<span class="idlMethod"> <span class="idlMethType"><a>unsigned long</a></span> <span class="idlMethName"><a href="#widl-CSSStyleSheet-insertRule-unsigned-long-DOMString-rule-unsigned-long-index">insertRule</a></span> (<span class="idlParam"><span class="idlParamType"><a>DOMString</a></span> <span class="idlParamName">rule</span></span>, <span class="idlParam"><span class="idlParamType"><a>unsigned long</a></span> <span class="idlParamName">index</span></span>);</span>
@@ -1301,7 +1308,8 @@ <h3 id="style-sheet-association"><span class="secno">6.3 </span>Style Sheet Asso
13011308
<h4 id="the-linkstyle-interface"><span class="secno">6.3.1 </span>The <code>LinkStyle</code> Interface</h4>
13021309

13031310
<p>The <dfn id="associated-style-sheet">associated style sheet</dfn> of a node is the <a href="#style-sheet">style sheet</a> in the list of <a href="#document-style-sheets">document style sheets</a> of which the <a href="#style-sheet-owner-node">style sheet owner node</a> implements the <code>LinkStyle</code> interface.</p>
1304-
<pre class="idl"><span class="idlInterface" id="widl-def-LinkStyle">interface <span class="idlInterfaceID">LinkStyle</span> {
1311+
<pre class="idl"><span class="idlInterface" id="widl-def-LinkStyle">[NoInterfaceObject]
1312+
interface <span class="idlInterfaceID">LinkStyle</span> {
13051313
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>StyleSheet</a></span> <span class="idlAttrName"><a href="#widl-LinkStyle-sheet">sheet</a></span>;</span>
13061314
};</span></pre>
13071315
<dl class="attributes">
@@ -1674,7 +1682,7 @@ <h4 id="the-cssrule-interface"><span class="secno">6.4.2 </span>The <code>CSSRul
16741682
<h4 id="the-cssstylerule-interface"><span class="secno">6.4.3 </span>The <code>CSSStyleRule</code> Interface</h4>
16751683

16761684
<p>The <code>CSSStyleRule</code> interface represents a rule set.</p>
1677-
<pre class="idl"><span class="idlInterface" id="widl-def-CSSStyleRule">interface <span class="idlInterfaceID">CSSStyleRule</span> {
1685+
<pre class="idl"><span class="idlInterface" id="widl-def-CSSStyleRule">interface <span class="idlInterfaceID">CSSStyleRule</span> : <span class="idlSuperclass"><a class="idlType" href="#widl-def-CSSRule"><code>CSSRule</code></a></span> {
16781686
<span class="idlAttribute"> attribute <span class="idlAttrType"><a>DOMString</a></span> <span class="idlAttrName"><a href="#widl-CSSStyleRule-selectorText">selectorText</a></span>;</span>
16791687
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>CSSStyleDeclaration</a></span> <span class="idlAttrName"><a href="#widl-CSSStyleRule-style">style</a></span>;</span>
16801688
};</span></pre>
@@ -1695,7 +1703,7 @@ <h4 id="the-cssstylerule-interface"><span class="secno">6.4.3 </span>The <code>C
16951703
<h4 id="the-cssimportrule-interface"><span class="secno">6.4.4 </span>The <code>CSSImportRule</code> Interface</h4>
16961704

16971705
<p>The <code>CSSImportRule</code> interface represents an <code>@import</code> rule.</p>
1698-
<pre class="idl"><span class="idlInterface" id="widl-def-CSSImportRule">interface <span class="idlInterfaceID">CSSImportRule</span> {
1706+
<pre class="idl"><span class="idlInterface" id="widl-def-CSSImportRule">interface <span class="idlInterfaceID">CSSImportRule</span> : <span class="idlSuperclass"><a class="idlType" href="#widl-def-CSSRule"><code>CSSRule</code></a></span> {
16991707
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>DOMString</a></span> <span class="idlAttrName"><a href="#widl-CSSImportRule-href">href</a></span>;</span>
17001708
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>MediaList</a></span> <span class="idlAttrName"><a href="#widl-CSSImportRule-media">media</a></span>;</span>
17011709
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>CSSStyleSheet</a></span> <span class="idlAttrName"><a href="#widl-CSSImportRule-styleSheet">styleSheet</a></span>;</span>
@@ -1721,7 +1729,7 @@ <h4 id="the-cssimportrule-interface"><span class="secno">6.4.4 </span>The <code>
17211729
<h4 id="the-cssmediarule-interface"><span class="secno">6.4.5 </span>The <code>CSSMediaRule</code> Interface</h4>
17221730

17231731
<p>The <code>CSSMediaRule</code> interface represents a <code>@media</code> rule.</p>
1724-
<pre class="idl"><span class="idlInterface" id="widl-def-CSSMediaRule">interface <span class="idlInterfaceID">CSSMediaRule</span> {
1732+
<pre class="idl"><span class="idlInterface" id="widl-def-CSSMediaRule">interface <span class="idlInterfaceID">CSSMediaRule</span> : <span class="idlSuperclass"><a class="idlType" href="#widl-def-CSSRule"><code>CSSRule</code></a></span> {
17251733
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>MediaList</a></span> <span class="idlAttrName"><a href="#widl-CSSMediaRule-media">media</a></span>;</span>
17261734
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>CSSRuleList</a></span> <span class="idlAttrName"><a href="#widl-CSSMediaRule-cssRules">cssRules</a></span>;</span>
17271735
<span class="idlMethod"> <span class="idlMethType"><a>unsigned long</a></span> <span class="idlMethName"><a href="#widl-CSSMediaRule-insertRule-unsigned-long-DOMString-rule-unsigned-long-index">insertRule</a></span> (<span class="idlParam"><span class="idlParamType"><a>DOMString</a></span> <span class="idlParamName">rule</span></span>, <span class="idlParam"><span class="idlParamType"><a>unsigned long</a></span> <span class="idlParamName">index</span></span>);</span>
@@ -1754,7 +1762,7 @@ <h4 id="the-cssmediarule-interface"><span class="secno">6.4.5 </span>The <code>C
17541762
<h4 id="the-cssfontfacerule-interface"><span class="secno">6.4.6 </span>The <code>CSSFontFaceRule</code> Interface</h4>
17551763

17561764
<p>The <code>CSSFontFaceRule</code> interface represents a <code>@font-face</code> rule.</p>
1757-
<pre class="idl"><span class="idlInterface" id="widl-def-CSSFontFaceRule">interface <span class="idlInterfaceID">CSSFontFaceRule</span> {
1765+
<pre class="idl"><span class="idlInterface" id="widl-def-CSSFontFaceRule">interface <span class="idlInterfaceID">CSSFontFaceRule</span> : <span class="idlSuperclass"><a class="idlType" href="#widl-def-CSSRule"><code>CSSRule</code></a></span> {
17581766
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>CSSStyleDeclaration</a></span> <span class="idlAttrName"><a href="#widl-CSSFontFaceRule-style">style</a></span>;</span>
17591767
};</span></pre>
17601768
<dl class="attributes">
@@ -1770,7 +1778,7 @@ <h4 id="the-cssfontfacerule-interface"><span class="secno">6.4.6 </span>The <cod
17701778
<h4 id="the-csspagerule-interface"><span class="secno">6.4.7 </span>The <code>CSSPageRule</code> Interface</h4>
17711779

17721780
<p>The <code>CSSPageRule</code> interface represents a <code>@page</code> rule.</p> <p class="note">Need to define the rules for <dfn id="parse-a-css-page-selector">parse a CSS page selector</dfn> and <dfn id="serialize-a-css-page-selector">serialize a CSS page selector</dfn>.</p>
1773-
<pre class="idl"><span class="idlInterface" id="widl-def-CSSPageRule">interface <span class="idlInterfaceID">CSSPageRule</span> {
1781+
<pre class="idl"><span class="idlInterface" id="widl-def-CSSPageRule">interface <span class="idlInterfaceID">CSSPageRule</span> : <span class="idlSuperclass"><a class="idlType" href="#widl-def-CSSRule"><code>CSSRule</code></a></span> {
17741782
<span class="idlAttribute"> attribute <span class="idlAttrType"><a>DOMString</a></span> <span class="idlAttrName"><a href="#widl-CSSPageRule-selectorText">selectorText</a></span>;</span>
17751783
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>CSSStyleDeclaration</a></span> <span class="idlAttrName"><a href="#widl-CSSPageRule-style">style</a></span>;</span>
17761784
};</span></pre>
@@ -1791,7 +1799,7 @@ <h4 id="the-csspagerule-interface"><span class="secno">6.4.7 </span>The <code>CS
17911799
<h4 id="the-cssnamespacerule-interface"><span class="secno">6.4.8 </span>The <code>CSSNamespaceRule</code> Interface</h4>
17921800

17931801
<p>The <code>CSSNamespaceRule</code> interface represents a <code>@namespace</code> rule.</p>
1794-
<pre class="idl"><span class="idlInterface" id="widl-def-CSSNamespaceRule">interface <span class="idlInterfaceID">CSSNamespaceRule</span> {
1802+
<pre class="idl"><span class="idlInterface" id="widl-def-CSSNamespaceRule">interface <span class="idlInterfaceID">CSSNamespaceRule</span> : <span class="idlSuperclass"><a class="idlType" href="#widl-def-CSSRule"><code>CSSRule</code></a></span> {
17951803
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>DOMString</a></span> <span class="idlAttrName"><a href="#widl-CSSNamespaceRule-namespaceURI">namespaceURI</a></span>;</span>
17961804
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>DOMString</a>?</span> <span class="idlAttrName"><a href="#widl-CSSNamespaceRule-prefix">prefix</a></span>;</span>
17971805
};</span></pre>
@@ -2202,7 +2210,8 @@ <h2 id="dom-access-to-css-declaration-blocks"><span class="secno">7 </span>DOM A
22022210
<h3 id="the-elementcssinlinestyle-interface"><span class="secno">7.1 </span>The <code>ElementCSSInlineStyle</code> Interface</h3>
22032211

22042212
The <code>ElementCSSInlineStyle</code> interface is implemented by <code>Element</code> objects in order to provide access to inline style properties.
2205-
<pre class="idl"><span class="idlInterface" id="widl-def-ElementCSSInlineStyle">interface <span class="idlInterfaceID">ElementCSSInlineStyle</span> {
2213+
<pre class="idl"><span class="idlInterface" id="widl-def-ElementCSSInlineStyle">[NoInterfaceObject]
2214+
interface <span class="idlInterfaceID">ElementCSSInlineStyle</span> {
22062215
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>CSSStyleDeclaration</a></span> <span class="idlAttrName"><a href="#widl-ElementCSSInlineStyle-style">style</a></span>;</span>
22072216
};</span></pre>
22082217
<dl class="attributes">

0 commit comments

Comments
 (0)