unable to prevent underline in span contained in anchor tag

VERIFIED INVALID

Status

()

Core
CSS Parsing and Computation
--
minor
VERIFIED INVALID
16 years ago
16 years ago

People

(Reporter: Dave Bucci, Assigned: dbaron)

Tracking

Trunk
x86
Windows 2000
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

16 years ago
Sample code:

<a href="http://ilovethischurch.com"><span style="text-decoration:none">should
not have an underline</span></a>

Mozilla displays the underline, even though the <span> should override it. This
occurs both with inline styling on the span tag, and with an external
stylesheet, no difference.

The following, however:

<a href="http://ilovethischurch.com" style="text-decoration:none">no underline</a>

does correctly suppress the underline.

Cut-n-pastable sample doc showing both follows:

<html>
<head>
</head>
<body>
Test of
  <a href="http://ilovethischurch.com"><span style="text-decoration:none">should
have no underline</span></a>
  <br><br>
  <a href="http://ilovethischurch.com" style="text-decoration:none">should have
no underline</a>
using styles.
</body>
</html>
No, the 'span' shouldn't override the underline.  Please see
http://devedge.netscape.com/viewsource/2002/css-underlines/ for an explanation.
 Resolving INVALID.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → INVALID
verified
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.