html-minifier-next 4.18.0 → 4.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -2
- package/README.md +81 -22
- package/cli.js +2 -2
- package/dist/htmlminifier.cjs +186 -85
- package/dist/htmlminifier.esm.bundle.js +400 -120
- package/dist/types/htmlminifier.d.ts +20 -0
- package/dist/types/htmlminifier.d.ts.map +1 -1
- package/dist/types/htmlparser.d.ts.map +1 -1
- package/dist/types/lib/options.d.ts +1 -2
- package/dist/types/lib/options.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/htmlminifier.js +68 -7
- package/src/htmlparser.js +111 -63
- package/src/lib/options.js +8 -14
|
@@ -2655,16 +2655,16 @@ const singleAttrValues = [
|
|
|
2655
2655
|
// https://www.w3.org/TR/1999/REC-xml-names-19990114/#NT-QName
|
|
2656
2656
|
const qnameCapture = (function () {
|
|
2657
2657
|
// https://www.npmjs.com/package/ncname
|
|
2658
|
-
const combiningChar = '
|
|
2659
|
-
const digit = '0-9
|
|
2660
|
-
const extender = '
|
|
2661
|
-
const letter = 'A-Za-z
|
|
2658
|
+
const combiningChar = '\u0300-\u0345\u0360\u0361\u0483-\u0486\u0591-\u05A1\u05A3-\u05B9\u05BB-\u05BD\u05BF\u05C1\u05C2\u05C4\u064B-\u0652\u0670\u06D6-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0901-\u0903\u093C\u093E-\u094D\u0951-\u0954\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A02\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A70\u0A71\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0B01-\u0B03\u0B3C\u0B3E-\u0B43\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B82\u0B83\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C01-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C82\u0C83\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0D02\u0D03\u0D3E-\u0D43\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86-\u0F8B\u0F90-\u0F95\u0F97\u0F99-\u0FAD\u0FB1-\u0FB7\u0FB9\u20D0-\u20DC\u20E1\u302A-\u302F\u3099\u309A';
|
|
2659
|
+
const digit = '0-9\u0660-\u0669\u06F0-\u06F9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE7-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29';
|
|
2660
|
+
const extender = '\xB7\u02D0\u02D1\u0387\u0640\u0E46\u0EC6\u3005\u3031-\u3035\u309D\u309E\u30FC-\u30FE';
|
|
2661
|
+
const letter = 'A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u0131\u0134-\u013E\u0141-\u0148\u014A-\u017E\u0180-\u01C3\u01CD-\u01F0\u01F4\u01F5\u01FA-\u0217\u0250-\u02A8\u02BB-\u02C1\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03CE\u03D0-\u03D6\u03DA\u03DC\u03DE\u03E0\u03E2-\u03F3\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E-\u0481\u0490-\u04C4\u04C7\u04C8\u04CB\u04CC\u04D0-\u04EB\u04EE-\u04F5\u04F8\u04F9\u0531-\u0556\u0559\u0561-\u0586\u05D0-\u05EA\u05F0-\u05F2\u0621-\u063A\u0641-\u064A\u0671-\u06B7\u06BA-\u06BE\u06C0-\u06CE\u06D0-\u06D3\u06D5\u06E5\u06E6\u0905-\u0939\u093D\u0958-\u0961\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8B\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AE0\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B36-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB5\u0BB7-\u0BB9\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CDE\u0CE0\u0CE1\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D60\u0D61\u0E01-\u0E2E\u0E30\u0E32\u0E33\u0E40-\u0E45\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD\u0EAE\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0F40-\u0F47\u0F49-\u0F69\u10A0-\u10C5\u10D0-\u10F6\u1100\u1102\u1103\u1105-\u1107\u1109\u110B\u110C\u110E-\u1112\u113C\u113E\u1140\u114C\u114E\u1150\u1154\u1155\u1159\u115F-\u1161\u1163\u1165\u1167\u1169\u116D\u116E\u1172\u1173\u1175\u119E\u11A8\u11AB\u11AE\u11AF\u11B7\u11B8\u11BA\u11BC-\u11C2\u11EB\u11F0\u11F9\u1E00-\u1E9B\u1EA0-\u1EF9\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2126\u212A\u212B\u212E\u2180-\u2182\u3007\u3021-\u3029\u3041-\u3094\u30A1-\u30FA\u3105-\u312C\u4E00-\u9FA5\uAC00-\uD7A3';
|
|
2662
2662
|
const ncname = '[' + letter + '_][' + letter + digit + '\\.\\-_' + combiningChar + extender + ']*';
|
|
2663
2663
|
return '((?:' + ncname + '\\:)?' + ncname + ')';
|
|
2664
2664
|
})();
|
|
2665
2665
|
const startTagOpen = new RegExp('^<' + qnameCapture);
|
|
2666
2666
|
const startTagClose = /^\s*(\/?)>/;
|
|
2667
|
-
const endTag = new RegExp('
|
|
2667
|
+
const endTag = new RegExp('^</' + qnameCapture + '[^>]*>');
|
|
2668
2668
|
const doctype = /^<!DOCTYPE\s?[^>]+>/i;
|
|
2669
2669
|
|
|
2670
2670
|
let IS_REGEX_CAPTURING_BROKEN = false;
|
|
@@ -2763,9 +2763,6 @@ class HTMLParser {
|
|
|
2763
2763
|
let pos = 0;
|
|
2764
2764
|
let lastPos;
|
|
2765
2765
|
|
|
2766
|
-
// Helper to get remaining HTML from current position
|
|
2767
|
-
const remaining = () => fullHtml.slice(pos);
|
|
2768
|
-
|
|
2769
2766
|
// Helper to advance position
|
|
2770
2767
|
const advance = (n) => { pos += n; };
|
|
2771
2768
|
|
|
@@ -2784,22 +2781,32 @@ class HTMLParser {
|
|
|
2784
2781
|
return { line, column };
|
|
2785
2782
|
};
|
|
2786
2783
|
|
|
2784
|
+
// Helper to safely extract substring when needed for regex operations
|
|
2785
|
+
const sliceFromPos = (startPos, len) => {
|
|
2786
|
+
const endPos = fullLength;
|
|
2787
|
+
return fullHtml.slice(startPos, endPos);
|
|
2788
|
+
};
|
|
2789
|
+
|
|
2787
2790
|
while (pos < fullLength) {
|
|
2788
2791
|
lastPos = pos;
|
|
2789
|
-
|
|
2792
|
+
|
|
2790
2793
|
// Make sure we’re not in a `script` or `style` element
|
|
2791
2794
|
if (!lastTag || !special.has(lastTag)) {
|
|
2792
|
-
|
|
2793
|
-
|
|
2795
|
+
const textEnd = fullHtml.indexOf('<', pos);
|
|
2796
|
+
|
|
2797
|
+
if (textEnd === pos) {
|
|
2798
|
+
// We found a tag at current position
|
|
2799
|
+
const remaining = sliceFromPos(pos);
|
|
2800
|
+
|
|
2794
2801
|
// Comment
|
|
2795
|
-
if (/^<!--/.test(
|
|
2796
|
-
const commentEnd =
|
|
2802
|
+
if (/^<!--/.test(remaining)) {
|
|
2803
|
+
const commentEnd = fullHtml.indexOf('-->', pos + 4);
|
|
2797
2804
|
|
|
2798
2805
|
if (commentEnd >= 0) {
|
|
2799
2806
|
if (handler.comment) {
|
|
2800
|
-
await handler.comment(
|
|
2807
|
+
await handler.comment(fullHtml.substring(pos + 4, commentEnd));
|
|
2801
2808
|
}
|
|
2802
|
-
advance(commentEnd + 3);
|
|
2809
|
+
advance(commentEnd + 3 - pos);
|
|
2803
2810
|
prevTag = '';
|
|
2804
2811
|
prevAttrs = [];
|
|
2805
2812
|
continue;
|
|
@@ -2807,14 +2814,14 @@ class HTMLParser {
|
|
|
2807
2814
|
}
|
|
2808
2815
|
|
|
2809
2816
|
// https://web.archive.org/web/20241201212701/https://en.wikipedia.org/wiki/Conditional_comment#Downlevel-revealed_conditional_comment
|
|
2810
|
-
if (/^<!\[/.test(
|
|
2811
|
-
const conditionalEnd =
|
|
2817
|
+
if (/^<!\[/.test(remaining)) {
|
|
2818
|
+
const conditionalEnd = fullHtml.indexOf(']>', pos + 3);
|
|
2812
2819
|
|
|
2813
2820
|
if (conditionalEnd >= 0) {
|
|
2814
2821
|
if (handler.comment) {
|
|
2815
|
-
await handler.comment(
|
|
2822
|
+
await handler.comment(fullHtml.substring(pos + 2, conditionalEnd + 1), true /* Non-standard */);
|
|
2816
2823
|
}
|
|
2817
|
-
advance(conditionalEnd + 2);
|
|
2824
|
+
advance(conditionalEnd + 2 - pos);
|
|
2818
2825
|
prevTag = '';
|
|
2819
2826
|
prevAttrs = [];
|
|
2820
2827
|
continue;
|
|
@@ -2822,8 +2829,8 @@ class HTMLParser {
|
|
|
2822
2829
|
}
|
|
2823
2830
|
|
|
2824
2831
|
// Doctype
|
|
2825
|
-
|
|
2826
|
-
|
|
2832
|
+
if (doctype.test(remaining)) {
|
|
2833
|
+
const doctypeMatch = remaining.match(doctype);
|
|
2827
2834
|
if (handler.doctype) {
|
|
2828
2835
|
handler.doctype(doctypeMatch[0]);
|
|
2829
2836
|
}
|
|
@@ -2834,8 +2841,8 @@ class HTMLParser {
|
|
|
2834
2841
|
}
|
|
2835
2842
|
|
|
2836
2843
|
// End tag
|
|
2837
|
-
|
|
2838
|
-
|
|
2844
|
+
if (endTag.test(remaining)) {
|
|
2845
|
+
const endTagMatch = remaining.match(endTag);
|
|
2839
2846
|
advance(endTagMatch[0].length);
|
|
2840
2847
|
await parseEndTag(endTagMatch[0], endTagMatch[1]);
|
|
2841
2848
|
prevTag = '/' + endTagMatch[1].toLowerCase();
|
|
@@ -2844,7 +2851,7 @@ class HTMLParser {
|
|
|
2844
2851
|
}
|
|
2845
2852
|
|
|
2846
2853
|
// Start tag
|
|
2847
|
-
const startTagMatch = parseStartTag(
|
|
2854
|
+
const startTagMatch = parseStartTag(remaining, pos);
|
|
2848
2855
|
if (startTagMatch) {
|
|
2849
2856
|
advance(startTagMatch.advance);
|
|
2850
2857
|
await handleStartTag(startTagMatch);
|
|
@@ -2853,31 +2860,29 @@ class HTMLParser {
|
|
|
2853
2860
|
}
|
|
2854
2861
|
|
|
2855
2862
|
// Treat `<` as text
|
|
2856
|
-
if (handler.continueOnParseError)
|
|
2857
|
-
textEnd = html.indexOf('<', 1);
|
|
2858
|
-
}
|
|
2863
|
+
if (handler.continueOnParseError) ;
|
|
2859
2864
|
}
|
|
2860
2865
|
|
|
2861
2866
|
let text;
|
|
2862
2867
|
if (textEnd >= 0) {
|
|
2863
|
-
text =
|
|
2864
|
-
advance(textEnd);
|
|
2868
|
+
text = fullHtml.substring(pos, textEnd);
|
|
2869
|
+
advance(textEnd - pos);
|
|
2865
2870
|
} else {
|
|
2866
|
-
text =
|
|
2867
|
-
advance(
|
|
2871
|
+
text = fullHtml.substring(pos);
|
|
2872
|
+
advance(fullLength - pos);
|
|
2868
2873
|
}
|
|
2869
2874
|
|
|
2870
|
-
// Next tag
|
|
2871
|
-
const
|
|
2872
|
-
let nextTagMatch = parseStartTag(
|
|
2875
|
+
// Next tag for whitespace processing context
|
|
2876
|
+
const remainingAfterText = sliceFromPos(pos);
|
|
2877
|
+
let nextTagMatch = parseStartTag(remainingAfterText, pos);
|
|
2873
2878
|
if (nextTagMatch) {
|
|
2874
2879
|
nextTag = nextTagMatch.tagName;
|
|
2875
2880
|
// Extract minimal attribute info for whitespace logic (just name/value pairs)
|
|
2876
2881
|
nextAttrs = extractAttrInfo(nextTagMatch.attrs);
|
|
2877
2882
|
} else {
|
|
2878
|
-
|
|
2879
|
-
if (
|
|
2880
|
-
nextTag = '/' +
|
|
2883
|
+
const endTagMatch = remainingAfterText.match(endTag);
|
|
2884
|
+
if (endTagMatch) {
|
|
2885
|
+
nextTag = '/' + endTagMatch[1];
|
|
2881
2886
|
nextAttrs = [];
|
|
2882
2887
|
} else {
|
|
2883
2888
|
nextTag = '';
|
|
@@ -2893,10 +2898,11 @@ class HTMLParser {
|
|
|
2893
2898
|
} else {
|
|
2894
2899
|
const stackedTag = lastTag.toLowerCase();
|
|
2895
2900
|
// Use pre-compiled regex for common tags (`script`, `style`, `noscript`) to avoid regex creation overhead
|
|
2896
|
-
const reStackedTag = preCompiledStackedTags[stackedTag] || reCache[stackedTag] || (reCache[stackedTag] = new RegExp('([\\s\\S]*?)
|
|
2901
|
+
const reStackedTag = preCompiledStackedTags[stackedTag] || reCache[stackedTag] || (reCache[stackedTag] = new RegExp('([\\s\\S]*?)\\x3c/' + stackedTag + '[^>]*>', 'i'));
|
|
2897
2902
|
|
|
2898
|
-
const
|
|
2899
|
-
|
|
2903
|
+
const remaining = sliceFromPos(pos);
|
|
2904
|
+
const m = reStackedTag.exec(remaining);
|
|
2905
|
+
if (m && m.index === 0) {
|
|
2900
2906
|
let text = m[1];
|
|
2901
2907
|
if (stackedTag !== 'script' && stackedTag !== 'style' && stackedTag !== 'noscript') {
|
|
2902
2908
|
text = text
|
|
@@ -2907,12 +2913,12 @@ class HTMLParser {
|
|
|
2907
2913
|
await handler.chars(text);
|
|
2908
2914
|
}
|
|
2909
2915
|
// Advance HTML past the matched special tag content and its closing tag
|
|
2910
|
-
advance(m
|
|
2916
|
+
advance(m[0].length);
|
|
2911
2917
|
await parseEndTag('</' + stackedTag + '>', stackedTag);
|
|
2912
2918
|
} else {
|
|
2913
2919
|
// No closing tag found; to avoid infinite loop, break similarly to previous behavior
|
|
2914
|
-
if (handler.continueOnParseError && handler.chars &&
|
|
2915
|
-
await handler.chars(
|
|
2920
|
+
if (handler.continueOnParseError && handler.chars && pos < fullLength) {
|
|
2921
|
+
await handler.chars(fullHtml[pos], prevTag, '', prevAttrs, []);
|
|
2916
2922
|
advance(1);
|
|
2917
2923
|
} else {
|
|
2918
2924
|
break;
|
|
@@ -2932,7 +2938,7 @@ class HTMLParser {
|
|
|
2932
2938
|
continue;
|
|
2933
2939
|
}
|
|
2934
2940
|
const loc = getLineColumn(pos);
|
|
2935
|
-
// Include some context before the error position so the snippet contains the offending markup plus preceding characters (e.g.,
|
|
2941
|
+
// Include some context before the error position so the snippet contains the offending markup plus preceding characters (e.g., `invalid<tag`)
|
|
2936
2942
|
const CONTEXT_BEFORE = 50;
|
|
2937
2943
|
const startPos = Math.max(0, pos - CONTEXT_BEFORE);
|
|
2938
2944
|
const snippet = fullHtml.slice(startPos, startPos + 200).replace(/\n/g, ' ');
|
|
@@ -2964,8 +2970,8 @@ class HTMLParser {
|
|
|
2964
2970
|
}).filter(attr => attr.name); // Filter out invalid entries
|
|
2965
2971
|
}
|
|
2966
2972
|
|
|
2967
|
-
function parseStartTag(
|
|
2968
|
-
const start =
|
|
2973
|
+
function parseStartTag(remaining, startPos) {
|
|
2974
|
+
const start = remaining.match(startTagOpen);
|
|
2969
2975
|
if (start) {
|
|
2970
2976
|
const match = {
|
|
2971
2977
|
tagName: start[1],
|
|
@@ -2973,7 +2979,7 @@ class HTMLParser {
|
|
|
2973
2979
|
advance: 0
|
|
2974
2980
|
};
|
|
2975
2981
|
let consumed = start[0].length;
|
|
2976
|
-
|
|
2982
|
+
let currentPos = startPos + consumed;
|
|
2977
2983
|
let end, attr;
|
|
2978
2984
|
|
|
2979
2985
|
// Safety limit: Max length of input to check for attributes
|
|
@@ -2982,16 +2988,20 @@ class HTMLParser {
|
|
|
2982
2988
|
|
|
2983
2989
|
while (true) {
|
|
2984
2990
|
// Check for closing tag first
|
|
2985
|
-
|
|
2991
|
+
const remainingForEnd = sliceFromPos(currentPos);
|
|
2992
|
+
end = remainingForEnd.match(startTagClose);
|
|
2986
2993
|
if (end) {
|
|
2987
2994
|
break;
|
|
2988
2995
|
}
|
|
2989
2996
|
|
|
2990
2997
|
// Limit the input length we pass to the regex to prevent catastrophic backtracking
|
|
2991
|
-
const
|
|
2992
|
-
const
|
|
2998
|
+
const remainingLen = fullLength - currentPos;
|
|
2999
|
+
const isLimited = remainingLen > MAX_ATTR_PARSE_LENGTH;
|
|
3000
|
+
const extractEndPos = isLimited ? currentPos + MAX_ATTR_PARSE_LENGTH : fullLength;
|
|
2993
3001
|
|
|
2994
|
-
|
|
3002
|
+
// Create a temporary substring only for attribute parsing (this is limited and necessary for regex)
|
|
3003
|
+
const searchStr = fullHtml.substring(currentPos, extractEndPos);
|
|
3004
|
+
attr = searchStr.match(attribute);
|
|
2995
3005
|
|
|
2996
3006
|
// If we limited the input and got a match, check if the value might be truncated
|
|
2997
3007
|
if (attr && isLimited) {
|
|
@@ -3000,32 +3010,31 @@ class HTMLParser {
|
|
|
3000
3010
|
// If the match ends near the limit, the value might be truncated
|
|
3001
3011
|
if (attrEnd > MAX_ATTR_PARSE_LENGTH - 100) {
|
|
3002
3012
|
// Manually extract this attribute to handle potentially huge value
|
|
3003
|
-
const manualMatch =
|
|
3013
|
+
const manualMatch = searchStr.match(/^\s*([^\s"'<>/=]+)\s*=\s*/);
|
|
3004
3014
|
if (manualMatch) {
|
|
3005
|
-
const quoteChar =
|
|
3015
|
+
const quoteChar = searchStr[manualMatch[0].length];
|
|
3006
3016
|
if (quoteChar === '"' || quoteChar === "'") {
|
|
3007
|
-
const closeQuote =
|
|
3017
|
+
const closeQuote = searchStr.indexOf(quoteChar, manualMatch[0].length + 1);
|
|
3008
3018
|
if (closeQuote !== -1) {
|
|
3009
|
-
const
|
|
3019
|
+
const fullAttrLen = closeQuote + 1;
|
|
3010
3020
|
const numCustomParts = handler.customAttrSurround
|
|
3011
3021
|
? handler.customAttrSurround.length * NCP
|
|
3012
3022
|
: 0;
|
|
3013
3023
|
const baseIndex = 1 + numCustomParts;
|
|
3014
3024
|
|
|
3015
3025
|
attr = [];
|
|
3016
|
-
attr[0] =
|
|
3026
|
+
attr[0] = searchStr.substring(0, fullAttrLen);
|
|
3017
3027
|
attr[baseIndex] = manualMatch[1]; // Attribute name
|
|
3018
|
-
attr[baseIndex + 1] = '='; // `customAssign` (falls back to
|
|
3019
|
-
const value =
|
|
3028
|
+
attr[baseIndex + 1] = '='; // `customAssign` (falls back to "=" for huge attributes)
|
|
3029
|
+
const value = searchStr.substring(manualMatch[0].length + 1, closeQuote);
|
|
3020
3030
|
// Place value at correct index based on quote type
|
|
3021
3031
|
if (quoteChar === '"') {
|
|
3022
3032
|
attr[baseIndex + 2] = value; // Double-quoted value
|
|
3023
3033
|
} else {
|
|
3024
3034
|
attr[baseIndex + 3] = value; // Single-quoted value
|
|
3025
3035
|
}
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
consumed += attrLen;
|
|
3036
|
+
currentPos += fullAttrLen;
|
|
3037
|
+
consumed += fullAttrLen;
|
|
3029
3038
|
match.attrs.push(attr);
|
|
3030
3039
|
continue;
|
|
3031
3040
|
}
|
|
@@ -3038,18 +3047,55 @@ class HTMLParser {
|
|
|
3038
3047
|
}
|
|
3039
3048
|
}
|
|
3040
3049
|
|
|
3050
|
+
if (!attr && isLimited) {
|
|
3051
|
+
// If we limited the input and got no match, try manual extraction
|
|
3052
|
+
// This handles cases where quoted attributes exceed `MAX_ATTR_PARSE_LENGTH`
|
|
3053
|
+
const manualMatch = searchStr.match(/^\s*([^\s"'<>/=]+)\s*=\s*/);
|
|
3054
|
+
if (manualMatch) {
|
|
3055
|
+
const quoteChar = searchStr[manualMatch[0].length];
|
|
3056
|
+
if (quoteChar === '"' || quoteChar === "'") {
|
|
3057
|
+
// Search in the full HTML (not limited substring) for closing quote
|
|
3058
|
+
const closeQuote = fullHtml.indexOf(quoteChar, currentPos + manualMatch[0].length + 1);
|
|
3059
|
+
if (closeQuote !== -1) {
|
|
3060
|
+
const fullAttrLen = closeQuote - currentPos + 1;
|
|
3061
|
+
const numCustomParts = handler.customAttrSurround
|
|
3062
|
+
? handler.customAttrSurround.length * NCP
|
|
3063
|
+
: 0;
|
|
3064
|
+
const baseIndex = 1 + numCustomParts;
|
|
3065
|
+
|
|
3066
|
+
attr = [];
|
|
3067
|
+
attr[0] = fullHtml.substring(currentPos, closeQuote + 1);
|
|
3068
|
+
attr[baseIndex] = manualMatch[1]; // Attribute name
|
|
3069
|
+
attr[baseIndex + 1] = '='; // customAssign
|
|
3070
|
+
const value = fullHtml.substring(currentPos + manualMatch[0].length + 1, closeQuote);
|
|
3071
|
+
// Place value at correct index based on quote type
|
|
3072
|
+
if (quoteChar === '"') {
|
|
3073
|
+
attr[baseIndex + 2] = value; // Double-quoted value
|
|
3074
|
+
} else {
|
|
3075
|
+
attr[baseIndex + 3] = value; // Single-quoted value
|
|
3076
|
+
}
|
|
3077
|
+
currentPos += fullAttrLen;
|
|
3078
|
+
consumed += fullAttrLen;
|
|
3079
|
+
match.attrs.push(attr);
|
|
3080
|
+
continue;
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3083
|
+
}
|
|
3084
|
+
}
|
|
3085
|
+
|
|
3041
3086
|
if (!attr) {
|
|
3042
3087
|
break;
|
|
3043
3088
|
}
|
|
3044
3089
|
|
|
3045
3090
|
const attrLen = attr[0].length;
|
|
3046
|
-
|
|
3091
|
+
currentPos += attrLen;
|
|
3047
3092
|
consumed += attrLen;
|
|
3048
3093
|
match.attrs.push(attr);
|
|
3049
3094
|
}
|
|
3050
3095
|
|
|
3051
3096
|
// Check for closing tag
|
|
3052
|
-
|
|
3097
|
+
const remainingForClose = sliceFromPos(currentPos);
|
|
3098
|
+
end = remainingForClose.match(startTagClose);
|
|
3053
3099
|
if (end) {
|
|
3054
3100
|
match.unarySlash = end[1];
|
|
3055
3101
|
consumed += end[0].length;
|
|
@@ -3246,11 +3292,11 @@ class HTMLParser {
|
|
|
3246
3292
|
if (handler.end) {
|
|
3247
3293
|
handler.end(tagName, [], false);
|
|
3248
3294
|
}
|
|
3249
|
-
} else if (tagName.toLowerCase() === 'br') {
|
|
3295
|
+
} else if (tagName && tagName.toLowerCase() === 'br') {
|
|
3250
3296
|
if (handler.start) {
|
|
3251
3297
|
await handler.start(tagName, [], true, '');
|
|
3252
3298
|
}
|
|
3253
|
-
} else if (tagName.toLowerCase() === 'p') {
|
|
3299
|
+
} else if (tagName && tagName.toLowerCase() === 'p') {
|
|
3254
3300
|
if (handler.start) {
|
|
3255
3301
|
await handler.start(tagName, [], false, '', true);
|
|
3256
3302
|
}
|
|
@@ -6931,10 +6977,9 @@ function shouldMinifyInnerHTML(options) {
|
|
|
6931
6977
|
* @param {Function} deps.getSwc - Function to lazily load @swc/core
|
|
6932
6978
|
* @param {LRU} deps.cssMinifyCache - CSS minification cache
|
|
6933
6979
|
* @param {LRU} deps.jsMinifyCache - JS minification cache
|
|
6934
|
-
* @param {LRU} deps.urlMinifyCache - URL minification cache
|
|
6935
6980
|
* @returns {MinifierOptions} Normalized options with defaults applied
|
|
6936
6981
|
*/
|
|
6937
|
-
const processOptions = (inputOptions, { getLightningCSS, getTerser, getSwc, cssMinifyCache, jsMinifyCache
|
|
6982
|
+
const processOptions = (inputOptions, { getLightningCSS, getTerser, getSwc, cssMinifyCache, jsMinifyCache } = {}) => {
|
|
6938
6983
|
const options = {
|
|
6939
6984
|
name: function (name) {
|
|
6940
6985
|
return name.toLowerCase();
|
|
@@ -7228,7 +7273,7 @@ const processOptions = (inputOptions, { getLightningCSS, getTerser, getSwc, cssM
|
|
|
7228
7273
|
const relateUrlInstance = new RelateURL(relateUrlOptions.site || '', relateUrlOptions);
|
|
7229
7274
|
|
|
7230
7275
|
// Create instance-specific cache (results depend on site configuration)
|
|
7231
|
-
const instanceCache =
|
|
7276
|
+
const instanceCache = new LRU(500);
|
|
7232
7277
|
|
|
7233
7278
|
options.minifyURLs = function (text) {
|
|
7234
7279
|
// Fast-path: Skip if text doesn’t look like a URL that needs processing
|
|
@@ -7237,20 +7282,15 @@ const processOptions = (inputOptions, { getLightningCSS, getTerser, getSwc, cssM
|
|
|
7237
7282
|
return text;
|
|
7238
7283
|
}
|
|
7239
7284
|
|
|
7240
|
-
// Check
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
return cached;
|
|
7245
|
-
}
|
|
7285
|
+
// Check cache
|
|
7286
|
+
const cached = instanceCache.get(text);
|
|
7287
|
+
if (cached !== undefined) {
|
|
7288
|
+
return cached;
|
|
7246
7289
|
}
|
|
7247
7290
|
|
|
7248
7291
|
try {
|
|
7249
7292
|
const result = relateUrlInstance.relate(text);
|
|
7250
|
-
|
|
7251
|
-
if (instanceCache) {
|
|
7252
|
-
instanceCache.set(text, result);
|
|
7253
|
-
}
|
|
7293
|
+
instanceCache.set(text, result);
|
|
7254
7294
|
return result;
|
|
7255
7295
|
} catch (err) {
|
|
7256
7296
|
// Don’t cache errors
|
|
@@ -8089,10 +8129,9 @@ async function getSwc() {
|
|
|
8089
8129
|
return swcPromise;
|
|
8090
8130
|
}
|
|
8091
8131
|
|
|
8092
|
-
// Minification caches
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
const urlMinifyCache = new LRU(500);
|
|
8132
|
+
// Minification caches (initialized on first use with configurable sizes)
|
|
8133
|
+
let cssMinifyCache = null;
|
|
8134
|
+
let jsMinifyCache = null;
|
|
8096
8135
|
|
|
8097
8136
|
// Pre-compiled patterns for script merging (avoid repeated allocation in hot path)
|
|
8098
8137
|
const RE_SCRIPT_ATTRS = /([^\s=]+)(?:=(?:"([^"]*)"|'([^']*)'|([^\s>]+)))?/g;
|
|
@@ -8241,6 +8280,24 @@ function mergeConsecutiveScripts(html) {
|
|
|
8241
8280
|
*
|
|
8242
8281
|
* Default: Built-in `canTrimWhitespace` function
|
|
8243
8282
|
*
|
|
8283
|
+
* @prop {number} [cacheCSS]
|
|
8284
|
+
* The maximum number of entries for the CSS minification cache. Higher values
|
|
8285
|
+
* improve performance for inputs with repeated CSS (e.g., batch processing).
|
|
8286
|
+
* - Cache is created on first `minify()` call and persists for the process lifetime
|
|
8287
|
+
* - Cache size is locked after first call—subsequent calls reuse the same cache
|
|
8288
|
+
* - Explicit `0` values are coerced to `1` (minimum functional cache size)
|
|
8289
|
+
*
|
|
8290
|
+
* Default: `500`
|
|
8291
|
+
*
|
|
8292
|
+
* @prop {number} [cacheJS]
|
|
8293
|
+
* The maximum number of entries for the JavaScript minification cache. Higher
|
|
8294
|
+
* values improve performance for inputs with repeated JavaScript.
|
|
8295
|
+
* - Cache is created on first `minify()` call and persists for the process lifetime
|
|
8296
|
+
* - Cache size is locked after first call—subsequent calls reuse the same cache
|
|
8297
|
+
* - Explicit `0` values are coerced to `1` (minimum functional cache size)
|
|
8298
|
+
*
|
|
8299
|
+
* Default: `500`
|
|
8300
|
+
*
|
|
8244
8301
|
* @prop {boolean} [caseSensitive]
|
|
8245
8302
|
* When true, tag and attribute names are treated as case-sensitive.
|
|
8246
8303
|
* Useful for custom HTML tags.
|
|
@@ -9499,6 +9556,48 @@ function joinResultSegments(results, options, restoreCustom, restoreIgnore) {
|
|
|
9499
9556
|
return options.collapseWhitespace ? collapseWhitespace(str, options, true, true) : str;
|
|
9500
9557
|
}
|
|
9501
9558
|
|
|
9559
|
+
/**
|
|
9560
|
+
* Initialize minification caches with configurable sizes.
|
|
9561
|
+
*
|
|
9562
|
+
* Important behavior notes:
|
|
9563
|
+
* - Caches are created on the first `minify()` call and persist for the lifetime of the process
|
|
9564
|
+
* - Cache sizes are locked after first initialization—subsequent calls use the same caches
|
|
9565
|
+
* even if different `cacheCSS`/`cacheJS` options are provided
|
|
9566
|
+
* - The first call’s options determine the cache sizes for subsequent calls
|
|
9567
|
+
* - Explicit `0` values are coerced to `1` (minimum functional cache size)
|
|
9568
|
+
*/
|
|
9569
|
+
function initCaches(options) {
|
|
9570
|
+
// Only create caches once (on first call)—sizes are locked after this
|
|
9571
|
+
if (!cssMinifyCache) {
|
|
9572
|
+
const defaultSize = 500;
|
|
9573
|
+
|
|
9574
|
+
// Helper to parse env var—returns parsed number (including 0) or undefined if absent, invalid, or negative
|
|
9575
|
+
const parseEnvCacheSize = (envVar) => {
|
|
9576
|
+
if (envVar === undefined) return undefined;
|
|
9577
|
+
const parsed = Number(envVar);
|
|
9578
|
+
if (Number.isNaN(parsed) || !Number.isFinite(parsed) || parsed < 0) {
|
|
9579
|
+
return undefined;
|
|
9580
|
+
}
|
|
9581
|
+
return parsed;
|
|
9582
|
+
};
|
|
9583
|
+
|
|
9584
|
+
// Get cache sizes with precedence: Options > env > default
|
|
9585
|
+
const cssSize = options.cacheCSS !== undefined ? options.cacheCSS
|
|
9586
|
+
: (parseEnvCacheSize(process.env.HMN_CACHE_CSS) ?? defaultSize);
|
|
9587
|
+
const jsSize = options.cacheJS !== undefined ? options.cacheJS
|
|
9588
|
+
: (parseEnvCacheSize(process.env.HMN_CACHE_JS) ?? defaultSize);
|
|
9589
|
+
|
|
9590
|
+
// Coerce `0` to `1` (minimum functional cache size) to avoid immediate eviction
|
|
9591
|
+
const cssFinalSize = cssSize === 0 ? 1 : cssSize;
|
|
9592
|
+
const jsFinalSize = jsSize === 0 ? 1 : jsSize;
|
|
9593
|
+
|
|
9594
|
+
cssMinifyCache = new LRU(cssFinalSize);
|
|
9595
|
+
jsMinifyCache = new LRU(jsFinalSize);
|
|
9596
|
+
}
|
|
9597
|
+
|
|
9598
|
+
return { cssMinifyCache, jsMinifyCache };
|
|
9599
|
+
}
|
|
9600
|
+
|
|
9502
9601
|
/**
|
|
9503
9602
|
* @param {string} value
|
|
9504
9603
|
* @param {MinifierOptions} [options]
|
|
@@ -9506,13 +9605,15 @@ function joinResultSegments(results, options, restoreCustom, restoreIgnore) {
|
|
|
9506
9605
|
*/
|
|
9507
9606
|
const minify$1 = async function (value, options) {
|
|
9508
9607
|
const start = Date.now();
|
|
9608
|
+
|
|
9609
|
+
// Initialize caches on first use with configurable sizes
|
|
9610
|
+
const caches = initCaches(options || {});
|
|
9611
|
+
|
|
9509
9612
|
options = processOptions(options || {}, {
|
|
9510
9613
|
getLightningCSS,
|
|
9511
9614
|
getTerser,
|
|
9512
9615
|
getSwc,
|
|
9513
|
-
|
|
9514
|
-
jsMinifyCache,
|
|
9515
|
-
urlMinifyCache
|
|
9616
|
+
...caches
|
|
9516
9617
|
});
|
|
9517
9618
|
let result = await minifyHTML(value, options);
|
|
9518
9619
|
|
|
@@ -9656,6 +9757,15 @@ function make_node(ctor, orig, props) {
|
|
|
9656
9757
|
return new ctor(props);
|
|
9657
9758
|
}
|
|
9658
9759
|
|
|
9760
|
+
/** Makes a `void 0` expression. Use instead of AST_Undefined which may conflict
|
|
9761
|
+
* with an existing variable called `undefined` */
|
|
9762
|
+
function make_void_0(orig) {
|
|
9763
|
+
return make_node(AST_UnaryPrefix, orig, {
|
|
9764
|
+
operator: "void",
|
|
9765
|
+
expression: make_node(AST_Number, orig, { value: 0 })
|
|
9766
|
+
});
|
|
9767
|
+
}
|
|
9768
|
+
|
|
9659
9769
|
function push_uniq(array, el) {
|
|
9660
9770
|
if (!array.includes(el))
|
|
9661
9771
|
array.push(el);
|
|
@@ -23089,7 +23199,7 @@ function make_node_from_constant(val, orig) {
|
|
|
23089
23199
|
case "boolean":
|
|
23090
23200
|
return make_node(val ? AST_True : AST_False, orig);
|
|
23091
23201
|
case "undefined":
|
|
23092
|
-
return
|
|
23202
|
+
return make_void_0(orig);
|
|
23093
23203
|
default:
|
|
23094
23204
|
if (val === null) {
|
|
23095
23205
|
return make_node(AST_Null, orig, { value: null });
|
|
@@ -25945,7 +26055,7 @@ function safe_to_read(tw, def) {
|
|
|
25945
26055
|
if (def.fixed == null) {
|
|
25946
26056
|
var orig = def.orig[0];
|
|
25947
26057
|
if (orig instanceof AST_SymbolFunarg || orig.name == "arguments") return false;
|
|
25948
|
-
def.fixed =
|
|
26058
|
+
def.fixed = make_void_0(orig);
|
|
25949
26059
|
}
|
|
25950
26060
|
return true;
|
|
25951
26061
|
}
|
|
@@ -26243,7 +26353,7 @@ function mark_lambda(tw, descend, compressor) {
|
|
|
26243
26353
|
if (d.orig.length > 1) return;
|
|
26244
26354
|
if (d.fixed === undefined && (!this.uses_arguments || tw.has_directive("use strict"))) {
|
|
26245
26355
|
d.fixed = function() {
|
|
26246
|
-
return iife.args[i] ||
|
|
26356
|
+
return iife.args[i] || make_void_0(iife);
|
|
26247
26357
|
};
|
|
26248
26358
|
tw.loop_ids.set(d.id, tw.in_loop);
|
|
26249
26359
|
mark(tw, d, true);
|
|
@@ -27168,7 +27278,7 @@ function tighten_body(statements, compressor) {
|
|
|
27168
27278
|
}
|
|
27169
27279
|
} else {
|
|
27170
27280
|
if (!arg) {
|
|
27171
|
-
arg =
|
|
27281
|
+
arg = make_void_0(sym).transform(compressor);
|
|
27172
27282
|
} else if (arg instanceof AST_Lambda && arg.pinned()
|
|
27173
27283
|
|| has_overlapping_symbol(fn, arg, fn_strict)) {
|
|
27174
27284
|
arg = null;
|
|
@@ -27408,7 +27518,7 @@ function tighten_body(statements, compressor) {
|
|
|
27408
27518
|
found = true;
|
|
27409
27519
|
if (node instanceof AST_VarDef) {
|
|
27410
27520
|
node.value = node.name instanceof AST_SymbolConst
|
|
27411
|
-
?
|
|
27521
|
+
? make_void_0(node.value) // `const` always needs value.
|
|
27412
27522
|
: null;
|
|
27413
27523
|
return node;
|
|
27414
27524
|
}
|
|
@@ -27847,7 +27957,7 @@ function tighten_body(statements, compressor) {
|
|
|
27847
27957
|
var stat = statements[i];
|
|
27848
27958
|
if (prev) {
|
|
27849
27959
|
if (stat instanceof AST_Exit) {
|
|
27850
|
-
stat.value = cons_seq(stat.value ||
|
|
27960
|
+
stat.value = cons_seq(stat.value || make_void_0(stat).transform(compressor));
|
|
27851
27961
|
} else if (stat instanceof AST_For) {
|
|
27852
27962
|
if (!(stat.init instanceof AST_DefinitionsLike)) {
|
|
27853
27963
|
const abort = walk(prev.body, node => {
|
|
@@ -28352,7 +28462,7 @@ function inline_into_call(self, compressor) {
|
|
|
28352
28462
|
if (returned) {
|
|
28353
28463
|
returned = returned.clone(true);
|
|
28354
28464
|
} else {
|
|
28355
|
-
returned =
|
|
28465
|
+
returned = make_void_0(self);
|
|
28356
28466
|
}
|
|
28357
28467
|
const args = self.args.concat(returned);
|
|
28358
28468
|
return make_sequence(self, args).optimize(compressor);
|
|
@@ -28368,7 +28478,7 @@ function inline_into_call(self, compressor) {
|
|
|
28368
28478
|
&& returned.name === fn.argnames[0].name
|
|
28369
28479
|
) {
|
|
28370
28480
|
const replacement =
|
|
28371
|
-
(self.args[0] ||
|
|
28481
|
+
(self.args[0] || make_void_0()).optimize(compressor);
|
|
28372
28482
|
|
|
28373
28483
|
let parent;
|
|
28374
28484
|
if (
|
|
@@ -28450,7 +28560,7 @@ function inline_into_call(self, compressor) {
|
|
|
28450
28560
|
|
|
28451
28561
|
const can_drop_this_call = is_regular_func && compressor.option("side_effects") && fn.body.every(is_empty);
|
|
28452
28562
|
if (can_drop_this_call) {
|
|
28453
|
-
var args = self.args.concat(
|
|
28563
|
+
var args = self.args.concat(make_void_0(self));
|
|
28454
28564
|
return make_sequence(self, args).optimize(compressor);
|
|
28455
28565
|
}
|
|
28456
28566
|
|
|
@@ -28469,9 +28579,9 @@ function inline_into_call(self, compressor) {
|
|
|
28469
28579
|
return self;
|
|
28470
28580
|
|
|
28471
28581
|
function return_value(stat) {
|
|
28472
|
-
if (!stat) return
|
|
28582
|
+
if (!stat) return make_void_0(self);
|
|
28473
28583
|
if (stat instanceof AST_Return) {
|
|
28474
|
-
if (!stat.value) return
|
|
28584
|
+
if (!stat.value) return make_void_0(self);
|
|
28475
28585
|
return stat.value.clone(true);
|
|
28476
28586
|
}
|
|
28477
28587
|
if (stat instanceof AST_SimpleStatement) {
|
|
@@ -28617,7 +28727,7 @@ function inline_into_call(self, compressor) {
|
|
|
28617
28727
|
} else {
|
|
28618
28728
|
var symbol = make_node(AST_SymbolVar, name, name);
|
|
28619
28729
|
name.definition().orig.push(symbol);
|
|
28620
|
-
if (!value && in_loop) value =
|
|
28730
|
+
if (!value && in_loop) value = make_void_0(self);
|
|
28621
28731
|
append_var(decls, expressions, symbol, value);
|
|
28622
28732
|
}
|
|
28623
28733
|
}
|
|
@@ -28644,7 +28754,7 @@ function inline_into_call(self, compressor) {
|
|
|
28644
28754
|
operator: "=",
|
|
28645
28755
|
logical: false,
|
|
28646
28756
|
left: sym,
|
|
28647
|
-
right:
|
|
28757
|
+
right: make_void_0(name),
|
|
28648
28758
|
}));
|
|
28649
28759
|
}
|
|
28650
28760
|
}
|
|
@@ -29142,7 +29252,7 @@ AST_Toplevel.DEFMETHOD("drop_console", function(options) {
|
|
|
29142
29252
|
set_flag(exp.expression, SQUEEZED);
|
|
29143
29253
|
self.args = [];
|
|
29144
29254
|
} else {
|
|
29145
|
-
return
|
|
29255
|
+
return make_void_0(self);
|
|
29146
29256
|
}
|
|
29147
29257
|
}
|
|
29148
29258
|
});
|
|
@@ -29170,12 +29280,7 @@ AST_Scope.DEFMETHOD("process_expression", function(insert, compressor) {
|
|
|
29170
29280
|
: make_node(AST_EmptyStatement, node);
|
|
29171
29281
|
}
|
|
29172
29282
|
return make_node(AST_SimpleStatement, node, {
|
|
29173
|
-
body: node.value ||
|
|
29174
|
-
operator: "void",
|
|
29175
|
-
expression: make_node(AST_Number, node, {
|
|
29176
|
-
value: 0
|
|
29177
|
-
})
|
|
29178
|
-
})
|
|
29283
|
+
body: node.value || make_void_0(node)
|
|
29179
29284
|
});
|
|
29180
29285
|
}
|
|
29181
29286
|
if (node instanceof AST_Class || node instanceof AST_Lambda && node !== self) {
|
|
@@ -29778,8 +29883,8 @@ def_optimize(AST_If, function(self, compressor) {
|
|
|
29778
29883
|
return make_node(self.body.CTOR, self, {
|
|
29779
29884
|
value: make_node(AST_Conditional, self, {
|
|
29780
29885
|
condition : self.condition,
|
|
29781
|
-
consequent : self.body.value ||
|
|
29782
|
-
alternative : self.alternative.value ||
|
|
29886
|
+
consequent : self.body.value || make_void_0(self.body),
|
|
29887
|
+
alternative : self.alternative.value || make_void_0(self.alternative),
|
|
29783
29888
|
}).transform(compressor)
|
|
29784
29889
|
}).optimize(compressor);
|
|
29785
29890
|
}
|
|
@@ -30332,7 +30437,7 @@ def_optimize(AST_Call, function(self, compressor) {
|
|
|
30332
30437
|
const value = condition.evaluate(compressor);
|
|
30333
30438
|
|
|
30334
30439
|
if (value === 1 || value === true) {
|
|
30335
|
-
return
|
|
30440
|
+
return make_void_0(self).optimize(compressor);
|
|
30336
30441
|
}
|
|
30337
30442
|
}
|
|
30338
30443
|
}
|
|
@@ -30694,6 +30799,10 @@ def_optimize(AST_UnaryPrefix, function(self, compressor) {
|
|
|
30694
30799
|
) {
|
|
30695
30800
|
return make_sequence(self, [e, make_node(AST_True, self)]).optimize(compressor);
|
|
30696
30801
|
}
|
|
30802
|
+
// Short-circuit common `void 0`
|
|
30803
|
+
if (self.operator === "void" && e instanceof AST_Number && e.value === 0) {
|
|
30804
|
+
return unsafe_undefined_ref(self, compressor) || self;
|
|
30805
|
+
}
|
|
30697
30806
|
var seq = self.lift_sequences(compressor);
|
|
30698
30807
|
if (seq !== self) {
|
|
30699
30808
|
return seq;
|
|
@@ -30704,7 +30813,7 @@ def_optimize(AST_UnaryPrefix, function(self, compressor) {
|
|
|
30704
30813
|
self.expression = e;
|
|
30705
30814
|
return self;
|
|
30706
30815
|
} else {
|
|
30707
|
-
return
|
|
30816
|
+
return make_void_0(self).optimize(compressor);
|
|
30708
30817
|
}
|
|
30709
30818
|
}
|
|
30710
30819
|
if (compressor.in_boolean_context()) {
|
|
@@ -30890,7 +30999,7 @@ def_optimize(AST_Binary, function(self, compressor) {
|
|
|
30890
30999
|
if (expr instanceof AST_SymbolRef ? expr.is_declared(compressor)
|
|
30891
31000
|
: !(expr instanceof AST_PropAccess && compressor.option("ie8"))) {
|
|
30892
31001
|
self.right = expr;
|
|
30893
|
-
self.left =
|
|
31002
|
+
self.left = make_void_0(self.left).optimize(compressor);
|
|
30894
31003
|
if (self.operator.length == 2) self.operator += "=";
|
|
30895
31004
|
}
|
|
30896
31005
|
} else if (compressor.option("typeofs")
|
|
@@ -30903,7 +31012,7 @@ def_optimize(AST_Binary, function(self, compressor) {
|
|
|
30903
31012
|
if (expr instanceof AST_SymbolRef ? expr.is_declared(compressor)
|
|
30904
31013
|
: !(expr instanceof AST_PropAccess && compressor.option("ie8"))) {
|
|
30905
31014
|
self.left = expr;
|
|
30906
|
-
self.right =
|
|
31015
|
+
self.right = make_void_0(self.right).optimize(compressor);
|
|
30907
31016
|
if (self.operator.length == 2) self.operator += "=";
|
|
30908
31017
|
}
|
|
30909
31018
|
} else if (self.left instanceof AST_SymbolRef
|
|
@@ -31544,7 +31653,8 @@ function is_atomic(lhs, self) {
|
|
|
31544
31653
|
return lhs instanceof AST_SymbolRef || lhs.TYPE === self.TYPE;
|
|
31545
31654
|
}
|
|
31546
31655
|
|
|
31547
|
-
|
|
31656
|
+
/** Apply the `unsafe_undefined` option: find a variable called `undefined` and turn `self` into a reference to it. */
|
|
31657
|
+
function unsafe_undefined_ref(self, compressor) {
|
|
31548
31658
|
if (compressor.option("unsafe_undefined")) {
|
|
31549
31659
|
var undef = find_variable(compressor, "undefined");
|
|
31550
31660
|
if (undef) {
|
|
@@ -31557,14 +31667,15 @@ def_optimize(AST_Undefined, function(self, compressor) {
|
|
|
31557
31667
|
return ref;
|
|
31558
31668
|
}
|
|
31559
31669
|
}
|
|
31670
|
+
return null;
|
|
31671
|
+
}
|
|
31672
|
+
|
|
31673
|
+
def_optimize(AST_Undefined, function(self, compressor) {
|
|
31674
|
+
var symbolref = unsafe_undefined_ref(self, compressor);
|
|
31675
|
+
if (symbolref) return symbolref;
|
|
31560
31676
|
var lhs = compressor.is_lhs();
|
|
31561
31677
|
if (lhs && is_atomic(lhs, self)) return self;
|
|
31562
|
-
return
|
|
31563
|
-
operator: "void",
|
|
31564
|
-
expression: make_node(AST_Number, self, {
|
|
31565
|
-
value: 0
|
|
31566
|
-
})
|
|
31567
|
-
});
|
|
31678
|
+
return make_void_0(self);
|
|
31568
31679
|
});
|
|
31569
31680
|
|
|
31570
31681
|
def_optimize(AST_Infinity, function(self, compressor) {
|
|
@@ -32251,7 +32362,7 @@ def_optimize(AST_Sub, function(self, compressor) {
|
|
|
32251
32362
|
}
|
|
32252
32363
|
}
|
|
32253
32364
|
if (retValue instanceof AST_Expansion) break FLATTEN;
|
|
32254
|
-
retValue = retValue instanceof AST_Hole ?
|
|
32365
|
+
retValue = retValue instanceof AST_Hole ? make_void_0(retValue) : retValue;
|
|
32255
32366
|
if (!flatten) values.unshift(retValue);
|
|
32256
32367
|
while (--i >= 0) {
|
|
32257
32368
|
var value = elements[i];
|
|
@@ -32290,7 +32401,7 @@ def_optimize(AST_Chain, function (self, compressor) {
|
|
|
32290
32401
|
if (parent instanceof AST_UnaryPrefix && parent.operator === "delete") {
|
|
32291
32402
|
return make_node_from_constant(0, self);
|
|
32292
32403
|
}
|
|
32293
|
-
return
|
|
32404
|
+
return make_void_0(self).optimize(compressor);
|
|
32294
32405
|
}
|
|
32295
32406
|
if (
|
|
32296
32407
|
self.expression instanceof AST_PropAccess
|
|
@@ -33961,6 +34072,7 @@ var domprops = [
|
|
|
33961
34072
|
"Array",
|
|
33962
34073
|
"ArrayBuffer",
|
|
33963
34074
|
"ArrayType",
|
|
34075
|
+
"AsyncDisposableStack",
|
|
33964
34076
|
"Atomics",
|
|
33965
34077
|
"Attr",
|
|
33966
34078
|
"Audio",
|
|
@@ -34099,6 +34211,7 @@ var domprops = [
|
|
|
34099
34211
|
"COPY_WRITE_BUFFER",
|
|
34100
34212
|
"COPY_WRITE_BUFFER_BINDING",
|
|
34101
34213
|
"COUNTER_STYLE_RULE",
|
|
34214
|
+
"CSPViolationReportBody",
|
|
34102
34215
|
"CSS",
|
|
34103
34216
|
"CSS2Properties",
|
|
34104
34217
|
"CSSAnimation",
|
|
@@ -34109,6 +34222,9 @@ var domprops = [
|
|
|
34109
34222
|
"CSSFontFaceRule",
|
|
34110
34223
|
"CSSFontFeatureValuesRule",
|
|
34111
34224
|
"CSSFontPaletteValuesRule",
|
|
34225
|
+
"CSSFunctionDeclarations",
|
|
34226
|
+
"CSSFunctionDescriptors",
|
|
34227
|
+
"CSSFunctionRule",
|
|
34112
34228
|
"CSSGroupingRule",
|
|
34113
34229
|
"CSSImageValue",
|
|
34114
34230
|
"CSSImportRule",
|
|
@@ -34152,6 +34268,7 @@ var domprops = [
|
|
|
34152
34268
|
"CSSSkewY",
|
|
34153
34269
|
"CSSStartingStyleRule",
|
|
34154
34270
|
"CSSStyleDeclaration",
|
|
34271
|
+
"CSSStyleProperties",
|
|
34155
34272
|
"CSSStyleRule",
|
|
34156
34273
|
"CSSStyleSheet",
|
|
34157
34274
|
"CSSStyleValue",
|
|
@@ -34285,6 +34402,7 @@ var domprops = [
|
|
|
34285
34402
|
"CookieStoreManager",
|
|
34286
34403
|
"CountQueuingStrategy",
|
|
34287
34404
|
"Counter",
|
|
34405
|
+
"CreateMonitor",
|
|
34288
34406
|
"CreateType",
|
|
34289
34407
|
"Credential",
|
|
34290
34408
|
"CredentialsContainer",
|
|
@@ -34794,11 +34912,14 @@ var domprops = [
|
|
|
34794
34912
|
"DeviceMotionEventAcceleration",
|
|
34795
34913
|
"DeviceMotionEventRotationRate",
|
|
34796
34914
|
"DeviceOrientationEvent",
|
|
34915
|
+
"DevicePosture",
|
|
34797
34916
|
"DeviceProximityEvent",
|
|
34798
34917
|
"DeviceStorage",
|
|
34799
34918
|
"DeviceStorageChangeEvent",
|
|
34919
|
+
"DigitalCredential",
|
|
34800
34920
|
"Directory",
|
|
34801
34921
|
"DisplayNames",
|
|
34922
|
+
"DisposableStack",
|
|
34802
34923
|
"Document",
|
|
34803
34924
|
"DocumentFragment",
|
|
34804
34925
|
"DocumentPictureInPicture",
|
|
@@ -34806,6 +34927,7 @@ var domprops = [
|
|
|
34806
34927
|
"DocumentTimeline",
|
|
34807
34928
|
"DocumentType",
|
|
34808
34929
|
"DragEvent",
|
|
34930
|
+
"Duration",
|
|
34809
34931
|
"DurationFormat",
|
|
34810
34932
|
"DynamicsCompressorNode",
|
|
34811
34933
|
"E",
|
|
@@ -34913,6 +35035,7 @@ var domprops = [
|
|
|
34913
35035
|
"FeedEntry",
|
|
34914
35036
|
"Fence",
|
|
34915
35037
|
"FencedFrameConfig",
|
|
35038
|
+
"FetchLaterResult",
|
|
34916
35039
|
"File",
|
|
34917
35040
|
"FileError",
|
|
34918
35041
|
"FileList",
|
|
@@ -34925,6 +35048,7 @@ var domprops = [
|
|
|
34925
35048
|
"FileSystemFileEntry",
|
|
34926
35049
|
"FileSystemFileHandle",
|
|
34927
35050
|
"FileSystemHandle",
|
|
35051
|
+
"FileSystemObserver",
|
|
34928
35052
|
"FileSystemWritableFileStream",
|
|
34929
35053
|
"FinalizationRegistry",
|
|
34930
35054
|
"FindInPage",
|
|
@@ -35090,6 +35214,7 @@ var domprops = [
|
|
|
35090
35214
|
"HTMLQuoteElement",
|
|
35091
35215
|
"HTMLScriptElement",
|
|
35092
35216
|
"HTMLSelectElement",
|
|
35217
|
+
"HTMLSelectedContentElement",
|
|
35093
35218
|
"HTMLShadowElement",
|
|
35094
35219
|
"HTMLSlotElement",
|
|
35095
35220
|
"HTMLSourceElement",
|
|
@@ -35134,6 +35259,7 @@ var domprops = [
|
|
|
35134
35259
|
"IDBMutableFile",
|
|
35135
35260
|
"IDBObjectStore",
|
|
35136
35261
|
"IDBOpenDBRequest",
|
|
35262
|
+
"IDBRecord",
|
|
35137
35263
|
"IDBRequest",
|
|
35138
35264
|
"IDBTransaction",
|
|
35139
35265
|
"IDBVersionChangeEvent",
|
|
@@ -35196,10 +35322,13 @@ var domprops = [
|
|
|
35196
35322
|
"InstallTrigger",
|
|
35197
35323
|
"InstallTriggerImpl",
|
|
35198
35324
|
"Instance",
|
|
35325
|
+
"Instant",
|
|
35199
35326
|
"Int16Array",
|
|
35200
35327
|
"Int32Array",
|
|
35201
35328
|
"Int8Array",
|
|
35329
|
+
"IntegrityViolationReportBody",
|
|
35202
35330
|
"Intent",
|
|
35331
|
+
"InterestEvent",
|
|
35203
35332
|
"InternalError",
|
|
35204
35333
|
"IntersectionObserver",
|
|
35205
35334
|
"IntersectionObserverEntry",
|
|
@@ -35249,6 +35378,7 @@ var domprops = [
|
|
|
35249
35378
|
"LUMINANCE",
|
|
35250
35379
|
"LUMINANCE_ALPHA",
|
|
35251
35380
|
"LanguageCode",
|
|
35381
|
+
"LanguageDetector",
|
|
35252
35382
|
"LargestContentfulPaint",
|
|
35253
35383
|
"LaunchParams",
|
|
35254
35384
|
"LaunchQueue",
|
|
@@ -35578,6 +35708,7 @@ var domprops = [
|
|
|
35578
35708
|
"NavigationCurrentEntryChangeEvent",
|
|
35579
35709
|
"NavigationDestination",
|
|
35580
35710
|
"NavigationHistoryEntry",
|
|
35711
|
+
"NavigationPrecommitController",
|
|
35581
35712
|
"NavigationPreloadManager",
|
|
35582
35713
|
"NavigationTransition",
|
|
35583
35714
|
"Navigator",
|
|
@@ -35595,6 +35726,7 @@ var domprops = [
|
|
|
35595
35726
|
"Notation",
|
|
35596
35727
|
"Notification",
|
|
35597
35728
|
"NotifyPaintEvent",
|
|
35729
|
+
"Now",
|
|
35598
35730
|
"Number",
|
|
35599
35731
|
"NumberFormat",
|
|
35600
35732
|
"OBJECT_TYPE",
|
|
@@ -35616,6 +35748,7 @@ var domprops = [
|
|
|
35616
35748
|
"OTPCredential",
|
|
35617
35749
|
"OUT_OF_MEMORY",
|
|
35618
35750
|
"Object",
|
|
35751
|
+
"Observable",
|
|
35619
35752
|
"OfflineAudioCompletionEvent",
|
|
35620
35753
|
"OfflineAudioContext",
|
|
35621
35754
|
"OfflineResourceList",
|
|
@@ -35717,6 +35850,11 @@ var domprops = [
|
|
|
35717
35850
|
"PhotoCapabilities",
|
|
35718
35851
|
"PictureInPictureEvent",
|
|
35719
35852
|
"PictureInPictureWindow",
|
|
35853
|
+
"PlainDate",
|
|
35854
|
+
"PlainDateTime",
|
|
35855
|
+
"PlainMonthDay",
|
|
35856
|
+
"PlainTime",
|
|
35857
|
+
"PlainYearMonth",
|
|
35720
35858
|
"PlatformArch",
|
|
35721
35859
|
"PlatformInfo",
|
|
35722
35860
|
"PlatformNaclArch",
|
|
@@ -35757,6 +35895,7 @@ var domprops = [
|
|
|
35757
35895
|
"QUOTA_ERR",
|
|
35758
35896
|
"QUOTA_EXCEEDED_ERR",
|
|
35759
35897
|
"QueryInterface",
|
|
35898
|
+
"QuotaExceededError",
|
|
35760
35899
|
"R11F_G11F_B10F",
|
|
35761
35900
|
"R16F",
|
|
35762
35901
|
"R16I",
|
|
@@ -35897,6 +36036,7 @@ var domprops = [
|
|
|
35897
36036
|
"ResizeObserverEntry",
|
|
35898
36037
|
"ResizeObserverSize",
|
|
35899
36038
|
"Response",
|
|
36039
|
+
"RestrictionTarget",
|
|
35900
36040
|
"RuntimeError",
|
|
35901
36041
|
"SAMPLER_2D",
|
|
35902
36042
|
"SAMPLER_2D_ARRAY",
|
|
@@ -36303,6 +36443,11 @@ var domprops = [
|
|
|
36303
36443
|
"ShadowRoot",
|
|
36304
36444
|
"SharedArrayBuffer",
|
|
36305
36445
|
"SharedStorage",
|
|
36446
|
+
"SharedStorageAppendMethod",
|
|
36447
|
+
"SharedStorageClearMethod",
|
|
36448
|
+
"SharedStorageDeleteMethod",
|
|
36449
|
+
"SharedStorageModifierMethod",
|
|
36450
|
+
"SharedStorageSetMethod",
|
|
36306
36451
|
"SharedStorageWorklet",
|
|
36307
36452
|
"SharedWorker",
|
|
36308
36453
|
"SharingState",
|
|
@@ -36310,6 +36455,12 @@ var domprops = [
|
|
|
36310
36455
|
"SnapEvent",
|
|
36311
36456
|
"SourceBuffer",
|
|
36312
36457
|
"SourceBufferList",
|
|
36458
|
+
"SpeechGrammar",
|
|
36459
|
+
"SpeechGrammarList",
|
|
36460
|
+
"SpeechRecognition",
|
|
36461
|
+
"SpeechRecognitionErrorEvent",
|
|
36462
|
+
"SpeechRecognitionEvent",
|
|
36463
|
+
"SpeechRecognitionPhrase",
|
|
36313
36464
|
"SpeechSynthesis",
|
|
36314
36465
|
"SpeechSynthesisErrorEvent",
|
|
36315
36466
|
"SpeechSynthesisEvent",
|
|
@@ -36330,7 +36481,12 @@ var domprops = [
|
|
|
36330
36481
|
"StyleSheet",
|
|
36331
36482
|
"StyleSheetList",
|
|
36332
36483
|
"SubmitEvent",
|
|
36484
|
+
"Subscriber",
|
|
36333
36485
|
"SubtleCrypto",
|
|
36486
|
+
"Summarizer",
|
|
36487
|
+
"SuppressedError",
|
|
36488
|
+
"SuspendError",
|
|
36489
|
+
"Suspending",
|
|
36334
36490
|
"Symbol",
|
|
36335
36491
|
"SyncManager",
|
|
36336
36492
|
"SyntaxError",
|
|
@@ -36441,6 +36597,7 @@ var domprops = [
|
|
|
36441
36597
|
"TaskController",
|
|
36442
36598
|
"TaskPriorityChangeEvent",
|
|
36443
36599
|
"TaskSignal",
|
|
36600
|
+
"Temporal",
|
|
36444
36601
|
"Text",
|
|
36445
36602
|
"TextDecoder",
|
|
36446
36603
|
"TextDecoderStream",
|
|
@@ -36465,6 +36622,7 @@ var domprops = [
|
|
|
36465
36622
|
"TransformStream",
|
|
36466
36623
|
"TransformStreamDefaultController",
|
|
36467
36624
|
"TransitionEvent",
|
|
36625
|
+
"Translator",
|
|
36468
36626
|
"TreeWalker",
|
|
36469
36627
|
"TrustedHTML",
|
|
36470
36628
|
"TrustedScript",
|
|
@@ -36609,6 +36767,7 @@ var domprops = [
|
|
|
36609
36767
|
"ViewTransition",
|
|
36610
36768
|
"ViewTransitionTypeSet",
|
|
36611
36769
|
"ViewType",
|
|
36770
|
+
"Viewport",
|
|
36612
36771
|
"VirtualKeyboard",
|
|
36613
36772
|
"VirtualKeyboardGeometryChangeEvent",
|
|
36614
36773
|
"VisibilityStateEntry",
|
|
@@ -36818,6 +36977,7 @@ var domprops = [
|
|
|
36818
36977
|
"XRWebGLLayer",
|
|
36819
36978
|
"XSLTProcessor",
|
|
36820
36979
|
"ZERO",
|
|
36980
|
+
"ZonedDateTime",
|
|
36821
36981
|
"ZoomSettings",
|
|
36822
36982
|
"ZoomSettingsMode",
|
|
36823
36983
|
"ZoomSettingsScope",
|
|
@@ -36867,6 +37027,7 @@ var domprops = [
|
|
|
36867
37027
|
"activeSourceCount",
|
|
36868
37028
|
"activeTexture",
|
|
36869
37029
|
"activeVRDisplays",
|
|
37030
|
+
"activeViewTransition",
|
|
36870
37031
|
"activityLog",
|
|
36871
37032
|
"actualBoundingBoxAscent",
|
|
36872
37033
|
"actualBoundingBoxDescent",
|
|
@@ -36874,6 +37035,7 @@ var domprops = [
|
|
|
36874
37035
|
"actualBoundingBoxRight",
|
|
36875
37036
|
"adAuctionComponents",
|
|
36876
37037
|
"adAuctionHeaders",
|
|
37038
|
+
"adapterInfo",
|
|
36877
37039
|
"add",
|
|
36878
37040
|
"addAll",
|
|
36879
37041
|
"addBehavior",
|
|
@@ -36899,6 +37061,7 @@ var domprops = [
|
|
|
36899
37061
|
"addSearchEngine",
|
|
36900
37062
|
"addSourceBuffer",
|
|
36901
37063
|
"addStream",
|
|
37064
|
+
"addTeardown",
|
|
36902
37065
|
"addTextTrack",
|
|
36903
37066
|
"addTrack",
|
|
36904
37067
|
"addTransceiver",
|
|
@@ -36913,6 +37076,7 @@ var domprops = [
|
|
|
36913
37076
|
"addressModeU",
|
|
36914
37077
|
"addressModeV",
|
|
36915
37078
|
"addressModeW",
|
|
37079
|
+
"adopt",
|
|
36916
37080
|
"adoptNode",
|
|
36917
37081
|
"adoptedCallback",
|
|
36918
37082
|
"adoptedStyleSheets",
|
|
@@ -36960,8 +37124,10 @@ var domprops = [
|
|
|
36960
37124
|
"amplitude",
|
|
36961
37125
|
"ancestorOrigins",
|
|
36962
37126
|
"anchor",
|
|
37127
|
+
"anchorName",
|
|
36963
37128
|
"anchorNode",
|
|
36964
37129
|
"anchorOffset",
|
|
37130
|
+
"anchorScope",
|
|
36965
37131
|
"anchorSpace",
|
|
36966
37132
|
"anchors",
|
|
36967
37133
|
"and",
|
|
@@ -36997,6 +37163,7 @@ var domprops = [
|
|
|
36997
37163
|
"animationTimingFunction",
|
|
36998
37164
|
"animationsPaused",
|
|
36999
37165
|
"anniversary",
|
|
37166
|
+
"annotation",
|
|
37000
37167
|
"antialias",
|
|
37001
37168
|
"anticipatedRemoval",
|
|
37002
37169
|
"any",
|
|
@@ -37031,6 +37198,7 @@ var domprops = [
|
|
|
37031
37198
|
"archive",
|
|
37032
37199
|
"areas",
|
|
37033
37200
|
"arguments",
|
|
37201
|
+
"ariaActiveDescendantElement",
|
|
37034
37202
|
"ariaAtomic",
|
|
37035
37203
|
"ariaAutoComplete",
|
|
37036
37204
|
"ariaBrailleLabel",
|
|
@@ -37041,21 +37209,29 @@ var domprops = [
|
|
|
37041
37209
|
"ariaColIndex",
|
|
37042
37210
|
"ariaColIndexText",
|
|
37043
37211
|
"ariaColSpan",
|
|
37212
|
+
"ariaControlsElements",
|
|
37044
37213
|
"ariaCurrent",
|
|
37214
|
+
"ariaDescribedByElements",
|
|
37045
37215
|
"ariaDescription",
|
|
37216
|
+
"ariaDetailsElements",
|
|
37046
37217
|
"ariaDisabled",
|
|
37218
|
+
"ariaErrorMessageElements",
|
|
37047
37219
|
"ariaExpanded",
|
|
37220
|
+
"ariaFlowToElements",
|
|
37048
37221
|
"ariaHasPopup",
|
|
37049
37222
|
"ariaHidden",
|
|
37050
37223
|
"ariaInvalid",
|
|
37051
37224
|
"ariaKeyShortcuts",
|
|
37052
37225
|
"ariaLabel",
|
|
37226
|
+
"ariaLabelledByElements",
|
|
37053
37227
|
"ariaLevel",
|
|
37054
37228
|
"ariaLive",
|
|
37055
37229
|
"ariaModal",
|
|
37056
37230
|
"ariaMultiLine",
|
|
37057
37231
|
"ariaMultiSelectable",
|
|
37232
|
+
"ariaNotify",
|
|
37058
37233
|
"ariaOrientation",
|
|
37234
|
+
"ariaOwnsElements",
|
|
37059
37235
|
"ariaPlaceholder",
|
|
37060
37236
|
"ariaPosInSet",
|
|
37061
37237
|
"ariaPressed",
|
|
@@ -37198,6 +37374,7 @@ var domprops = [
|
|
|
37198
37374
|
"baseline-source",
|
|
37199
37375
|
"baselineShift",
|
|
37200
37376
|
"baselineSource",
|
|
37377
|
+
"batchUpdate",
|
|
37201
37378
|
"battery",
|
|
37202
37379
|
"bday",
|
|
37203
37380
|
"before",
|
|
@@ -37250,6 +37427,7 @@ var domprops = [
|
|
|
37250
37427
|
"blockDirection",
|
|
37251
37428
|
"blockSize",
|
|
37252
37429
|
"blockedURI",
|
|
37430
|
+
"blockedURL",
|
|
37253
37431
|
"blocking",
|
|
37254
37432
|
"blockingDuration",
|
|
37255
37433
|
"blue",
|
|
@@ -37260,6 +37438,7 @@ var domprops = [
|
|
|
37260
37438
|
"bold",
|
|
37261
37439
|
"bookmarks",
|
|
37262
37440
|
"booleanValue",
|
|
37441
|
+
"boost",
|
|
37263
37442
|
"border",
|
|
37264
37443
|
"border-block",
|
|
37265
37444
|
"border-block-color",
|
|
@@ -37525,6 +37704,7 @@ var domprops = [
|
|
|
37525
37704
|
"characterData",
|
|
37526
37705
|
"characterDataOldValue",
|
|
37527
37706
|
"characterSet",
|
|
37707
|
+
"characterVariant",
|
|
37528
37708
|
"characteristic",
|
|
37529
37709
|
"charging",
|
|
37530
37710
|
"chargingTime",
|
|
@@ -37611,6 +37791,7 @@ var domprops = [
|
|
|
37611
37791
|
"closeCode",
|
|
37612
37792
|
"closePath",
|
|
37613
37793
|
"closed",
|
|
37794
|
+
"closedBy",
|
|
37614
37795
|
"closest",
|
|
37615
37796
|
"clz",
|
|
37616
37797
|
"clz32",
|
|
@@ -37668,11 +37849,13 @@ var domprops = [
|
|
|
37668
37849
|
"columnWidth",
|
|
37669
37850
|
"columns",
|
|
37670
37851
|
"command",
|
|
37852
|
+
"commandForElement",
|
|
37671
37853
|
"commands",
|
|
37672
37854
|
"commit",
|
|
37673
37855
|
"commitLoadTime",
|
|
37674
37856
|
"commitPreferences",
|
|
37675
37857
|
"commitStyles",
|
|
37858
|
+
"committed",
|
|
37676
37859
|
"commonAncestorContainer",
|
|
37677
37860
|
"compact",
|
|
37678
37861
|
"compare",
|
|
@@ -37708,6 +37891,7 @@ var domprops = [
|
|
|
37708
37891
|
"coneOuterAngle",
|
|
37709
37892
|
"coneOuterGain",
|
|
37710
37893
|
"config",
|
|
37894
|
+
"configURL",
|
|
37711
37895
|
"configurable",
|
|
37712
37896
|
"configuration",
|
|
37713
37897
|
"configurationName",
|
|
@@ -37726,6 +37910,7 @@ var domprops = [
|
|
|
37726
37910
|
"connectStart",
|
|
37727
37911
|
"connected",
|
|
37728
37912
|
"connectedCallback",
|
|
37913
|
+
"connectedMoveCallback",
|
|
37729
37914
|
"connection",
|
|
37730
37915
|
"connectionInfo",
|
|
37731
37916
|
"connectionList",
|
|
@@ -37766,6 +37951,7 @@ var domprops = [
|
|
|
37766
37951
|
"contentBoxSize",
|
|
37767
37952
|
"contentDocument",
|
|
37768
37953
|
"contentEditable",
|
|
37954
|
+
"contentEncoding",
|
|
37769
37955
|
"contentHint",
|
|
37770
37956
|
"contentOverflow",
|
|
37771
37957
|
"contentRect",
|
|
@@ -38046,6 +38232,7 @@ var domprops = [
|
|
|
38046
38232
|
"decodedBodySize",
|
|
38047
38233
|
"decoding",
|
|
38048
38234
|
"decodingInfo",
|
|
38235
|
+
"decreaseZoomLevel",
|
|
38049
38236
|
"decrypt",
|
|
38050
38237
|
"default",
|
|
38051
38238
|
"defaultCharset",
|
|
@@ -38116,6 +38303,7 @@ var domprops = [
|
|
|
38116
38303
|
"deprecatedReplaceInURN",
|
|
38117
38304
|
"deprecatedRunAdAuctionEnforcesKAnonymity",
|
|
38118
38305
|
"deprecatedURNToURL",
|
|
38306
|
+
"depthActive",
|
|
38119
38307
|
"depthBias",
|
|
38120
38308
|
"depthBiasClamp",
|
|
38121
38309
|
"depthBiasSlopeScale",
|
|
@@ -38135,6 +38323,7 @@ var domprops = [
|
|
|
38135
38323
|
"depthStencilAttachment",
|
|
38136
38324
|
"depthStencilFormat",
|
|
38137
38325
|
"depthStoreOp",
|
|
38326
|
+
"depthType",
|
|
38138
38327
|
"depthUsage",
|
|
38139
38328
|
"depthWriteEnabled",
|
|
38140
38329
|
"deref",
|
|
@@ -38163,6 +38352,7 @@ var domprops = [
|
|
|
38163
38352
|
"deviceMemory",
|
|
38164
38353
|
"devicePixelContentBoxSize",
|
|
38165
38354
|
"devicePixelRatio",
|
|
38355
|
+
"devicePosture",
|
|
38166
38356
|
"deviceProtocol",
|
|
38167
38357
|
"deviceSubclass",
|
|
38168
38358
|
"deviceVersionMajor",
|
|
@@ -38202,6 +38392,8 @@ var domprops = [
|
|
|
38202
38392
|
"displayName",
|
|
38203
38393
|
"displayWidth",
|
|
38204
38394
|
"dispose",
|
|
38395
|
+
"disposeAsync",
|
|
38396
|
+
"disposed",
|
|
38205
38397
|
"disposition",
|
|
38206
38398
|
"distanceModel",
|
|
38207
38399
|
"div",
|
|
@@ -38223,6 +38415,7 @@ var domprops = [
|
|
|
38223
38415
|
"documentOrigins",
|
|
38224
38416
|
"documentPictureInPicture",
|
|
38225
38417
|
"documentURI",
|
|
38418
|
+
"documentURL",
|
|
38226
38419
|
"documentUrl",
|
|
38227
38420
|
"documentUrls",
|
|
38228
38421
|
"dolphin",
|
|
@@ -38409,7 +38602,9 @@ var domprops = [
|
|
|
38409
38602
|
"expandEntityReferences",
|
|
38410
38603
|
"expando",
|
|
38411
38604
|
"expansion",
|
|
38605
|
+
"expectedContextLanguages",
|
|
38412
38606
|
"expectedImprovement",
|
|
38607
|
+
"expectedInputLanguages",
|
|
38413
38608
|
"experiments",
|
|
38414
38609
|
"expiration",
|
|
38415
38610
|
"expirationTime",
|
|
@@ -38452,6 +38647,7 @@ var domprops = [
|
|
|
38452
38647
|
"fence",
|
|
38453
38648
|
"fenceSync",
|
|
38454
38649
|
"fetch",
|
|
38650
|
+
"fetchLater",
|
|
38455
38651
|
"fetchPriority",
|
|
38456
38652
|
"fetchStart",
|
|
38457
38653
|
"fftSize",
|
|
@@ -38483,6 +38679,7 @@ var domprops = [
|
|
|
38483
38679
|
"filterResY",
|
|
38484
38680
|
"filterUnits",
|
|
38485
38681
|
"filters",
|
|
38682
|
+
"finalResponseHeadersStart",
|
|
38486
38683
|
"finally",
|
|
38487
38684
|
"find",
|
|
38488
38685
|
"findIndex",
|
|
@@ -38496,6 +38693,7 @@ var domprops = [
|
|
|
38496
38693
|
"finished",
|
|
38497
38694
|
"fireEvent",
|
|
38498
38695
|
"firesTouchEvents",
|
|
38696
|
+
"first",
|
|
38499
38697
|
"firstChild",
|
|
38500
38698
|
"firstElementChild",
|
|
38501
38699
|
"firstInterimResponseStart",
|
|
@@ -38520,6 +38718,7 @@ var domprops = [
|
|
|
38520
38718
|
"flexGrow",
|
|
38521
38719
|
"flexShrink",
|
|
38522
38720
|
"flexWrap",
|
|
38721
|
+
"flip",
|
|
38523
38722
|
"flipX",
|
|
38524
38723
|
"flipY",
|
|
38525
38724
|
"float",
|
|
@@ -38581,6 +38780,7 @@ var domprops = [
|
|
|
38581
38780
|
"fontVariantAlternates",
|
|
38582
38781
|
"fontVariantCaps",
|
|
38583
38782
|
"fontVariantEastAsian",
|
|
38783
|
+
"fontVariantEmoji",
|
|
38584
38784
|
"fontVariantLigatures",
|
|
38585
38785
|
"fontVariantNumeric",
|
|
38586
38786
|
"fontVariantPosition",
|
|
@@ -38610,6 +38810,7 @@ var domprops = [
|
|
|
38610
38810
|
"formatToParts",
|
|
38611
38811
|
"forms",
|
|
38612
38812
|
"forward",
|
|
38813
|
+
"forwardWheel",
|
|
38613
38814
|
"forwardX",
|
|
38614
38815
|
"forwardY",
|
|
38615
38816
|
"forwardZ",
|
|
@@ -38686,6 +38887,7 @@ var domprops = [
|
|
|
38686
38887
|
"getAdjacentText",
|
|
38687
38888
|
"getAll",
|
|
38688
38889
|
"getAllKeys",
|
|
38890
|
+
"getAllRecords",
|
|
38689
38891
|
"getAllResponseHeaders",
|
|
38690
38892
|
"getAllowlistForFeature",
|
|
38691
38893
|
"getAnimations",
|
|
@@ -38734,11 +38936,13 @@ var domprops = [
|
|
|
38734
38936
|
"getCharNumAtPosition",
|
|
38735
38937
|
"getCharacteristic",
|
|
38736
38938
|
"getCharacteristics",
|
|
38939
|
+
"getClientCapabilities",
|
|
38737
38940
|
"getClientExtensionResults",
|
|
38738
38941
|
"getClientRect",
|
|
38739
38942
|
"getClientRects",
|
|
38740
38943
|
"getCoalescedEvents",
|
|
38741
38944
|
"getCompilationInfo",
|
|
38945
|
+
"getComposedRanges",
|
|
38742
38946
|
"getCompositionAlternatives",
|
|
38743
38947
|
"getComputedStyle",
|
|
38744
38948
|
"getComputedTextLength",
|
|
@@ -38862,6 +39066,8 @@ var domprops = [
|
|
|
38862
39066
|
"getNotifier",
|
|
38863
39067
|
"getNumberOfChars",
|
|
38864
39068
|
"getOffsetReferenceSpace",
|
|
39069
|
+
"getOrInsert",
|
|
39070
|
+
"getOrInsertComputed",
|
|
38865
39071
|
"getOutputTimestamp",
|
|
38866
39072
|
"getOverrideHistoryNavigationMode",
|
|
38867
39073
|
"getOverrideStyle",
|
|
@@ -38873,7 +39079,9 @@ var domprops = [
|
|
|
38873
39079
|
"getParameter",
|
|
38874
39080
|
"getParameters",
|
|
38875
39081
|
"getParent",
|
|
39082
|
+
"getPathData",
|
|
38876
39083
|
"getPathSegAtLength",
|
|
39084
|
+
"getPathSegmentAtLength",
|
|
38877
39085
|
"getPermissionWarningsByManifest",
|
|
38878
39086
|
"getPhotoCapabilities",
|
|
38879
39087
|
"getPhotoSettings",
|
|
@@ -38955,6 +39163,7 @@ var domprops = [
|
|
|
38955
39163
|
"getSupportedConstraints",
|
|
38956
39164
|
"getSupportedExtensions",
|
|
38957
39165
|
"getSupportedFormats",
|
|
39166
|
+
"getSupportedZoomLevels",
|
|
38958
39167
|
"getSyncParameter",
|
|
38959
39168
|
"getSynchronizationSources",
|
|
38960
39169
|
"getTags",
|
|
@@ -39127,6 +39336,7 @@ var domprops = [
|
|
|
39127
39336
|
"highWaterMark",
|
|
39128
39337
|
"highlight",
|
|
39129
39338
|
"highlights",
|
|
39339
|
+
"highlightsFromPoint",
|
|
39130
39340
|
"hint",
|
|
39131
39341
|
"hints",
|
|
39132
39342
|
"history",
|
|
@@ -39148,6 +39358,7 @@ var domprops = [
|
|
|
39148
39358
|
"hwTimestamp",
|
|
39149
39359
|
"hyphenate-character",
|
|
39150
39360
|
"hyphenateCharacter",
|
|
39361
|
+
"hyphenateLimitChars",
|
|
39151
39362
|
"hyphens",
|
|
39152
39363
|
"hypot",
|
|
39153
39364
|
"i18n",
|
|
@@ -39201,6 +39412,7 @@ var domprops = [
|
|
|
39201
39412
|
"incomingHighWaterMark",
|
|
39202
39413
|
"incomingMaxAge",
|
|
39203
39414
|
"incomingUnidirectionalStreams",
|
|
39415
|
+
"increaseZoomLevel",
|
|
39204
39416
|
"incremental",
|
|
39205
39417
|
"indeterminate",
|
|
39206
39418
|
"index",
|
|
@@ -39278,6 +39490,7 @@ var domprops = [
|
|
|
39278
39490
|
"inputEncoding",
|
|
39279
39491
|
"inputMethod",
|
|
39280
39492
|
"inputMode",
|
|
39493
|
+
"inputQuota",
|
|
39281
39494
|
"inputSource",
|
|
39282
39495
|
"inputSources",
|
|
39283
39496
|
"inputType",
|
|
@@ -39307,6 +39520,7 @@ var domprops = [
|
|
|
39307
39520
|
"insetInline",
|
|
39308
39521
|
"insetInlineEnd",
|
|
39309
39522
|
"insetInlineStart",
|
|
39523
|
+
"inspect",
|
|
39310
39524
|
"install",
|
|
39311
39525
|
"installing",
|
|
39312
39526
|
"instanceRoot",
|
|
@@ -39317,9 +39531,11 @@ var domprops = [
|
|
|
39317
39531
|
"int32",
|
|
39318
39532
|
"int8",
|
|
39319
39533
|
"integrity",
|
|
39534
|
+
"interactionCount",
|
|
39320
39535
|
"interactionId",
|
|
39321
39536
|
"interactionMode",
|
|
39322
39537
|
"intercept",
|
|
39538
|
+
"interestForElement",
|
|
39323
39539
|
"interfaceClass",
|
|
39324
39540
|
"interfaceName",
|
|
39325
39541
|
"interfaceNumber",
|
|
@@ -39369,6 +39585,7 @@ var domprops = [
|
|
|
39369
39585
|
"isEnabled",
|
|
39370
39586
|
"isEqual",
|
|
39371
39587
|
"isEqualNode",
|
|
39588
|
+
"isError",
|
|
39372
39589
|
"isExtended",
|
|
39373
39590
|
"isExtensible",
|
|
39374
39591
|
"isExternalCTAP2SecurityKeySupported",
|
|
@@ -39492,6 +39709,7 @@ var domprops = [
|
|
|
39492
39709
|
"language",
|
|
39493
39710
|
"languages",
|
|
39494
39711
|
"largeArcFlag",
|
|
39712
|
+
"last",
|
|
39495
39713
|
"lastChild",
|
|
39496
39714
|
"lastElementChild",
|
|
39497
39715
|
"lastError",
|
|
@@ -39724,6 +39942,7 @@ var domprops = [
|
|
|
39724
39942
|
"math-depth",
|
|
39725
39943
|
"math-style",
|
|
39726
39944
|
"mathDepth",
|
|
39945
|
+
"mathShift",
|
|
39727
39946
|
"mathStyle",
|
|
39728
39947
|
"matrix",
|
|
39729
39948
|
"matrixTransform",
|
|
@@ -39786,6 +40005,7 @@ var domprops = [
|
|
|
39786
40005
|
"maxWidth",
|
|
39787
40006
|
"maximumLatency",
|
|
39788
40007
|
"measure",
|
|
40008
|
+
"measureInputUsage",
|
|
39789
40009
|
"measureText",
|
|
39790
40010
|
"media",
|
|
39791
40011
|
"mediaCapabilities",
|
|
@@ -39847,6 +40067,7 @@ var domprops = [
|
|
|
39847
40067
|
"module",
|
|
39848
40068
|
"mount",
|
|
39849
40069
|
"move",
|
|
40070
|
+
"moveBefore",
|
|
39850
40071
|
"moveBy",
|
|
39851
40072
|
"moveEnd",
|
|
39852
40073
|
"moveFirst",
|
|
@@ -40190,6 +40411,7 @@ var domprops = [
|
|
|
40190
40411
|
"objectStoreNames",
|
|
40191
40412
|
"objectType",
|
|
40192
40413
|
"observe",
|
|
40414
|
+
"observedAttributes",
|
|
40193
40415
|
"occlusionQuerySet",
|
|
40194
40416
|
"of",
|
|
40195
40417
|
"off",
|
|
@@ -40320,6 +40542,7 @@ var domprops = [
|
|
|
40320
40542
|
"onclick",
|
|
40321
40543
|
"onclose",
|
|
40322
40544
|
"onclosing",
|
|
40545
|
+
"oncommand",
|
|
40323
40546
|
"oncompassneedscalibration",
|
|
40324
40547
|
"oncomplete",
|
|
40325
40548
|
"oncompositionend",
|
|
@@ -40357,6 +40580,7 @@ var domprops = [
|
|
|
40357
40580
|
"ondisplay",
|
|
40358
40581
|
"ondispose",
|
|
40359
40582
|
"ondownloading",
|
|
40583
|
+
"ondownloadprogress",
|
|
40360
40584
|
"ondrag",
|
|
40361
40585
|
"ondragend",
|
|
40362
40586
|
"ondragenter",
|
|
@@ -40633,6 +40857,7 @@ var domprops = [
|
|
|
40633
40857
|
"onwebkittransitionend",
|
|
40634
40858
|
"onwheel",
|
|
40635
40859
|
"onzoom",
|
|
40860
|
+
"onzoomlevelchange",
|
|
40636
40861
|
"opacity",
|
|
40637
40862
|
"open",
|
|
40638
40863
|
"openCursor",
|
|
@@ -40668,6 +40893,7 @@ var domprops = [
|
|
|
40668
40893
|
"originAgentCluster",
|
|
40669
40894
|
"originalPolicy",
|
|
40670
40895
|
"originalTarget",
|
|
40896
|
+
"ornaments",
|
|
40671
40897
|
"orphans",
|
|
40672
40898
|
"os",
|
|
40673
40899
|
"oscpu",
|
|
@@ -40688,8 +40914,10 @@ var domprops = [
|
|
|
40688
40914
|
"outlineWidth",
|
|
40689
40915
|
"outputBuffer",
|
|
40690
40916
|
"outputChannelCount",
|
|
40917
|
+
"outputLanguage",
|
|
40691
40918
|
"outputLatency",
|
|
40692
40919
|
"outputs",
|
|
40920
|
+
"overallProgress",
|
|
40693
40921
|
"overflow",
|
|
40694
40922
|
"overflow-anchor",
|
|
40695
40923
|
"overflow-block",
|
|
@@ -40778,6 +41006,7 @@ var domprops = [
|
|
|
40778
41006
|
"paint-order",
|
|
40779
41007
|
"paintOrder",
|
|
40780
41008
|
"paintRequests",
|
|
41009
|
+
"paintTime",
|
|
40781
41010
|
"paintType",
|
|
40782
41011
|
"paintWorklet",
|
|
40783
41012
|
"palette",
|
|
@@ -40819,6 +41048,7 @@ var domprops = [
|
|
|
40819
41048
|
"patternUnits",
|
|
40820
41049
|
"pause",
|
|
40821
41050
|
"pauseAnimations",
|
|
41051
|
+
"pauseDepthSensing",
|
|
40822
41052
|
"pauseDuration",
|
|
40823
41053
|
"pauseOnExit",
|
|
40824
41054
|
"pauseProfilers",
|
|
@@ -40851,6 +41081,8 @@ var domprops = [
|
|
|
40851
41081
|
"phoneticFamilyName",
|
|
40852
41082
|
"phoneticGivenName",
|
|
40853
41083
|
"photo",
|
|
41084
|
+
"phrase",
|
|
41085
|
+
"phrases",
|
|
40854
41086
|
"pictureInPictureChild",
|
|
40855
41087
|
"pictureInPictureElement",
|
|
40856
41088
|
"pictureInPictureEnabled",
|
|
@@ -40861,6 +41093,7 @@ var domprops = [
|
|
|
40861
41093
|
"pitch",
|
|
40862
41094
|
"pixelBottom",
|
|
40863
41095
|
"pixelDepth",
|
|
41096
|
+
"pixelFormat",
|
|
40864
41097
|
"pixelHeight",
|
|
40865
41098
|
"pixelLeft",
|
|
40866
41099
|
"pixelRight",
|
|
@@ -40931,6 +41164,9 @@ var domprops = [
|
|
|
40931
41164
|
"positionAlign",
|
|
40932
41165
|
"positionAnchor",
|
|
40933
41166
|
"positionArea",
|
|
41167
|
+
"positionTry",
|
|
41168
|
+
"positionTryFallbacks",
|
|
41169
|
+
"positionVisibility",
|
|
40934
41170
|
"positionX",
|
|
40935
41171
|
"positionY",
|
|
40936
41172
|
"positionZ",
|
|
@@ -40957,6 +41193,7 @@ var domprops = [
|
|
|
40957
41193
|
"presentation",
|
|
40958
41194
|
"presentationArea",
|
|
40959
41195
|
"presentationStyle",
|
|
41196
|
+
"presentationTime",
|
|
40960
41197
|
"preserveAlpha",
|
|
40961
41198
|
"preserveAspectRatio",
|
|
40962
41199
|
"preserveAspectRatioString",
|
|
@@ -40995,6 +41232,7 @@ var domprops = [
|
|
|
40995
41232
|
"probeSpace",
|
|
40996
41233
|
"process",
|
|
40997
41234
|
"processIceMessage",
|
|
41235
|
+
"processLocally",
|
|
40998
41236
|
"processingEnd",
|
|
40999
41237
|
"processingStart",
|
|
41000
41238
|
"processorOptions",
|
|
@@ -41007,6 +41245,7 @@ var domprops = [
|
|
|
41007
41245
|
"profiles",
|
|
41008
41246
|
"projectionMatrix",
|
|
41009
41247
|
"promise",
|
|
41248
|
+
"promising",
|
|
41010
41249
|
"prompt",
|
|
41011
41250
|
"properties",
|
|
41012
41251
|
"propertyIsEnumerable",
|
|
@@ -41051,6 +41290,7 @@ var domprops = [
|
|
|
41051
41290
|
"querySet",
|
|
41052
41291
|
"queue",
|
|
41053
41292
|
"queueMicrotask",
|
|
41293
|
+
"quota",
|
|
41054
41294
|
"quote",
|
|
41055
41295
|
"quotes",
|
|
41056
41296
|
"r",
|
|
@@ -41229,6 +41469,7 @@ var domprops = [
|
|
|
41229
41469
|
"reportError",
|
|
41230
41470
|
"reportEvent",
|
|
41231
41471
|
"reportId",
|
|
41472
|
+
"reportOnly",
|
|
41232
41473
|
"reportValidity",
|
|
41233
41474
|
"request",
|
|
41234
41475
|
"requestAdapter",
|
|
@@ -41264,6 +41505,7 @@ var domprops = [
|
|
|
41264
41505
|
"requestVideoFrameCallback",
|
|
41265
41506
|
"requestViewportScale",
|
|
41266
41507
|
"requestWindow",
|
|
41508
|
+
"requested",
|
|
41267
41509
|
"requestingWindow",
|
|
41268
41510
|
"requireInteraction",
|
|
41269
41511
|
"required",
|
|
@@ -41274,6 +41516,7 @@ var domprops = [
|
|
|
41274
41516
|
"resetLatency",
|
|
41275
41517
|
"resetPose",
|
|
41276
41518
|
"resetTransform",
|
|
41519
|
+
"resetZoomLevel",
|
|
41277
41520
|
"resizable",
|
|
41278
41521
|
"resize",
|
|
41279
41522
|
"resizeBy",
|
|
@@ -41298,14 +41541,17 @@ var domprops = [
|
|
|
41298
41541
|
"restartAfterDelay",
|
|
41299
41542
|
"restartIce",
|
|
41300
41543
|
"restore",
|
|
41544
|
+
"restrictTo",
|
|
41301
41545
|
"result",
|
|
41302
41546
|
"resultIndex",
|
|
41303
41547
|
"resultType",
|
|
41304
41548
|
"results",
|
|
41305
41549
|
"resume",
|
|
41550
|
+
"resumeDepthSensing",
|
|
41306
41551
|
"resumeProfilers",
|
|
41307
41552
|
"resumeTransformFeedback",
|
|
41308
41553
|
"retry",
|
|
41554
|
+
"returnType",
|
|
41309
41555
|
"returnValue",
|
|
41310
41556
|
"rev",
|
|
41311
41557
|
"reverse",
|
|
@@ -41504,12 +41750,14 @@ var domprops = [
|
|
|
41504
41750
|
"searchParams",
|
|
41505
41751
|
"sectionRowIndex",
|
|
41506
41752
|
"secureConnectionStart",
|
|
41753
|
+
"securePaymentConfirmationAvailability",
|
|
41507
41754
|
"security",
|
|
41508
41755
|
"seed",
|
|
41509
41756
|
"seek",
|
|
41510
41757
|
"seekToNextFrame",
|
|
41511
41758
|
"seekable",
|
|
41512
41759
|
"seeking",
|
|
41760
|
+
"segments",
|
|
41513
41761
|
"select",
|
|
41514
41762
|
"selectAllChildren",
|
|
41515
41763
|
"selectAlternateInterface",
|
|
@@ -41644,6 +41892,7 @@ var domprops = [
|
|
|
41644
41892
|
"setPaint",
|
|
41645
41893
|
"setParameter",
|
|
41646
41894
|
"setParameters",
|
|
41895
|
+
"setPathData",
|
|
41647
41896
|
"setPeriodicWave",
|
|
41648
41897
|
"setPipeline",
|
|
41649
41898
|
"setPointerCapture",
|
|
@@ -41742,6 +41991,7 @@ var domprops = [
|
|
|
41742
41991
|
"shapeOutside",
|
|
41743
41992
|
"shapeRendering",
|
|
41744
41993
|
"share",
|
|
41994
|
+
"sharedContext",
|
|
41745
41995
|
"sharedStorage",
|
|
41746
41996
|
"sharedStorageWritable",
|
|
41747
41997
|
"sheet",
|
|
@@ -41766,6 +42016,9 @@ var domprops = [
|
|
|
41766
42016
|
"sidebarAction",
|
|
41767
42017
|
"sign",
|
|
41768
42018
|
"signal",
|
|
42019
|
+
"signalAllAcceptedCredentials",
|
|
42020
|
+
"signalCurrentUserDetails",
|
|
42021
|
+
"signalUnknownCredential",
|
|
41769
42022
|
"signalingState",
|
|
41770
42023
|
"signature",
|
|
41771
42024
|
"silent",
|
|
@@ -41807,9 +42060,11 @@ var domprops = [
|
|
|
41807
42060
|
"sourceBuffers",
|
|
41808
42061
|
"sourceCapabilities",
|
|
41809
42062
|
"sourceCharPosition",
|
|
42063
|
+
"sourceElement",
|
|
41810
42064
|
"sourceFile",
|
|
41811
42065
|
"sourceFunctionName",
|
|
41812
42066
|
"sourceIndex",
|
|
42067
|
+
"sourceLanguage",
|
|
41813
42068
|
"sourceMap",
|
|
41814
42069
|
"sourceURL",
|
|
41815
42070
|
"sources",
|
|
@@ -41950,8 +42205,12 @@ var domprops = [
|
|
|
41950
42205
|
"styleSheet",
|
|
41951
42206
|
"styleSheetSets",
|
|
41952
42207
|
"styleSheets",
|
|
42208
|
+
"styleset",
|
|
42209
|
+
"stylistic",
|
|
41953
42210
|
"sub",
|
|
41954
42211
|
"subarray",
|
|
42212
|
+
"subgroupMaxSize",
|
|
42213
|
+
"subgroupMinSize",
|
|
41955
42214
|
"subject",
|
|
41956
42215
|
"submit",
|
|
41957
42216
|
"submitFrame",
|
|
@@ -41964,6 +42223,9 @@ var domprops = [
|
|
|
41964
42223
|
"subtree",
|
|
41965
42224
|
"suffix",
|
|
41966
42225
|
"suffixes",
|
|
42226
|
+
"sumPrecise",
|
|
42227
|
+
"summarize",
|
|
42228
|
+
"summarizeStreaming",
|
|
41967
42229
|
"summary",
|
|
41968
42230
|
"sup",
|
|
41969
42231
|
"supported",
|
|
@@ -41974,6 +42236,7 @@ var domprops = [
|
|
|
41974
42236
|
"supportsFiber",
|
|
41975
42237
|
"supportsSession",
|
|
41976
42238
|
"supportsText",
|
|
42239
|
+
"suppressed",
|
|
41977
42240
|
"surfaceScale",
|
|
41978
42241
|
"surroundContents",
|
|
41979
42242
|
"suspend",
|
|
@@ -41986,7 +42249,9 @@ var domprops = [
|
|
|
41986
42249
|
"svw",
|
|
41987
42250
|
"swapCache",
|
|
41988
42251
|
"swapNode",
|
|
42252
|
+
"swash",
|
|
41989
42253
|
"sweepFlag",
|
|
42254
|
+
"switchMap",
|
|
41990
42255
|
"symbols",
|
|
41991
42256
|
"symmetricDifference",
|
|
41992
42257
|
"sync",
|
|
@@ -42020,12 +42285,14 @@ var domprops = [
|
|
|
42020
42285
|
"take",
|
|
42021
42286
|
"takePhoto",
|
|
42022
42287
|
"takeRecords",
|
|
42288
|
+
"takeUntil",
|
|
42023
42289
|
"tan",
|
|
42024
42290
|
"tangentialPressure",
|
|
42025
42291
|
"tanh",
|
|
42026
42292
|
"target",
|
|
42027
42293
|
"targetAddressSpace",
|
|
42028
42294
|
"targetElement",
|
|
42295
|
+
"targetLanguage",
|
|
42029
42296
|
"targetRayMode",
|
|
42030
42297
|
"targetRaySpace",
|
|
42031
42298
|
"targetTouches",
|
|
@@ -42084,6 +42351,7 @@ var domprops = [
|
|
|
42084
42351
|
"textDecoration",
|
|
42085
42352
|
"textDecorationBlink",
|
|
42086
42353
|
"textDecorationColor",
|
|
42354
|
+
"textDecorationInset",
|
|
42087
42355
|
"textDecorationLine",
|
|
42088
42356
|
"textDecorationLineThrough",
|
|
42089
42357
|
"textDecorationNone",
|
|
@@ -42174,6 +42442,7 @@ var domprops = [
|
|
|
42174
42442
|
"toString",
|
|
42175
42443
|
"toStringTag",
|
|
42176
42444
|
"toSum",
|
|
42445
|
+
"toTemporalInstant",
|
|
42177
42446
|
"toTimeString",
|
|
42178
42447
|
"toUTCString",
|
|
42179
42448
|
"toUpperCase",
|
|
@@ -42245,6 +42514,7 @@ var domprops = [
|
|
|
42245
42514
|
"transitionTimingFunction",
|
|
42246
42515
|
"translate",
|
|
42247
42516
|
"translateSelf",
|
|
42517
|
+
"translateStreaming",
|
|
42248
42518
|
"translationX",
|
|
42249
42519
|
"translationY",
|
|
42250
42520
|
"transport",
|
|
@@ -42393,6 +42663,7 @@ var domprops = [
|
|
|
42393
42663
|
"usbVersionMajor",
|
|
42394
42664
|
"usbVersionMinor",
|
|
42395
42665
|
"usbVersionSubminor",
|
|
42666
|
+
"use",
|
|
42396
42667
|
"useCurrentView",
|
|
42397
42668
|
"useMap",
|
|
42398
42669
|
"useProgram",
|
|
@@ -42400,6 +42671,7 @@ var domprops = [
|
|
|
42400
42671
|
"user-select",
|
|
42401
42672
|
"userActivation",
|
|
42402
42673
|
"userAgent",
|
|
42674
|
+
"userAgentAllowsProtocol",
|
|
42403
42675
|
"userAgentData",
|
|
42404
42676
|
"userChoice",
|
|
42405
42677
|
"userHandle",
|
|
@@ -42483,6 +42755,8 @@ var domprops = [
|
|
|
42483
42755
|
"viewTarget",
|
|
42484
42756
|
"viewTargetString",
|
|
42485
42757
|
"viewTransition",
|
|
42758
|
+
"viewTransitionClass",
|
|
42759
|
+
"viewTransitionName",
|
|
42486
42760
|
"viewport",
|
|
42487
42761
|
"viewportAnchorX",
|
|
42488
42762
|
"viewportAnchorY",
|
|
@@ -42717,6 +42991,7 @@ var domprops = [
|
|
|
42717
42991
|
"wheelDelta",
|
|
42718
42992
|
"wheelDeltaX",
|
|
42719
42993
|
"wheelDeltaY",
|
|
42994
|
+
"when",
|
|
42720
42995
|
"whenDefined",
|
|
42721
42996
|
"which",
|
|
42722
42997
|
"white-space",
|
|
@@ -42744,6 +43019,10 @@ var domprops = [
|
|
|
42744
43019
|
"wordBreak",
|
|
42745
43020
|
"wordSpacing",
|
|
42746
43021
|
"wordWrap",
|
|
43022
|
+
"workerCacheLookupStart",
|
|
43023
|
+
"workerFinalSourceType",
|
|
43024
|
+
"workerMatchedSourceType",
|
|
43025
|
+
"workerRouterEvaluationStart",
|
|
42747
43026
|
"workerStart",
|
|
42748
43027
|
"worklet",
|
|
42749
43028
|
"wow64",
|
|
@@ -42788,6 +43067,7 @@ var domprops = [
|
|
|
42788
43067
|
"zIndex",
|
|
42789
43068
|
"zoom",
|
|
42790
43069
|
"zoomAndPan",
|
|
43070
|
+
"zoomLevel",
|
|
42791
43071
|
"zoomRectScreen",
|
|
42792
43072
|
];
|
|
42793
43073
|
|