Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
    <title>Minimal</title>
</head>
<body>
<span>Hello!<strong>Goodbye!</strong><strong>Hello <!-- A Comment! --> Again</strong></span>
<p>This is an <em>Important</em> paragraph</p>
  <script>
    "use strict";
    console.clear();
    const node = document.body.childNodes[1];
    console.log(node.localName);
    const it = document.createNodeIterator(node);
    document.body.removeChild(node);
    
    console.log(it.root === node);
    console.log(it.referenceNode === node);
    console.log(it.pointerBeforeReferenceNode === true);
  </script>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers