[Webkit-unassigned] [Bug 57829] New: Web Inspector: Range insertNode function does not update content in the inspector
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Apr 5 05:08:03 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=57829
Summary: Web Inspector: Range insertNode function does not
update content in the inspector
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Keywords: InChromiumBugs
Severity: Normal
Priority: P2
Component: Web Inspector
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: apavlov at chromium.org
CC: timothy at apple.com, rik at webkit.org, keishi at webkit.org,
pmuellr at yahoo.com, joepeck at webkit.org,
pfeldman at chromium.org, yurys at chromium.org,
bweinstein at apple.com, apavlov at chromium.org,
loislo at chromium.org
What steps will reproduce the problem?
At a web page like "http://news.ycombinator.com/item?id=1968304" I modified a <p> element, and added the attribute id='p12345'
i then typed in the following code into the console:
range = document.createRange();
referenceNode = document.getElementById('p12345').firstChild;
range.selectNode(referenceNode);
range.setStart(referenceNode, 89 );
range.setEnd(referenceNode, 89 + 5 );
range.deleteContents();
span = range.startContainer.ownerDocument.createElement('span');
span.innerHTML = 'test';
range.insertNode(span);
after running the above code, the html view updates, but the inspector does not. it truncates after the insertion point.
What is the expected result?
the html in the inspector should properly update.
What happens instead?
after running the above code, the html view updates, but the inspector does not. it truncates after the insertion point.
Upstreaming http://code.google.com/p/chromium/issues/detail?id=65424 with the code snippet fixed.
--
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