Closed
Bug 270357
Opened 20 years ago
Closed 20 years ago
CSS text-decoration on inner-element within an A tag is not honoured
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 167766
People
(Reporter: djr667, Assigned: bugzilla)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Placing a SPAN style='text-decoration: none;' inside an A element does not remove the default underlining of link text. Reproducible: Always Steps to Reproduce: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <body> <a href="http://www.mozilla.org">Mozilla</a> <p> <!-- Shown in IE without underline, in Firefox with underline --> <a href='http://www.mozilla.org'> <span style='text-decoration: none;'>Mozilla</span> </a> <!-- My reading of the W3C spec (5.4.3 'text-decoration') does not imply that Firefox's implementation is correct. I would expect the second link to have no underline. --> </body> Actual Results: Second link is underlined Expected Results: Second link should not be underlined The workaround is to put the style on the A tag, but this is not so simple when the SPAN HTML is generated by code that does not know its output will be inside an A tag.
Comment 1•20 years ago
|
||
It's not supposed to remove it. IE is doing it wrong. See bug 167766. *** This bug has been marked as a duplicate of 167766 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•