[Webkit-unassigned] [Bug 189687] New: Web Inspector: preserve DOM.NodeId if a node is removed and re-added

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 17 20:39:39 PDT 2018


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

            Bug ID: 189687
           Summary: Web Inspector: preserve DOM.NodeId if a node is
                    removed and re-added
           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: drousso at apple.com
                CC: inspector-bugzilla-changes at group.apple.com

If the same DOM node is removed and then re-added, it is assigned a new nodeId, which breaks the highlighting of any previous "Log Element" or `WI.linkifyNode` values.

* STEPS TO REPRODUCE:
1. Open WebInspector to any page with children of <body>
2. Log any child element of <body> using the context menu "Log Element" (check that it shows `$1` next to the logged value in the console)
3. Remove the logged child element from <body> (e.g. press delete when it's selected)
4. Re-add the removed element by running `document.body.appendChild($1)` in the console
5. Highlight over the previously logged element (the entry with $1)

* EXPECTED:
The re-added node should be highlighted on the page

* ACTUAL:
Nothing is highlighted and an error "Could not find node with given id" is shown in inspector2.

-- 
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/20180918/be8cf304/attachment-0001.html>


More information about the webkit-unassigned mailing list