cssom/Overview.html

changeset 7307
e06243ea0881
parent 7306
b98722431f64
child 7728
766a04ad4cfb
     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

mercurial