From d1e4ef0dcdbc789a445410a148cea747b3eb2e86 Mon Sep 17 00:00:00 2001 From: Parameswaran D Date: Wed, 21 Oct 2015 12:20:57 +0530 Subject: [PATCH] Fixes #250 : scrambling of DOM on parse --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 59b6d41..be5548e 100644 --- a/README.md +++ b/README.md @@ -24,8 +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() +// var documentClone = document.cloneNode(true); // or, you could clone the document to prevent +// var article = new Readability(uri, documentClone).parse(); // the DOM getting scrambled on parse() ``` This `article` object will contain the following properties: