You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit eaddc87
Browse filesBrowse the repository at this point in the historyBrowse files
docs(html): say what normalizeUrlAttributes changes for a reader
`getAttribute` hands back the content attribute as written, so trimming one
is a value a script comparing those bytes reads differently — which is the
reason the switch exists. The description read as though the trim were the
attribute's own doing, which is true of resolving the URL and of nothing
else.
Co-authored-by: aryanraj45 <[email protected]>
* Drop the ASCII whitespace around a URL value (`href`, `src`, `action`, `poster`, …), which every URL parser strips before resolving it. On by default: the request goes to the same place either way, and `getAttribute` reads the trimmed string.
2609
+
* Drop the ASCII whitespace around a URL value (`href`, `src`, `action`, `poster`, …), which resolving the URL skips over, so the request goes to the same place either way. On by default: `getAttribute` hands back the attribute as written, so a script comparing those bytes is the one this is turned off for.
* @property {boolean=} normalizeEnumeratedAttributes fold an enumerated value to the keyword it names
8921
8921
* @property {boolean=} normalizeListAttributes normalize a space-, comma- or descriptor-separated list value (`class`, `rel`, `srcset`, `sizes`, the viewport `content`)
8922
8922
* @property {boolean=} normalizeNumericAttributes write an integer attribute the one way its rules read it
8923
-
* @property {boolean=} normalizeUrlAttributes drop the whitespace around a URL value (`href`, `src`, `action`, …), which every URL parser strips
8923
+
* @property {boolean=} normalizeUrlAttributes drop the whitespace around a URL value (`href`, `src`, `action`, …), which resolving the URL skips over
8924
8924
* @property {boolean=} removeOptionalTags leave out an optional tag other than the `<html>` / `<head>` / `<body>` shell, which is `removeImpliedTags`
Copy file name to clipboardExpand all lines: schemas/WebpackOptions.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3980,7 +3980,7 @@
3980
3980
"added": "5.110.0"
3981
3981
},
3982
3982
"normalizeUrlAttributes": {
3983
-
"description": "Drop the ASCII whitespace around a URL value (`href`, `src`, `action`, `poster`, …), which every URL parser strips before resolving it. On by default: the request goes to the same place either way, and `getAttribute` reads the trimmed string.",
3983
+
"description": "Drop the ASCII whitespace around a URL value (`href`, `src`, `action`, `poster`, …), which resolving the URL skips over, so the request goes to the same place either way. On by default: `getAttribute` hands back the attribute as written, so a script comparing those bytes is the one this is turned off for.",
"description": "Drop the ASCII whitespace around a URL value (\`href\`, \`src\`, \`action\`, \`poster\`, …), which every URL parser strips before resolving it. On by default: the request goes to the same place either way, and \`getAttribute\` reads the trimmed string.",
11578
+
"description": "Drop the ASCII whitespace around a URL value (\`href\`, \`src\`, \`action\`, \`poster\`, …), which resolving the URL skips over, so the request goes to the same place either way. On by default: \`getAttribute\` hands back the attribute as written, so a script comparing those bytes is the one this is turned off for.",
"description": "Drop the ASCII whitespace around a URL value (\`href\`, \`src\`, \`action\`, \`poster\`, …), which every URL parser strips before resolving it. On by default: the request goes to the same place either way, and \`getAttribute\` reads the trimmed string.",
11584
+
"description": "Drop the ASCII whitespace around a URL value (\`href\`, \`src\`, \`action\`, \`poster\`, …), which resolving the URL skips over, so the request goes to the same place either way. On by default: \`getAttribute\` hands back the attribute as written, so a script comparing those bytes is the one this is turned off for.",
"description": "Drop the ASCII whitespace around a URL value (\`href\`, \`src\`, \`action\`, \`poster\`, …), which every URL parser strips before resolving it. On by default: the request goes to the same place either way, and \`getAttribute\` reads the trimmed string.",
12217
+
"description": "Drop the ASCII whitespace around a URL value (\`href\`, \`src\`, \`action\`, \`poster\`, …), which resolving the URL skips over, so the request goes to the same place either way. On by default: \`getAttribute\` hands back the attribute as written, so a script comparing those bytes is the one this is turned off for.",
"description": "Drop the ASCII whitespace around a URL value (\`href\`, \`src\`, \`action\`, \`poster\`, …), which every URL parser strips before resolving it. On by default: the request goes to the same place either way, and \`getAttribute\` reads the trimmed string.",
12223
+
"description": "Drop the ASCII whitespace around a URL value (\`href\`, \`src\`, \`action\`, \`poster\`, …), which resolving the URL skips over, so the request goes to the same place either way. On by default: \`getAttribute\` hands back the attribute as written, so a script comparing those bytes is the one this is turned off for.",
* Drop the ASCII whitespace around a URL value (`href`, `src`, `action`, `poster`, …), which every URL parser strips before resolving it. On by default: the request goes to the same place either way, and `getAttribute` reads the trimmed string.
20416
+
* Drop the ASCII whitespace around a URL value (`href`, `src`, `action`, `poster`, …), which resolving the URL skips over, so the request goes to the same place either way. On by default: `getAttribute` hands back the attribute as written, so a script comparing those bytes is the one this is turned off for.
0 commit comments