Skip to content

Commit

Permalink
Make alternate stylesheet set names case-sensitive.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@28 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 15, 2006
1 parent ee5a005 commit dde72fb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
29 changes: 14 additions & 15 deletions index
Expand Up @@ -35,7 +35,7 @@

<h1 id="web-applications">Web Applications 1.0</h1>

<h2 class="no-num no-toc" id="working">Working Draft &mdash; 14 April 2006</h2>
<h2 class="no-num no-toc" id="working">Working Draft &mdash; 15 April 2006</h2>

<p>You can take part in this work. <a
href="http://www.whatwg.org/mailing-list">Join the working group's
Expand Down Expand Up @@ -13249,8 +13249,8 @@ interface <dfn id="documentstyle">DocumentStyle</dfn> {

<p>If all the sheets that are enabled and <span><a href="#have-a">have a
title</a></span> have the <em>same</em> title (by
<span>case-insensitive</span><!--XXX xref --> comparisons) then the
value of this attribute must be exactly equal to the title of the first
<span>case-sensitive</span><!--XXX xref --> comparisons) then the value
of this attribute must be exactly equal to the title of the first
enabled style sheet with a title in the <code>styleSheets</code> list.
Otherwise, if style sheets from different sets are enabled, then the
return value must be null (there is no way to determine what the
Expand Down Expand Up @@ -13308,8 +13308,8 @@ interface <dfn id="documentstyle">DocumentStyle</dfn> {
implementation, in the order they are listed in the
<code>styleSheets</code> attribute, adding the title of each style sheet
with a title to the list, avoiding duplicates by dropping titles that
match (<span>case-insensitively</span><!-- XXX xref -->) titles that
have already been added to the list.</p>
match (<span>case-sensitively</span><!-- XXX xref -->) titles that have
already been added to the list.</p>

<dt><dfn id="enablestylesheetsforset"
title="enableStylesheetsForSet()"><code>enableStylesheetsForSet(<var
Expand All @@ -13320,11 +13320,11 @@ interface <dfn id="documentstyle">DocumentStyle</dfn> {
each <code>StyleSheet</code> object with a title attribute with a length
greater than 0 in the <code>styleSheets</code> attribute, so that all
those whose title matches the <var title="">name</var> argument are
enabled, and all others are disabled. Title matches must be <span>case
insensitive</span><!-- XXX xref -->. Calling this method with the empty
string disables all alternate and preferred style sheets (but does not
change the state of persistent style sheets, that is those with no title
attribute).</p>
enabled, and all others are disabled. Title matches must be
<span>case-sensitive</span><!-- XXX xref -->. Calling this method with
the empty string disables all alternate and preferred style sheets (but
does not change the state of persistent style sheets, that is those with
no title attribute).</p>

<p>Calling this method with a null value must have no effect.</p>

Expand Down Expand Up @@ -13364,14 +13364,13 @@ interface <dfn id="documentstyle">DocumentStyle</dfn> {

<li> The <code><a href="#laststylesheetset">lastStylesheetSet</a></code>
is null, and the style sheet's title matches (by
<span>case-insensitive</span><!-- XXX
xref --> match) the value of
the <code><a
href="#preferredstylesheetset">preferredStylesheetSet</a></code>
<span>case-sensitive</span><!-- XXX
xref --> match) the value of the
<code><a href="#preferredstylesheetset">preferredStylesheetSet</a></code>
attribute.

<li> The style sheet's title matches (by
<span>case-insensitive</span><!-- XXX xref --> match) the value of the
<span>case-sensitive</span><!-- XXX xref --> match) the value of the
<code><a href="#laststylesheetset">lastStylesheetSet</a></code>
attribute.
</ul>
Expand Down
10 changes: 5 additions & 5 deletions source
Expand Up @@ -11434,7 +11434,7 @@ interface <dfn>DocumentStyle</dfn> {

<p>If all the sheets that are enabled and <span>have a
title</span> have the <em>same</em> title (by
<span>case-insensitive</span><!--XXX xref --> comparisons)
<span>case-sensitive</span><!--XXX xref --> comparisons)
then the value of this attribute must be exactly equal to the
title of the first enabled style sheet with a title in the
<code>styleSheets</code> list. Otherwise, if style sheets from
Expand Down Expand Up @@ -11497,7 +11497,7 @@ interface <dfn>DocumentStyle</dfn> {
in the <code>styleSheets</code> attribute, adding the title of
each style sheet with a title to the list, avoiding duplicates
by dropping titles that match
(<span>case-insensitively</span><!-- XXX xref -->) titles that
(<span>case-sensitively</span><!-- XXX xref -->) titles that
have already been added to the list.</p>

</dd>
Expand All @@ -11511,7 +11511,7 @@ interface <dfn>DocumentStyle</dfn> {
<code>styleSheets</code> attribute, so that all those whose
title matches the <var title="">name</var> argument are
enabled, and all others are disabled. Title matches must be
<span>case insensitive</span><!-- XXX xref -->. Calling this
<span>case-sensitive</span><!-- XXX xref -->. Calling this
method with the empty string disables all alternate and
preferred style sheets (but does not change the state of
persistent style sheets, that is those with no title
Expand Down Expand Up @@ -11553,12 +11553,12 @@ interface <dfn>DocumentStyle</dfn> {
<li> The style sheet has an empty title.</li>

<li> The <code>lastStylesheetSet</code> is null, and the style
sheet's title matches (by <span>case-insensitive</span><!-- XXX
sheet's title matches (by <span>case-sensitive</span><!-- XXX
xref --> match) the value of the
<code>preferredStylesheetSet</code> attribute.</li>

<li> The style sheet's title matches (by
<span>case-insensitive</span><!-- XXX xref --> match) the value
<span>case-sensitive</span><!-- XXX xref --> match) the value
of the <code>lastStylesheetSet</code> attribute.</li>

</ul>
Expand Down

0 comments on commit dde72fb

Please sign in to comment.