webapps

changeset 948:3f51cbda4cf6

Update Node-replaceChild.html for bug 17318.
author Ms2ger <ms2ger@gmail.com>
date Wed, 28 Nov 2012 15:59:06 +0100
parents dc4e7e719106
children 8297f95f9f20
files DOMCore/tests/submissions/Ms2ger/Node-replaceChild.html
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/DOMCore/tests/submissions/Ms2ger/Node-replaceChild.html	Mon Nov 26 14:31:27 2012 +0100
     1.2 +++ b/DOMCore/tests/submissions/Ms2ger/Node-replaceChild.html	Wed Nov 28 15:59:06 2012 +0100
     1.3 @@ -47,7 +47,6 @@
     1.4    });
     1.5  }, "If child's parent is not the context node, a NotFoundError exception should be thrown")
     1.6  test(function() {
     1.7 -  // TODO: https://www.w3.org/Bugs/Public/show_bug.cgi?id=17318
     1.8    var nodes = [
     1.9      document.implementation.createDocumentType("html", "", ""),
    1.10      document.createTextNode("text"),
    1.11 @@ -58,7 +57,7 @@
    1.12    var a = document.createElement("div");
    1.13    var b = document.createElement("div");
    1.14    nodes.forEach(function(node) {
    1.15 -    assert_throws("NotFoundError", function() {
    1.16 +    assert_throws("HierarchyRequestError", function() {
    1.17        node.replaceChild(a, b);
    1.18      });
    1.19    });
Set up and maintained by W3C Systems Team, please report bugs to sysreq@w3.org.

W3C would like to thank Microsoft who donated the server that allows us to run this service.