W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2014

[Bug 24638] New: [Shadow]: elementFromPoint should return the host when you hit a Text node

From: <bugzilla@jessica.w3.org>
Date: Wed, 12 Feb 2014 23:33:23 +0000
To: public-webapps@w3.org
Message-ID: <bug-24638-2927@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=24638

            Bug ID: 24638
           Summary: [Shadow]: elementFromPoint should return the host when
                    you hit a Text node
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Component Model
          Assignee: dglazkov@chromium.org
          Reporter: esprehn@gmail.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-webapps@w3.org
            Blocks: 14978

Seeing as we don't want to throw an exception when you put a Text node as a
child of a ShadowRoot, we should at the very least return the host element so
that hit testing in a ShadowRoot that has direct text children does something
sensible.

We probably need to make it return the host if you hit a border/background
color too?

(this also makes sense since you can querySelector(":host"), so the host really
is in the same scope as the ShadowRoot.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Wednesday, 12 February 2014 23:33:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:21 UTC