Skip to content

Commit

Permalink
[] (0) Update the spec to refer to current CSSOM terminology for Link…
Browse files Browse the repository at this point in the history
…Style/StyleSheet.

git-svn-id: http://svn.whatwg.org/webapps@3501 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 30, 2009
1 parent 24f782f commit 4cd1a88
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 24 deletions.
37 changes: 25 additions & 12 deletions index
Expand Up @@ -11125,19 +11125,18 @@ people expect to have work and what is necessary.
<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
Expand All @@ -11147,19 +11146,32 @@ people expect to have work and what is necessary.
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
Expand Down Expand Up @@ -53420,8 +53432,8 @@ style/default.css</pre>
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>
Expand Down Expand Up @@ -72060,6 +72072,7 @@ time:empty { binding: <i title="">time</i>; }</pre>
Ajai Tirumali,
Alan Plum,
Alastair Campbell,
Alex Bishop,
Alex Nicolaou,
Alex Rousskov,
Alexander J. Vincent,
Expand Down
38 changes: 26 additions & 12 deletions source
Expand Up @@ -11696,22 +11696,22 @@ people expect to have work and what is necessary.

<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
<code>link</code> elements, this is the <span
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
Expand All @@ -11722,19 +11722,32 @@ people expect to have work and what is necessary.
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>

Expand Down Expand Up @@ -62601,8 +62614,8 @@ interface <dfn>SQLTransactionSync</dfn> {
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>

Expand Down Expand Up @@ -85246,6 +85259,7 @@ time:empty { binding: <i title="">time</i>; }</pre>
Ajai Tirumali,
Alan Plum,
Alastair Campbell,
Alex Bishop,
Alex Nicolaou,
Alex Rousskov,
Alexander J. Vincent,
Expand Down

0 comments on commit 4cd1a88

Please sign in to comment.