Closed Bug 35315 Opened 24 years ago Closed 24 years ago

<a> tag around <img> causes image to stop responding to CSS events

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P3)

x86
All
defect

Tracking

()

VERIFIED DUPLICATE of bug 5693

People

(Reporter: mmastrac, Assigned: joki)

References

()

Details

From Bugzilla Helper:
User-Agent: Mozilla/4.61 [en] (X11; U; Linux 2.2.13 i686)
BuildID:    2000040909

Putting a link <a> tag around an image stops it from responding to hover
styles.  Are events for images being blocked by the <a> tag?

Reproducible: Always
Steps to Reproduce:
1.  View testcase


Actual Results:  The image should be hilited when you mouseover it in the first
case, but only the link text is hilited.	

NOTE: Ignore the third testcase - it has nothing to do with this bug.

Expected Results:  Both images should be hilited as the mouse passes over them. 
In the first case, the image and the link should be hilited when the mouse is
over the first image.
Okay, looks like this is a dup of a long-standing bug (#5693).  The bug is also

described in #33736, but I think the former has a better description of this issues.



*** This bug has been marked as a duplicate of 5693 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
verified duplicate
Status: RESOLVED → VERIFIED
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.