Bug 1417837 - Part 2: Preserve class names in readerized output that we use in aboutReader.css. r=Gijs
MozReview-Commit-ID: 7qV2SRHeeOJ
This commit is contained in:
@@ -42,11 +42,12 @@ var Agent = {
|
||||
*
|
||||
* @param {object} uri URI data for the document.
|
||||
* @param {string} serializedDoc The serialized document.
|
||||
* @param {object} options Options object to pass to Readability.
|
||||
*
|
||||
* @return {object} Article object returned from Readability.
|
||||
*/
|
||||
parseDocument(uri, serializedDoc) {
|
||||
parseDocument(uri, serializedDoc, options) {
|
||||
let doc = new JSDOMParser().parse(serializedDoc);
|
||||
return new Readability(uri, doc).parse();
|
||||
return new Readability(uri, doc, options).parse();
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user