cssom/cssom-source

changeset 6935
e9f4e4a43967
parent 6934
dad8553cb511
child 6942
bd4a4bc0d9f3
     1.1 --- a/cssom/cssom-source	Sat Oct 27 14:39:47 2012 +0200
     1.2 +++ b/cssom/cssom-source	Sat Oct 27 17:28:33 2012 +0200
     1.3 @@ -1181,11 +1181,11 @@
     1.4  
     1.5     <li>
     1.6      <p>When the resource is available, the document is in
     1.7 -    <span data-anolis-spec=dom title=concept-quirks-mode>quirks mode</span>
     1.8 +    <span data-anolis-spec=html>quirks mode</span>
     1.9      and the
    1.10 -    <span data-anolis-spec=html>Content-Type metadata</span> of
    1.11 +    <span data-anolis-spec=html title="content-type">Content-Type metadata</span> of
    1.12      the resource is not a <span>supported styling language</span> change the
    1.13 -    <span data-anolis-spec=html>Content-Type metadata</span> of the resource
    1.14 +    <span data-anolis-spec=html title="content-type">Content-Type metadata</span> of the resource
    1.15      to <code>text/css</code>.</p>
    1.16  
    1.17      <p class="note">This step might never actually happen, but is included
    1.18 @@ -1259,10 +1259,10 @@
    1.19     <span data-anolis-spec=html>fetch</span> it.</p></li>
    1.20  
    1.21     <li><p>When the resource is available, the document is in
    1.22 -   <span data-anolis-spec=dom title=concept-quirks-mode>quirks mode</span>
    1.23 -   and the <span data-anolis-spec=html>Content-Type metadata</span> of
    1.24 +   <span data-anolis-spec=html>quirks mode</span>
    1.25 +   and the <span data-anolis-spec=html title="content-type">Content-Type metadata</span> of
    1.26     the resource is not a <span>supported styling language</span> change the
    1.27 -   <span data-anolis-spec=html>Content-Type metadata</span> of the resource
    1.28 +   <span data-anolis-spec=html title="content-type">Content-Type metadata</span> of the resource
    1.29     to <code>text/css</code>.</p></li>
    1.30  
    1.31     <li><p>If the resource is not in a
    1.32 @@ -1340,21 +1340,40 @@
    1.33    <p class="issue">Should a rule be instantiated in OM if there is a parse error? To
    1.34    what extent should original (but non-valid) CSS text be captured in cssText?</p>
    1.35  
    1.36 -  <p>To <dfn>serialize a CSS rule</dfn> depends on the type of CSS rule, as
    1.37 -  follows:</p>
    1.38 +  <p>To <dfn>serialize a CSS rule</dfn>, perform one of the following in accordance with the its <span>rule type</span>:</p>
    1.39  
    1.40    <dl class="switch">
    1.41     <dt><code>CSSStyleRule</code></dt>
    1.42 -   <dd><p class="issue">...</p></dd>
    1.43 +   <dd>
    1.44 +    <p>The result of concatenating the following:</p>
    1.45 +    <ol>
    1.46 +     <li>The result of performing <span>serialize a group of selectors</span> on the rule's associated selectors.</li>
    1.47 +     <li>The string "<code> { </code>", i.e., a single SPACE (U+0020), followed by LEFT CURLY BRACKET (U+007B),
    1.48 +     followed by a single SPACE (U+0020).</li>
    1.49 +     <li>The result of performing <span>serialize a CSS declaration block</span> on the rule's associated declarations.</li>
    1.50 +     <li>If the rule is associated with one or more declarations, the string "<code> </code>", i.e., a single SPACE (U+0020).</li>
    1.51 +     <li>The string "<code>}</code>", RIGHT CURLY BRACKET (U+007D).
    1.52 +    </ol>
    1.53 +   </dd>
    1.54  
    1.55     <dt><code>CSSCharsetRule</code></dt>
    1.56 -   <dd><p class="issue">...</p></dd>
    1.57 +   <dd>
    1.58 +    <p>The result of concatenating the following:</p>
    1.59 +    <ol>
    1.60 +     <li>The string "<code>@charset</code>" followed by a single SPACE (U+0020).</li>
    1.61 +     <li>The result of performing <span>serialize a string</span> on the <span data-anolis-spec=html>preferred MIME name</span> of the rule's encoding.</li>
    1.62 +     <li>The string "<code>;</code>", i.e., SEMICOLON (U+003B).
    1.63 +    </ol>
    1.64 +    <div class="example">
    1.65 +    <pre>@charset "UTF-8";</pre>
    1.66 +    </div>
    1.67 +   </dd>
    1.68  
    1.69     <dt><code>CSSImportRule</code></dt>
    1.70     <dd>
    1.71 -    <p>The result of concatenating these strings:</p>
    1.72 +    <p>The result of concatenating the following:</p>
    1.73      <ol>
    1.74 -     <li>The literal string "<code>@import</code>", followed by a single SPACE
    1.75 +     <li>The string "<code>@import</code>" followed by a single SPACE
    1.76       (U+0020), followed by the <span title="serialize a URL">URL escaped</span>
    1.77       value of the <code title="dom-CSSImportRule-href">href</code>
    1.78       attribute.</li>

mercurial