ftrain / savepublishing

CoffeeScript code to quickly extract and display all the tweetable statements from a live web page.
http://savepublishing.com
231 stars 25 forks source link

http://www.bloomberg.com/graphics/2015-paul-ford-what-is-code/ #133

Open rogeruiz opened 9 years ago

rogeruiz commented 9 years ago

On line 671 of the compiled JS, this is the line that fails. I haven't looked further into this. But this bookmarklet looks really promising for some things I'd like to experiment with.

if ( Document.prototype.body && Document.prototype.run ) { /* code */ }
                        ^
[Error] Deprecated attempt to access property 'body' on a non-Document object.
    global code (savepublishing.js, line 671)

Steps to reproduce

  1. Install Bookmarklet by dragging to bookmark bar from this url http://www.savepublishing.com
  2. Open http://www.bloomberg.com/graphics/2015-paul-ford-what-is-code/
  3. Click SavePublishing bookmarklet
  4. Open Debugging tools.

Browser Version screenshot 2015-06-12 08 14 33