W3C home > Mailing lists > Public > www-style@w3.org > January 2001

Is <link title="" rel="stylesheet" ...> a persistent or a preferred stylesheet? (HTML errata item requested)

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 19 Jan 2001 05:13:16 -0800 (Pacific Standard Time)
To: <www-html@w3.org>, <www-style@w3.org>, <www-dom@w3.org>
Message-ID: <Pine.WNT.4.31.0101190505470.908-100000@HIXIE.netscape.com>

This affects HTML4 and DOM2 (and, since it affects stylesheets from both
directions, I figured www-style might be interested too).

When replying please pick the appropriate forum for your reply.


In HTML4, section 14.3.2, one finds:

# * To make a style sheet persistent, set the rel attribute to
#   "stylesheet" and don't set the title attribute.
# * To make a style sheet preferred, set the rel attribute to
#   "stylesheet" and name the style sheet with the title attribute.

This language is ambiguous about how to handle a null string for the title
attribute. Does "set" imply "to a non-null value"?

If an empty title is still a preferred stylesheet, as opposed to a
persistent stylesheet, then this also requires a DOM errata item, since
currently DOM2 has no way of identifying the difference between a missing
title and an empty title from the styleSheets interface (section 1.2):

# title of type DOMString, readonly
#   The advisory title. The title is often specified in the ownerNode. See
#   the title attribute definition for the LINK element in HTML 4.0, and
#   the title pseudo-attribute for the XML style sheet processing
#   instruction.

A clarification from the HTML working group and potentially the DOM
working group would be most appreciated.

Thanks,
-- 
Ian Hickson                                     )\     _. - ._.)       fL
Netscape, Standards Compliance QA              /. `- '  (  `--'
CSS Working Group, Invited Expert              `- , ) -  > ) \
irc.mozilla.org:Hixie _________________________  (.' \) (.' -' __________
Received on Friday, 19 January 2001 08:13:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:07 GMT