[Webkit-unassigned] [Bug 182069] New: Web Inspector: Replace isAncestor and isDescendant with native DOM contains method

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 24 15:37:04 PST 2018


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

            Bug ID: 182069
           Summary: Web Inspector: Replace isAncestor and isDescendant
                    with native DOM contains method
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: nvasilyev at apple.com
                CC: inspector-bugzilla-changes at group.apple.com

Instead of traversing the DOM manually we should use Node.prototype.contains.

Utilities.js:
Object.defineProperty(Node.prototype, "isAncestor", ...
Object.defineProperty(Node.prototype, "isDescendant", ...
Object.defineProperty(Node.prototype, "isSelfOrAncestor", ...
Object.defineProperty(Node.prototype, "isSelfOrDescendant", ...

https://developer.mozilla.org/en-US/docs/Web/API/Node/contains

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180124/4ca87ba3/attachment-0001.html>


More information about the webkit-unassigned mailing list