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)
says that the media attribute is defined elsewhere, and points
into section 14.2.3 (Header style information: the STYLE element)
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)
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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:08:56 UTC