[Webkit-unassigned] [Bug 140999] New: Clearing text node does not remove its associated markers

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 28 08:12:20 PST 2015


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

            Bug ID: 140999
           Summary: Clearing text node does not remove its associated
                    markers
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: g.czajkowski at samsung.com

Clearing text on HTMLTextAreaElement and HTMLInputElement does not remove its previous markers. 

For example, running the following script two times will cause that Document stores two markers (one for current node and one for previous which was remved!).

<script>
    textArea.value = "";
    textArea.focus();
    document.execCommand("InsertText", false, "welllcome ");
</script>

document().markers().showMarkers()

2 nodes have markers:
0x7f31b5122dc0 1:[0:9](0)
0x7f31b5122d70 1:[0:9](0)

This happens when text to insert is empty and setInnerTextValue("") calls removeChildren() on the previous node.

It does not affect user as the absolete node has been removed and its markers not drawn.
However does it make sense to store it until document's detach?

-- 
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/20150128/4bde746d/attachment-0002.html>


More information about the webkit-unassigned mailing list