W3C home > Mailing lists > Public > www-html-editor@w3.org > January to March 2008

inconsistent default of media attribute in HTML 4.01

From: Kalle Olavi Niemitalo <kon@iki.fi>
Date: Sat, 12 Jan 2008 08:45:59 +0200
To: www-html-editor@w3.org
Message-ID: <87zlvbcziw.fsf@Astalo.kon.iki.fi>
HTML 4.01 appears inconsistent on what the lack of a media
attribute in a <link rel="stylesheet" ...> element means.
<http://www.w3.org/MarkUp/html4-updates/errata> doesn't
mention this yet.

Section 12.3 (Document relationships: the LINK element)
<http://www.w3.org/TR/1999/REC-html401-19991224/struct/links.html#edef-LINK>
says that the media attribute is defined elsewhere, and points
into section 14.2.3 (Header style information: the STYLE element)
<http://www.w3.org/TR/1999/REC-html401-19991224/present/styles.html#adef-media>
which reads:

#  media = media-descriptors [CI]
#          This attribute specifies the intended destination
#          medium for style information. It may be a single media
#          descriptor or a comma-separated list. The default
#          value for this attribute is "screen".

However, in section 14.4.1 (Media-dependent cascades)
<http://www.w3.org/TR/1999/REC-html401-19991224/present/styles.html#h-14.4.1>
the example includes this stylesheet reference:

# <LINK rel="stylesheet" href="techreport.css" type="text/css">

And the text says about it:

# The "techreport" stylesheet applies to all media.

If the default value of the media attribute is "screen", then the
stylesheet should apply to screen media only.

Received on Monday, 14 January 2008 03:13:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:17:57 GMT