Skip to content

Commit 96a07d5

Browse files
author
Simon Pieters
committed
[cssom] Use more specific return type for ownerNode and make it nullable.
1 parent 046c811 commit 96a07d5

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

cssom/Overview.html

Lines changed: 5 additions & 5 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 8 May 2013</h2>
21+
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 9 May 2013</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 8 May 2013 Editor's Draft of CSSOM. Please send comments to
86+
<p class="dontpublish">This is the 9 May 2013 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.
@@ -914,7 +914,7 @@ <h4 id="the-stylesheet-interface"><span class="secno">6.1.1 </span>The <code><a
914914
<pre class="idl"><span class="idlInterface" id="widl-def-StyleSheet">interface <a class="idlInterfaceID" href="#widl-CSSImportRule-styleSheet">StyleSheet</a> {
915915
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>DOMString</a></span> <span class="idlAttrName"><a href="#widl-StyleSheet-type">type</a></span>;</span>
916916
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>DOMString</a>?</span> <span class="idlAttrName"><a href="#widl-StyleSheet-href">href</a></span>;</span>
917-
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>Node</a></span> <span class="idlAttrName"><a href="#widl-StyleSheet-ownerNode">ownerNode</a></span>;</span>
917+
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>union</a>?</span> <span class="idlAttrName"><a href="#widl-StyleSheet-ownerNode">ownerNode</a></span>;</span>
918918
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>StyleSheet</a>?</span> <span class="idlAttrName"><a href="#widl-StyleSheet-parentStyleSheet">parentStyleSheet</a></span>;</span>
919919
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>DOMString</a>?</span> <span class="idlAttrName"><a href="#widl-StyleSheet-title">title</a></span>;</span>
920920
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>MediaList</a></span> <span class="idlAttrName"><a href="#widl-StyleSheet-media">media</a></span>;</span>
@@ -930,9 +930,9 @@ <h4 id="the-stylesheet-interface"><span class="secno">6.1.1 </span>The <code><a
930930
<dd>
931931
<p>The <code><a href="#widl-CSSImportRule-href">href</a></code> attribute must return the <a href="#style-sheet-location">style sheet location</a> or <code>null</code> if none.</p> <p class="issue">What should the default value be if not known or specified upon creation? an empty string or <code>null</code>?</dd>
932932
<dt class="attribute" id="widl-StyleSheet-ownerNode">
933-
<dfn id="widl-StyleSheet-ownerNode"><code>ownerNode</code></dfn> of type <span class="idlAttrType"><a>Node</a></span>, readonly</dt>
933+
<dfn id="widl-StyleSheet-ownerNode"><code>ownerNode</code></dfn> of type <span class="idlAttrType"><a>union</a>?</span>, readonly</dt>
934934
<dd>
935-
<p>The <code><a href="#widl-StyleSheet-ownerNode">ownerNode</a></code> attribute must return the <a href="#style-sheet-owner-node">style sheet owner node</a>.</p> <p class="issue">Should <code><a href="#widl-StyleSheet-ownerNode">ownerNode</a></code> be nullable?</dd>
935+
<p>The <code><a href="#widl-StyleSheet-ownerNode">ownerNode</a></code> attribute must return the <a href="#style-sheet-owner-node">style sheet owner node</a> or <code>null</code> if there is none.</p> <p class="issue">The return type in the IDL is supposed to be <code>(Element or ProcessingInstruction)?</code>.</dd>
936936
<dt class="attribute" id="widl-StyleSheet-parentStyleSheet">
937937
<dfn id="widl-StyleSheet-parentStyleSheet"><code>parentStyleSheet</code></dfn> of type <span class="idlAttrType"><a>StyleSheet</a>?</span>, readonly</dt>
938938
<dd>

cssom/idl/StyleSheet.idl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ interface StyleSheet {
2121
readonly attribute DOMString? href;
2222

2323
[Documentation=
24-
"<p>The {@name} {@type} must return the <span>style sheet owner node</span>.</p>\
25-
<p class='issue'>Should {@name} be nullable?</p>"
24+
"<p>The {@name} {@type} must return the <span>style sheet owner node</span> or <code>null</code> if there is none.</p>\
25+
<p class=issue>The return type in the IDL is supposed to be <code>(Element or ProcessingInstruction)?</code>.</p>"
2626
]
27-
readonly attribute Node ownerNode;
27+
readonly attribute (Element or ProcessingInstruction)? ownerNode;
2828

2929
[Documentation=
3030
"<p>The {@name} {@type} must return the <span>style sheet parent</span> or <code>null</code> if there is none.</p>"

0 commit comments

Comments
 (0)