} finally {
// Clear the event handler to avoid affecting the following tests.
}
- });
+ }, "TypeError");
runTest(function() {
iframeDoc.body.appendChild(document.createElement('div'));
runTest(function() {
iframeDoc.appendChild(document.doctype);
console.log(document.doctype);
- }, 'NotFoundError');
+ }, 'TypeError');
// When setting a boundary of the range in a different
// document, the call should succeed and the range should be collapsed.