The "title" attribute of "style" elements

Would it be a valid (if 'progressive') interpretation of the spec to
treat the "title" attribute of the "style" element in much the same
way as the "title" attribute of the "link" element is treated when
used with stylesheets?

I would like to propose that this be explicitly specified in the new
HTML 4.01 specification, so that alternate stylesheets can be included
without having to make them external to HTML documents.

For example:

 <style type="text/css">
    /* persistent stylesheet */
 </style>

 <style type="text/css" title="a">
    /* preferred stylesheet (alternative called "a") */
 </style>

 <style type="text/css" title="b">
    /* alternative stylesheet (first part of alternative called "b") */
 </style>

 <style type="text/css" title="b">
    /* alternative stylesheet (second part of alternative called "b") */
 </style>

[Note that this is not 100% backwards compatible, since in HTML 4.0
browsers all the style elements, even those with title attributes,
will get used, whereas if using this proposal only the first will. I
suggest that this is a very minor detail since very few documents ever
include more than one style element anyway, let alone style elements
with title attributes.]

Cheers,
-- 
Ian Hickson
"So far, people have shown a reasonable amount of sense in evaluating
souls (whether they are properly priced)."
  -- Nick Gibbins; Author of http://totl.net/Soul/, 1999-10-05

Received on Thursday, 4 November 1999 14:12:00 UTC