Closed Bug 12450 Opened 20 years ago Closed 20 years ago

attr() doesn't work with uppercase attribute names

Categories

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

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: dbaron, Assigned: dbaron)

References

()

Details

(Keywords: css2, Whiteboard: fix in hand)

Attachments

(1 file)

DESCRIPTION:  The attr() function for generated content only accepts attributes
in lower case.  attr(title) works, attr(TITLE) does not.  Since HTML is
case-insensitive for attribute names, this shouldn't happen.  (I didn't test
XML.  I suspect, though, that this happens because (I think) you store HTML
attribute names in lower case.)

STEPS TO REPRODUCE:  Load attached test case.

ACTUAL RESULTS:  First paragraph begins with FIRST, but second paragraph doesn't
begin with SECOND and third doesn't begin with THIRD.

EXPECTED RESULTS:  First para starts with FIRST, second with SECOND, and third
with THIRD.
.
DOES NOT WORK CORRECTLY ON:
 * Linux, viewer, 1999-08-24-08-M10.
OS: Linux → All
Hardware: PC → All
ALSO DOES NOT WORK CORRECTLY ON:
 * Windows apprunner 1999-08-24-09-M10.

Marking All/All.
Moving non-beta 1 items to M15
Summary: attr() doesn't work with uppercase attribute names → {css2} attr() doesn't work with uppercase attribute names
Reassigning peterl's bugs to myself.
Accepting peterl's bugs that have a Target Milestone
Pushing my M15 bugs to M16
Keywords: css2
Migrating from {css2} to css2 keyword. The {css1}, {css2}, {css3} and {css-moz}
radars should now be considered deprecated in favour of keywords.
I am *really* sorry about the spam...
Summary: {css2} attr() doesn't work with uppercase attribute names → attr() doesn't work with uppercase attribute names
I have a fix for this.  Stealing bug...
Assignee: pierre → dbaron
Status: ASSIGNED → NEW
Accepting bug.  (Fix is awaiting review.)
Status: NEW → ASSIGNED
Whiteboard: fix in hand
Fix checked in 2000-04-26 17:12 PDT.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
With the following builds:
Win: 7_18_20
Mac: 7_19_12
Linux: 7_20_09
Using the testcase provided, verifying bug fixed.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.