Closed Bug 2328 Opened 26 years ago Closed 26 years ago

media attribute values are parsed incorrectly

Categories

(Core :: CSS Parsing and Computation, defect, P2)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: Antti.Nayha, Assigned: peterl-retired)

References

()

Details

According to rule #2 at
<URI:http://www.w3.org/TR/REC-html40/types.html#type-media-descriptors>,
media="screen anything" should be truncated to media="screen".

Jan 13 nightly build doesn't do this - it refuses to fetch style sheets
linked with:
<LINK rel=stylesheet type="text/css" href="my.css" media="screen anything">
*** Bug 2329 has been marked as a duplicate of this bug. ***
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Still an outstanding issue here. The CSS spec says media types are case
insensitive, the HTML spec says case sensitive. So now were case-sensitive.
Status: RESOLVED → REOPENED
QA Contact: 4054
Whiteboard: Fixed for LINK, not for STYLE.
This has been solved for the "link" element (and, I guess, the http link
header, although I cannot test that - see bug #1959), but it is still invalid
for the "style" element.

This is silly, since they should be using the same code.

See uri quoted above for a throrough test page. It uses the same medias as the
link element test page, so...
Status: REOPENED → RESOLVED
Closed: 26 years ago26 years ago
The apperent problem is due to errors in the test page. Gecko is behaving
correctly.

Specifically:
Test 50d - media is set to "braille screen" (which is considered to be
"braille") where the test states "braille, all with print"
Test 50i - media is set to "braille, all with print" (which is accepted as
"all") where the test states "aural,not screen"
Test 50j - the class attribute is set to "exoticmediaX3" (from test 50i) where
it should be "exoticmediaX4"
Status: RESOLVED → VERIFIED
Whiteboard: Fixed for LINK, not for STYLE.
Arg! Terribly sorry. The page has been fixed.
Arg! Terribly sorry. The page has been fixed.
You need to log in before you can comment on or make changes to this bug.