cssom/cssom-source

changeset 7307
e06243ea0881
parent 7306
b98722431f64
child 7728
766a04ad4cfb
     1.1 --- a/cssom/cssom-source	Mon Feb 04 11:50:40 2013 -0700
     1.2 +++ b/cssom/cssom-source	Mon Feb 04 12:42:58 2013 -0700
     1.3 @@ -1112,15 +1112,19 @@
     1.4    <!--{@idl(LinkStyle)}-->
     1.5  
     1.6    <div class="example">
     1.7 -   <p>In the following HTML snippet the first HTML <code>style</code>
     1.8 +   <p>In the following fragment, the first <code>style</code>
     1.9     element has a <code>sheet</code> attribute that returns a
    1.10     <code>StyleSheet</code> object representing the style sheet, but for
    1.11 -   the second <code>style</code> attribute it returns <code>null</code>.
    1.12 -   (Assuming the user agent supports CSS (<code>text/css</code>) and does
    1.13 -   not support ExampleSheets (<code>text/example-sheets</code>).</p>
    1.14 +   the second <code>style</code> element, the <code>style</code> attribute returns <code>null</code>,
    1.15 +   assuming the user agent supports CSS (<code>text/css</code>), but does
    1.16 +   not support the (hypothetical) ExampleSheets (<code>text/example-sheets</code>).</p>
    1.17  
    1.18 -   <pre>&lt;style type=text/css> body { background:lime } &lt;/style>
    1.19 -&lt;style type=text/example-sheets> $(body).background := lime &lt;/style></pre>
    1.20 +   <pre>&lt;style type="text/css"&gt;
    1.21 +  body { background:lime }
    1.22 +&lt;/style&gt;</pre>
    1.23 +   <pre>&lt;style type="text/example-sheets"&gt;
    1.24 +  $(body).background := lime
    1.25 +&lt;/style&gt;</pre>
    1.26    </div>
    1.27  
    1.28    <p class="note">Whether or not the node refers to a style sheet is defined

mercurial