This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 14583 - isPointInRange() should not throw WrongDocumentError
Summary: isPointInRange() should not throw WrongDocumentError
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: DOM (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Aryeh Gregor
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-28 00:48 UTC by Aryeh Gregor
Modified: 2011-10-28 18:26 UTC (History)
2 users (show)

See Also:


Attachments

Description Aryeh Gregor 2011-10-28 00:48:31 UTC
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.