tag IDs not honored in css

VERIFIED INVALID

Status

()

Core
CSS Parsing and Computation
P3
normal
VERIFIED INVALID
18 years ago
18 years ago

People

(Reporter: Ulrich Drepper, Assigned: Pierre Saslawsky)

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

18 years ago
If a style in a css is for a certain tag with an ID which according to HTML4
should be written like

  #myid { ...the style stuff... }

it's not picked but by the layout engine.  I'll add a test file as an attachment.
(Reporter)

Comment 1

18 years ago
Created attachment 13738 [details]
html w/ included css showing the problem

Comment 2

18 years ago
The ID cannot start with a '#' in the HTML. 

See the HTML specification: http://www.w3.org/TR/html401/types.html#type-id

In your testcase the line:
 <H1 id="#myid">This is an H1 header</H1>
should be
 <H1 id="myid">This is an H1 header</H1>

and then the CSS selector 
 #myid {border-width: 1; border: solid; text-align: center}
will match as expected.

Marking bug INVALID.
Status: NEW → RESOLVED
Last Resolved: 18 years ago
Resolution: --- → INVALID
yep. Note that IE has some serious bugs shown by the test case. ;-)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.