Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
  
  <!-- 
    - comment this out, then page works
   -->
  <script src="http://www.polymer-project.org/platform.js"></script>
  
  <script>
    function run() {
      var div = document.getElementById('x')
      // this function give error if polymer js is loaded
      //    Error: Failed to execute 'evaluate' on 'Document':
      //    The context node provided is null.
      //    
      document.evaluate('span', div)
      
      console.log('works')
    }
  </script>
</head>
<body onload="run()">
  <div id='x'><span>hello</span></div>
</body>
</html>
Output 300px

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

Dismiss x
public
Bin info
dhublerpro
0viewers