W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2011

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

From: <bugzilla@jessica.w3.org>
Date: Fri, 28 Oct 2011 00:48:31 +0000
To: www-dom@w3.org
Message-ID: <bug-14583-4009@http.www.w3.org/Bugs/Public/>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:08 GMT