Closed Bug 279362 Opened 20 years ago Closed 20 years ago

Styles applied to anchors also apply to following elements, even if anchor is closed.

Categories

(Core :: DOM: HTML Parser, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 225323

People

(Reporter: shd, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a6) Gecko/20050111 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a6) Gecko/20050111 As the subject says, when an anchor has a style applied to it (notably styles applied to a:hover) and is not closed with an explicit /a tag, but with a single / preceding the closing bracket, the style also applies to the following elements. (See attachment). This should not happen. It can get really annoying when the color set for the hover style is identical to the background color. Things start "disappearing". It is also mentioned in bug #149704, but that seems to be a dormant bug originally meant for tags with truly missing closing tags. Reproducible: Always Steps to Reproduce: 1. Check out the attachment 2 [review]. Move your mouse cursor over the top paragraph 3. Move your mouse cursor over the bottom paragraph Actual Results: Bottom paragraph turns red. Expected Results: Nothing.
Attached file Test case
<a /> does not close the element in HTML. *** This bug has been marked as a duplicate of 225323 ***
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.

Attachment

General

Creator:
Created:
Updated:
Size: