/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
/** * A worker dedicated to handle parsing documents for reader view.
*/
var Agent = { /** * Parses structured article data from a document. * * @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, options) {
let doc = new JSDOMParser().parse(serializedDoc, uri.spec); returnnew Readability(doc, options).parse();
},
};
¤ Dauer der Verarbeitung: 0.25 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.