1
0
mirror of https://github.com/S2-/minifyfromhtml.git synced 2025-08-03 20:30:04 +02:00

update modules

This commit is contained in:
s2
2020-07-20 16:16:07 +02:00
parent 783511ce12
commit 2b23424b86
785 changed files with 91905 additions and 56057 deletions

View File

@@ -461,7 +461,7 @@ function domainToASCII(domain, beStrict = false) {
useSTD3ASCIIRules: beStrict,
verifyDNSLength: beStrict
});
if (result === null) {
if (result === null || result === "") {
return failure;
}
return result;
@@ -1105,7 +1105,7 @@ URLStateMachine.prototype["parse cannot-be-a-base-URL path"] = function parseCan
}
if (!isNaN(c)) {
this.url.path[0] = this.url.path[0] + percentEncodeChar(c, isC0ControlPercentEncode);
this.url.path[0] += percentEncodeChar(c, isC0ControlPercentEncode);
}
}
@@ -1150,10 +1150,7 @@ URLStateMachine.prototype["parse query"] = function parseQuery(c, cStr) {
};
URLStateMachine.prototype["parse fragment"] = function parseFragment(c) {
if (isNaN(c)) { // do nothing
} else if (c === 0x0) {
this.parseError = true;
} else {
if (!isNaN(c)) {
// TODO: If c is not a URL code point and not "%", parse error.
if (c === 37 &&
(!infra.isASCIIHex(this.input[this.pointer + 1]) ||