[Bug 14583] New: isPointInRange() should not throw WrongDocumentError

http://www.w3.org/Bugs/Public/show_bug.cgi?id=14583

           Summary: isPointInRange() should not throw WrongDocumentError
           Product: WebAppsWG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DOM Core
        AssignedTo: annevk@opera.com
        ReportedBy: ayg@aryeh.name
         QAContact: member-webapi-cvs@w3.org
                CC: mike@w3.org, www-dom@w3.org


This alerts "No exception" in both Gecko and WebKit:

data:text/html,<!doctype html>
<script>
try {
  document.createRange().isPointInRange(document.createElement("a"), 0);
  throw "No exception";
} catch(e) {
  alert(e)
}
</script>

alerts "No exception" for me in both Gecko and WebKit.  I'll write tests for
this, and update the spec to match browser results.  Assuming I don't forget.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Friday, 28 October 2011 00:48:37 UTC