mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-05 13:00:08 +02:00
update node modules
This commit is contained in:
11
node_modules/jsdom/lib/jsdom/living/domparsing/DOMParser-impl.js
generated
vendored
11
node_modules/jsdom/lib/jsdom/living/domparsing/DOMParser-impl.js
generated
vendored
@@ -1,6 +1,5 @@
|
||||
"use strict";
|
||||
const Document = require("../generated/Document");
|
||||
const { applyDocumentFeatures } = require("../../browser/documentfeatures");
|
||||
|
||||
exports.implementation = class DOMParserImpl {
|
||||
parseFromString(string, contentType) {
|
||||
@@ -38,17 +37,13 @@ function createScriptingDisabledDocument(parsingMode, contentType, string) {
|
||||
options: {
|
||||
parsingMode,
|
||||
encoding: "UTF-8",
|
||||
contentType
|
||||
contentType,
|
||||
readyState: "complete",
|
||||
scriptingDisabled: true
|
||||
// TODO: somehow set URL to active document's URL
|
||||
}
|
||||
});
|
||||
|
||||
// "scripting enabled" set to false
|
||||
applyDocumentFeatures(document, {
|
||||
FetchExternalResources: [],
|
||||
SkipExternalResources: false
|
||||
});
|
||||
|
||||
if (string !== undefined) {
|
||||
document._htmlToDom.appendToDocument(string, document);
|
||||
}
|
||||
|
Reference in New Issue
Block a user