Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

Re: title attribute and stylesheets

From: Tantek Çelik <tantek@cs.stanford.edu>
Date: Wed, 23 Apr 2003 15:20:01 -0700
To: Ernest Cline <ernestcline@mindspring.com>, <www-html@w3.org>
CC: Daniel Glazman <glazou2000@aol.com>
Message-ID: <BACC5F27.26853%tantek@cs.stanford.edu>

On 4/23/03 10:16 AM, "Ernest Cline" <ernestcline@mindspring.com> wrote:

> 
> Daniel Glazman wrote:
> 
>> Ernest Cline wrote:
>> 
>>> <style src="persistent.css" />
>>> <style src="preferred.css" navindex="1" />
>>> <style src="alternate.css" navindex="2" />
>>> <style src="alternateprint.css" navindex="2" media="print" />
>>> <style src="secondalternate.css" navindex="3" />
>> 
>> Oh my goodness... No, please!!!!
> 
> Isn't that a bit overdone? I'm not 100% happy with this either, but I
> think it is an improvement over the current method of indicating
> persistent, preferred, and alternate style sheets. If you have another
> idea for eliminating the use of the title attribute as a marker for
> whether an external style sheet is persistent or preferred, I'd gladly
> embrace it.

Certainly the current method is neither optimal nor easily understood, but
substituting a title attribute hack with a navindex hack is no better.

There is another place in HTML where elements are grouped logically, and
that is <input type="radio">, where elements with the same 'name' attribute
(the remaining valid use of the name attribute) are considered to be part of
the same radio group.

Perhaps this design pattern could be applied to style sheets as well.

Another possibility would be to adopt the <switch> element.

 http://www.w3.org/TR/REC-smil/#switch 

Perhaps an opportunity to create a _minimal_ subset profile of SMIL, and
recast it as a more generic XHTML module.

Tantek
Received on Wednesday, 23 April 2003 18:18:11 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.