mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-03 20:30:04 +02:00
update modules
This commit is contained in:
9
node_modules/whatwg-url/lib/url-state-machine.js
generated
vendored
9
node_modules/whatwg-url/lib/url-state-machine.js
generated
vendored
@@ -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]) ||
|
||||
|
Reference in New Issue
Block a user