[Webkit-unassigned] [Bug 148773] New: Range.deleteContents cannot delete DocType

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 3 19:14:21 PDT 2015


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

            Bug ID: 148773
           Summary: Range.deleteContents cannot delete DocType
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: rniwa at webkit.org

<!DOCTYPE html>
<html>
<body>
<script>

var range = document.createRange();
range.setStart(document, 0);
range.setEnd(document, 1);
range.deleteContents();

</script>
</body>
</html>

throws an exception because we attempt to insert a DOCTYPE into a document fragment inside Range::processContents but it shouldn't.

This bug was found by the newly added test: LayoutTests/http/tests/w3c/dom/ranges/Range-deleteContents.html

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150904/0f3210ac/attachment.html>


More information about the webkit-unassigned mailing list