W3C home > Mailing lists > Public > www-html-editor@w3.org > October to December 2007

Error in HTML 4.01: attribute media ?

From: javier ader <javierader@gmail.com>
Date: Fri, 05 Oct 2007 22:49:07 -0300
Message-ID: <4706E993.2080704@gmail.com>
To: www-html-editor@w3.org
CC: Cuenta hotmail <javierader@hotmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hi, before all I apgologize for my English (It's no t may native
language).
Maybe there is a error or inconsistence around the default value of
attribure media:
- -section 14.2.3, in the context of element STYLE say:
>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".*

- -but section 14.4.1, (in this case as an attribute of element LINK), say:
>In the following example, we define a cascade where the "corporate"
style sheet is provided in several versions:
>one suited to printing, one for screen use and one for speech-based
browsers (useful, say, when reading email in
>the car). *The "techreport" stylesheet applies to all media.* The
color rule defined by the STYLE element is used for
>print and screen but not for aural rendering.
>
><LINK rel="stylesheet" media="aural" href="corporate-aural.css"
type="text/css">
><LINK rel="stylesheet" media="screen" href="corporate-screen.css"
type="text/css">
><LINK rel="stylesheet" media="print" href="corporate-print.css"
type="text/css">
>*<LINK rel="stylesheet" href="techreport.css" type="text/css">*
><STYLE media="screen, print" type="text/css">
>    p.special { color: rgb(230, 100, 180) }
></STYLE>

The sentence " The "techreport" stylesheet applies to all media."
together with the absence of "media" in "<LINK rel="stylesheet"
href="techreport.css" type="text/css"> " to seem be in contradiction
with "The default value for this attribute is "screen".". Or
techreport.css applies only to screen media (for section 14.2.3) or it
applies all media (in this case media' defualt value
should be "all").
What's the default value of attribute media?
- -"screen" and then example in section 14.4.1 is wrong
or
- -"all" and then section 14.2.3
or
- - the attribute media have different semantics in context STYLE than
context LINK (but I think it is unlikey).

Yours faithfully, Ader Javier.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFHBumSZmMTTMSk+9kRAqyYAJ9tCTKdnWlkTEV6yO3itHKiWsJGlgCghT31
AmXijkU/5ea5hYhFWkjNQEg=
=a7Tl
-----END PGP SIGNATURE-----
Received on Saturday, 6 October 2007 06:07:06 GMT

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