Closed Bug 303961 Opened 19 years ago Closed 19 years ago

Link with malformed URL isn't styled as a link

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 229700

People

(Reporter: martijn.martijn, Assigned: dbaron)

Details

(Keywords: testcase)

Attachments

(1 file)

See upcoming testcase.
The second link is malformed: <a href="http://mikael.winterkvist.com
target="_blank">
It is missing a ".
This causes it for Mozilla to not style it as a link, although it is recognised
as a link (via the context menu and document.links.length).
I can see this also in Mozilla1.7, so no (recent) regression.
Attached file testcase
Assignee: dbaron → parser
Component: Style System (CSS) → HTML: Parser
QA Contact: ian → mrbkap
Assignee: parser → dbaron
Component: HTML: Parser → Style System (CSS)
QA Contact: mrbkap → ian
Summary: Malformed link isn't styled as a link → Link with malformed URL isn't styled as a link
The problem is that nsGenericHTMLElement::GetHrefURIForAnchors provides no
difference in result between not having an HREF attribute and having a malformed
URL.  This propagates to nsStyleUtil::IsHTMLLink.
DUP of bug 229700 ?

*** This bug has been marked as a duplicate of 229700 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: