Closed
Bug 420056
Opened 16 years ago
Closed 16 years ago
background missing on just the first span in an A NAME
Categories
(Core :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: asmozilla2, Unassigned)
Details
Attachments
(1 file)
343 bytes,
text/html
|
Details |
See the test case. The background is missing just on the first of several identical SPANs. In case it matters this is IceWeasel 2.0.0.12, I know this is not the stock browser, but I assume it doesn't change the rendering engine.
Updated•16 years ago
|
Product: Firefox → Core
QA Contact: general → general
Version: 2.0 Branch → Trunk
Comment 1•16 years ago
|
||
Nested links are illegal: http://www.w3.org/TR/REC-html40/struct/links.html#h-12.2.2 The HTML parser is closing the first anchor element before the first nested one, closing the first span at the same time. You can check the parser behavior on Hixie's live dom viewer: http://software.hixie.ch/utilities/js/live-dom-viewer/?%3CHTML%3E%0A%3CHEAD%3E%0A%3CTITLE%3EButton%3C%2FTITLE%3E%0A%3CSTYLE%20type%3D%22text%2Fcss%22%3E%0A.button%20{%0A%20%20border%3A%205px%20outset%20%23e1f5ff%3B%0A%20%20background-color%3A%20%23cbeaff%3B%0A}%0A%3C%2FSTYLE%3E%0A%3C%2FHEAD%3E%0A%3CBODY%3E%0A%3CP%3E%3CA%20NAME%3D%22name%22%3E%0A%3CSPAN%20class%3D%22button%22%3E%3CA%20HREF%3D%22%22%3E100%3C%2FA%3E%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22button%22%3E%3CA%20HREF%3D%22%22%3E1000%3C%2FA%3E%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22button%22%3E%3CA%20HREF%3D%22%22%3E10000%3C%2FA%3E%3C%2FSPAN%3E%0A%3C%2FA%3E%3C%2FP%3E%0A%3C%2FBODY%3E%0A%3C%2FHTML%3E%0A
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•