[Webkit-unassigned] [Bug 148733] New: Range.comparePoint shouldn't throw an exception if the range and the node are in the same detached tree

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 2 18:12:08 PDT 2015


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

            Bug ID: 148733
           Summary: Range.comparePoint shouldn't throw an exception if the
                    range and the node are in the same detached tree
    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

Created attachment 260467
  --> https://bugs.webkit.org/attachment.cgi?id=260467&action=review
Test case that pass in Firefox and fail in WebKit

comparePoint currently throws WrongDocumentError if the node passed in the first argument is not in the document.
However, DOM4 spec (http://www.w3.org/TR/dom/#dom-range-comparepoint) allows it as long as the range's boundary point in the same detached tree.

Firefox follows the spec.

-- 
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/20150903/89956828/attachment-0001.html>


More information about the webkit-unassigned mailing list