[cssom] Make LinkStyle.style nullable; editorial clean up.
authorGlenn Adams <glenn@skynav.com>
Mon, 04 Feb 2013 12:42:58 -0700
changeset 7307e06243ea0881
parent 7306 b98722431f64
child 7308 db3e76a9ffc0
[cssom] Make LinkStyle.style nullable; editorial clean up.
cssom/Overview.html
cssom/cssom-source
cssom/idl/LinkStyle.idl
     1.1 --- a/cssom/Overview.html	Mon Feb 04 11:50:40 2013 -0700
     1.2 +++ b/cssom/Overview.html	Mon Feb 04 12:42:58 2013 -0700
     1.3 @@ -1328,26 +1328,30 @@
     1.4    <p>The <dfn id="associated-style-sheet">associated style sheet</dfn> of a node is the <span>style sheet</span> 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>
     1.5  <pre class="idl"><span class="idlInterface" id="widl-def-LinkStyle">[NoInterfaceObject]
     1.6  interface <span class="idlInterfaceID">LinkStyle</span> {
     1.7 -<span class="idlAttribute">    readonly attribute <span class="idlAttrType"><a>StyleSheet</a></span> <span class="idlAttrName"><a href="#widl-LinkStyle-sheet">sheet</a></span>;</span>
     1.8 +<span class="idlAttribute">    readonly attribute <span class="idlAttrType"><a>StyleSheet</a>?</span> <span class="idlAttrName"><a href="#widl-LinkStyle-sheet">sheet</a></span>;</span>
     1.9  };</span></pre>
    1.10  <dl class="attributes">
    1.11  <dt class="attribute" id="widl-LinkStyle-sheet">
    1.12 -<code>sheet</code> of type <span class="idlAttrType"><a>StyleSheet</a></span>, readonly</dt>
    1.13 +<code>sheet</code> of type <span class="idlAttrType"><a>StyleSheet</a>?</span>, readonly</dt>
    1.14  <dd>
    1.15 -<p>The <code>sheet</code> attribute must return the <a href="#associated-style-sheet">associated style sheet</a> for the node, or <code>null</code>,    if there is no <a href="#associated-style-sheet">associated style sheet</a>.</dd>
    1.16 +<p>The <code>sheet</code> attribute must return the <a href="#associated-style-sheet">associated style sheet</a> for the node or <code>null</code>    if there is no <a href="#associated-style-sheet">associated style sheet</a>.</dd>
    1.17  </dl>
    1.18  
    1.19  
    1.20    <div class="example">
    1.21 -   <p>In the following HTML snippet the first HTML <code>style</code>
    1.22 +   <p>In the following fragment, the first <code>style</code>
    1.23     element has a <code>sheet</code> attribute that returns a
    1.24     <code>StyleSheet</code> object representing the style sheet, but for
    1.25 -   the second <code>style</code> attribute it returns <code>null</code>.
    1.26 -   (Assuming the user agent supports CSS (<code>text/css</code>) and does
    1.27 -   not support ExampleSheets (<code>text/example-sheets</code>).</p>
    1.28 -
    1.29 -   <pre>&lt;style type=text/css&gt; body { background:lime } &lt;/style&gt;
    1.30 -&lt;style type=text/example-sheets&gt; $(body).background := lime &lt;/style&gt;</pre>
    1.31 +   the second <code>style</code> element, the <code>style</code> attribute returns <code>null</code>,
    1.32 +   assuming the user agent supports CSS (<code>text/css</code>), but does
    1.33 +   not support the (hypothetical) ExampleSheets (<code>text/example-sheets</code>).</p>
    1.34 +
    1.35 +   <pre>&lt;style type="text/css"&gt;
    1.36 +  body { background:lime }
    1.37 +&lt;/style&gt;</pre>
    1.38 +   <pre>&lt;style type="text/example-sheets"&gt;
    1.39 +  $(body).background := lime
    1.40 +&lt;/style&gt;</pre>
    1.41    </div>
    1.42  
    1.43    <p class="note">Whether or not the node refers to a style sheet is defined
     2.1 --- a/cssom/cssom-source	Mon Feb 04 11:50:40 2013 -0700
     2.2 +++ b/cssom/cssom-source	Mon Feb 04 12:42:58 2013 -0700
     2.3 @@ -1112,15 +1112,19 @@
     2.4    <!--{@idl(LinkStyle)}-->
     2.5  
     2.6    <div class="example">
     2.7 -   <p>In the following HTML snippet the first HTML <code>style</code>
     2.8 +   <p>In the following fragment, the first <code>style</code>
     2.9     element has a <code>sheet</code> attribute that returns a
    2.10     <code>StyleSheet</code> object representing the style sheet, but for
    2.11 -   the second <code>style</code> attribute it returns <code>null</code>.
    2.12 -   (Assuming the user agent supports CSS (<code>text/css</code>) and does
    2.13 -   not support ExampleSheets (<code>text/example-sheets</code>).</p>
    2.14 +   the second <code>style</code> element, the <code>style</code> attribute returns <code>null</code>,
    2.15 +   assuming the user agent supports CSS (<code>text/css</code>), but does
    2.16 +   not support the (hypothetical) ExampleSheets (<code>text/example-sheets</code>).</p>
    2.17  
    2.18 -   <pre>&lt;style type=text/css> body { background:lime } &lt;/style>
    2.19 -&lt;style type=text/example-sheets> $(body).background := lime &lt;/style></pre>
    2.20 +   <pre>&lt;style type="text/css"&gt;
    2.21 +  body { background:lime }
    2.22 +&lt;/style&gt;</pre>
    2.23 +   <pre>&lt;style type="text/example-sheets"&gt;
    2.24 +  $(body).background := lime
    2.25 +&lt;/style&gt;</pre>
    2.26    </div>
    2.27  
    2.28    <p class="note">Whether or not the node refers to a style sheet is defined
     3.1 --- a/cssom/idl/LinkStyle.idl	Mon Feb 04 11:50:40 2013 -0700
     3.2 +++ b/cssom/idl/LinkStyle.idl	Mon Feb 04 12:42:58 2013 -0700
     3.3 @@ -6,10 +6,10 @@
     3.4  interface LinkStyle {
     3.5  
     3.6    [Documentation=
     3.7 -   "<p>The {@name} {@type} must return the <span>associated style sheet</span> for the node, or <code>null</code>,\
     3.8 +   "<p>The {@name} {@type} must return the <span>associated style sheet</span> for the node or <code>null</code>\
     3.9      if there is no <span>associated style sheet</span>.</p>"
    3.10    ]
    3.11 -  readonly attribute StyleSheet sheet;
    3.12 +  readonly attribute StyleSheet? sheet;
    3.13  
    3.14  };
    3.15