Closed
Bug 56121
Opened 24 years ago
Closed 24 years ago
<a onClick> types of links don't look like links
Categories
(Core :: Layout, defect, P3)
Core
Layout
Tracking
()
VERIFIED
INVALID
People
(Reporter: burnus, Assigned: clayton)
References
()
Details
Attachments
(1 file)
1.06 KB,
text/html
|
Details |
This is with 2000-10-10-21/Linux (Mozilla nightly).
If a link (<a> only contains a onClick="" and not a href="foo" then it looks
like a normal <span> i.e. as if there where no link. (This includes colour,
underlining and cursor.)
Netscape 4.75/Linux shows the same, but it doesn't (seem) to support onClick.
"12.2 The A element" is not clear how to handle this case. I think it makes
sense to support this if there is onClick (since it acts like a link in this
case). Opera 4.0b4/Linux handles it the very same as Mozilla does presently.
I would either see this fixed or marked as invalid (both after some discussion).
Reporter | ||
Comment 1•24 years ago
|
||
IE 5 and NN 4.7 don't recognize <a onClick as a link. And it isn't, really. The
presence of onClick does not make it a link. It can act like a link with certain
kinds of JavaScript, but in the arbitrary case it would not even act like a link.
Marking this INVALID.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
Reporter | ||
Comment 3•24 years ago
|
||
[Drop in from the mid-air collision:]
Unlike the HTML 4.01 specification the CSS 2 specification states in "5.11.2 The
link pseudo-classes: :link and :visited":
"The document language determines which elements are hyperlink source anchors.
For example, in HTML 4.0, the link pseudo-classes apply to A elements with an
'href' attribute."
Reading this would make it INVALID, since I think that is not that clear that
onClick shouldn't act like href I wrote to www-styles@w3.org for
discussion/verification (subject=":links and HTML" if you search).
Marking VERIFIED. Tobias, if the reply from W3 is that it should look like a
link, just reopen this. Thanks. -d
Status: RESOLVED → VERIFIED
SPAM. HTML Element component deprecated, changing component to Layout. See bug
88132 for details.
Component: HTML Element → Layout
You need to log in
before you can comment on or make changes to this bug.
Description
•