[html5] r3501 - [] (0) Update the spec to refer to current CSSOM terminology for LinkStyle/Style [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Jul 30 16:03:55 PDT 2009


Author: ianh
Date: 2009-07-30 16:03:53 -0700 (Thu, 30 Jul 2009)
New Revision: 3501

Modified:
   index
   source
Log:
[] (0) Update the spec to refer to current CSSOM terminology for LinkStyle/StyleSheet.

Modified: index
===================================================================
--- index	2009-07-30 22:46:30 UTC (rev 3500)
+++ index	2009-07-30 23:03:53 UTC (rev 3501)
@@ -11125,19 +11125,18 @@
   <code>LinkStyle</code> interface's <code title=dom-LinkStyle-sheet>sheet</code> attribute return null.</p>
 
   <p>Otherwise, the <code>LinkStyle</code> interface's <code title=dom-LinkStyle-sheet>sheet</code> attribute must return a
-  <code>StyleSheet</code> object with the attributes implemented as
-  follows: <a href=#refsCSSOM>[CSSOM]</a></p>
+  <code>StyleSheet</code> object with the following properties: <a href=#refsCSSOM>[CSSOM]</a></p>
 
-  <dl><dt>The content type (<code title=dom-stylesheet-type>type</code> DOM attribute)</dt>
+  <dl><dt>The style sheet type</dt>
 
-   <dd><p>The content type must be the same as the style's specified
+   <dd><p>The style sheet type must be the same as the style's specified
    type. For <code><a href=#the-style-element>style</a></code> elements, this is the same as the
    <code title=attr-style-type><a href=#attr-style-type>type</a></code> content attribute's
    value, or <code title="">text/css</code> if that is omitted. For
    <code><a href=#the-link-element>link</a></code> elements, this is the <a href=#content-type title=Content-Type>Content-Type metadata of the specified
    resource</a>.</dd>
 
-   <dt>The location (<code title=dom-stylesheet-href>href</code> DOM attribute)</dt>
+   <dt>The style sheet location</dt>
 
    <dd><p>For <code><a href=#the-link-element>link</a></code> elements, the location must be the
    result of <a href=#resolve-a-url title="resolve a url">resolving</a> the
@@ -11147,20 +11146,33 @@
    note that this might not match the style sheet URL, if the base URL
    has changed for instance -->
 
-   <dt>The intended destination media for style information (<code title=dom-stylesheet-media>media</code> DOM attribute)</dt>
+   <dt>The style sheet media</dt>
 
    <dd><p>The media must be the same as the value of the element's
-   <code title="">media</code> content attribute.</dd>
+   <code title="">media</code> content attribute, or the empty string,
+   if the attribute is omitted.</dd>
 
-   <dt>The style sheet title (<code title=dom-stylesheet-title>title</code> DOM attribute)</dt>
+   <dt>The style sheet title</dt>
 
    <dd><p>The title must be the same as the value of the element's
    <code title=dom-title><a href=#dom-title>title</a></code> content attribute, if the
    attribute is present and has a non-empty value. If the attribute is
    absent or its value is the empty string, then the style sheet does
-   not have a title. The title is used for defining <span>alternative
-   style sheet sets</span>.</dd>
+   not have a title (it is the empty string). The title is used for
+   defining <span>alternative style sheet sets</span>.</dd>
 
+   <dt>The style sheet alternate flag</dt>
+
+   <dd><p>For <code><a href=#the-link-element>link</a></code> elements, true if <a href=#the-link-is-an-alternative-stylesheet>the link is an
+   alternative stylesheet</a>. In all other cases, false.</dd>
+
+<!--
+   <dt>The style sheet disabled flag</dt>
+   (not included, because I assume CSSOM will change to not require
+   this spec to initialise the value, but will instead initialise it
+   based on the other values)
+-->
+
   </dl><p>The <dfn id=dom-linkstyle-disabled title=dom-LinkStyle-disabled><code>disabled</code></dfn> DOM
   attribute on <code><a href=#the-link-element>link</a></code> and <code><a href=#the-style-element>style</a></code> elements must
   return false and do nothing on setting, if the <code title=dom-linkstyle-sheet>sheet</code> attribute of their
@@ -53420,8 +53432,8 @@
   depends on the actual type of the resource.</p>
 
   <p>If the <code title=rel-alternate><a href=#link-type-alternate>alternate</a></code> keyword is
-  also specified on the <code><a href=#the-link-element>link</a></code> element, then the link is an
-  alternative stylesheet; in this case, the <code title=attr-title><a href=#the-title-attribute>title</a></code> attribute must be specified on the
+  also specified on the <code><a href=#the-link-element>link</a></code> element, then <dfn id=the-link-is-an-alternative-stylesheet>the link
+  is an alternative stylesheet</dfn>; in this case, the <code title=attr-title><a href=#the-title-attribute>title</a></code> attribute must be specified on the
   <code><a href=#the-link-element>link</a></code> element, with a non-empty value.</p>
 
   <p>The default type for resources given by the <code title=rel-stylesheet><a href=#link-type-stylesheet>stylesheet</a></code> keyword is <code title="">text/css</code>.</p>
@@ -72060,6 +72072,7 @@
   Ajai Tirumali,
   Alan Plum,
   Alastair Campbell,
+  Alex Bishop,
   Alex Nicolaou,
   Alex Rousskov,
   Alexander J. Vincent,

Modified: source
===================================================================
--- source	2009-07-30 22:46:30 UTC (rev 3500)
+++ source	2009-07-30 23:03:53 UTC (rev 3501)
@@ -11696,14 +11696,14 @@
 
   <p>Otherwise, the <code>LinkStyle</code> interface's <code
   title="dom-LinkStyle-sheet">sheet</code> attribute must return a
-  <code>StyleSheet</code> object with the attributes implemented as
-  follows: <a href="#refsCSSOM">[CSSOM]</a></p>
+  <code>StyleSheet</code> object with the following properties: <a
+  href="#refsCSSOM">[CSSOM]</a></p>
 
   <dl>
 
-   <dt>The content type (<code title="dom-stylesheet-type">type</code> DOM attribute)</dt>
+   <dt>The style sheet type</dt>
 
-   <dd><p>The content type must be the same as the style's specified
+   <dd><p>The style sheet type must be the same as the style's specified
    type. For <code>style</code> elements, this is the same as the
    <code title="attr-style-type">type</code> content attribute's
    value, or <code title="">text/css</code> if that is omitted. For
@@ -11711,7 +11711,7 @@
    title="Content-Type">Content-Type metadata of the specified
    resource</span>.</p></dd>
 
-   <dt>The location (<code title="dom-stylesheet-href">href</code> DOM attribute)</dt>
+   <dt>The style sheet location</dt>
 
    <dd><p>For <code>link</code> elements, the location must be the
    result of <span title="resolve a url">resolving</span> the
@@ -11722,20 +11722,33 @@
    note that this might not match the style sheet URL, if the base URL
    has changed for instance -->
 
-   <dt>The intended destination media for style information (<code title="dom-stylesheet-media">media</code> DOM attribute)</dt>
+   <dt>The style sheet media</dt>
 
    <dd><p>The media must be the same as the value of the element's
-   <code title="">media</code> content attribute.</p></dd>
+   <code title="">media</code> content attribute, or the empty string,
+   if the attribute is omitted.</p></dd>
 
-   <dt>The style sheet title (<code title="dom-stylesheet-title">title</code> DOM attribute)</dt>
+   <dt>The style sheet title</dt>
 
    <dd><p>The title must be the same as the value of the element's
    <code title="dom-title">title</code> content attribute, if the
    attribute is present and has a non-empty value. If the attribute is
    absent or its value is the empty string, then the style sheet does
-   not have a title. The title is used for defining <span>alternative
-   style sheet sets</span>.</p></dd>
+   not have a title (it is the empty string). The title is used for
+   defining <span>alternative style sheet sets</span>.</p></dd>
 
+   <dt>The style sheet alternate flag</dt>
+
+   <dd><p>For <code>link</code> elements, true if <span>the link is an
+   alternative stylesheet</span>. In all other cases, false.</p></dd>
+
+<!--
+   <dt>The style sheet disabled flag</dt>
+   (not included, because I assume CSSOM will change to not require
+   this spec to initialise the value, but will instead initialise it
+   based on the other values)
+-->
+
   </dl>
 
   <p>The <dfn
@@ -62601,8 +62614,8 @@
   depends on the actual type of the resource.</p>
 
   <p>If the <code title="rel-alternate">alternate</code> keyword is
-  also specified on the <code>link</code> element, then the link is an
-  alternative stylesheet; in this case, the <code
+  also specified on the <code>link</code> element, then <dfn>the link
+  is an alternative stylesheet</dfn>; in this case, the <code
   title="attr-title">title</code> attribute must be specified on the
   <code>link</code> element, with a non-empty value.</p>
 
@@ -85246,6 +85259,7 @@
   Ajai Tirumali,
   Alan Plum,
   Alastair Campbell,
+  Alex Bishop,
   Alex Nicolaou,
   Alex Rousskov,
   Alexander J. Vincent,




More information about the Commit-Watchers mailing list