Fixes #250 : scrambling of DOM on parse

pull/254/head
Parameswaran D 9 years ago
parent 8510106638
commit 0b5dd0a6fb

@ -24,6 +24,8 @@ var uri = {
pathBase: location.protocol + "//" + location.host + location.pathname.substr(0, location.pathname.lastIndexOf("/") + 1)
};
var article = new Readability(uri, document).parse();
// var documentClone = document.cloneNode(true); // or, you could use clone of the document to prevent
// var article = new Readability(uri, documentClone).parse(); // the scrambling of DOM on parse()
```
This `article` object will contain the following properties:

Loading…
Cancel
Save