[Webkit-unassigned] [Bug 67199] New: In specific cases, document.elementFromPoint returns wrong element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 30 07:14:36 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=67199

           Summary: In specific cases, document.elementFromPoint returns
                    wrong element
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: Enzo90910 at gmail.com


Created an attachment (id=105622)
 --> (https://bugs.webkit.org/attachment.cgi?id=105622&action=review)
HTML source of the page which doesn't add/remove a style element.

<http://test.elvanor.net/js/webkit/element_from_point_works.html> (A)
<http://test.elvanor.net/js/webkit/element_from_point.html> (B)

In the above pages, I have a div and a hidden span inside. There's an inline script on both pages which logs what element was clicked using document.elementFromPoint. The script on the second page  (B) also creates a style element, adds it to <head> and removes it instantly. 


I believe the expected logged element (on both pages) when clicking the div is <div>, since the span is hidden.
Expected:
(A): Div
(B): Div

Here's what is logged when clicking on each page:

Chromium 13.0.782.215 (Linux) :
(A): Div
(B): Span

Safari  5.1 (7534.48.3) (Mac OS X 10.7) :
(A): Div
(B): Span

Safari nightly 5.1 (7534.48.3, r94061) (Mac OS X 10.7) :
(A): Span
(B): Span

Google Chrome 13.0.782.215 (Mac):
(A): Div
(B): Span

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list