" + "data": "
", + "raw": "
" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/27/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/27/output.json index c0184a036dc..6792c056136 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/27/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/27/output.json @@ -70,7 +70,8 @@ "end": 13, "ctxt": 0 }, - "data": "--" + "data": "--", + "raw": "--" }, { "type": "Comment", diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/29/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/29/output.json index 7e59d1a21e2..95274e7e050 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/29/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/29/output.json @@ -90,7 +90,8 @@ "end": 50, "ctxt": 0 }, - "data": "X" + "data": "X", + "raw": "X" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/30/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/30/output.json index f7a693ccb21..477bd531985 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/30/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/30/output.json @@ -204,7 +204,8 @@ "end": 56, "ctxt": 0 }, - "data": "X" + "data": "X", + "raw": "X" } ], "content": null, @@ -217,7 +218,8 @@ "end": 61, "ctxt": 0 }, - "data": "C" + "data": "C", + "raw": "C" } ], "content": null, @@ -241,7 +243,8 @@ "end": 65, "ctxt": 0 }, - "data": "Y" + "data": "Y", + "raw": "Y" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/31/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/31/output.json index b9f21750f3f..ecc079ad4d1 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/31/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/31/output.json @@ -74,7 +74,8 @@ "end": 7, "ctxt": 0 }, - "data": "0" + "data": "0", + "raw": "0" }, { "type": "Element", @@ -94,7 +95,8 @@ "end": 11, "ctxt": 0 }, - "data": "1" + "data": "1", + "raw": "1" } ], "content": null, @@ -146,7 +148,8 @@ "end": 17, "ctxt": 0 }, - "data": "2" + "data": "2", + "raw": "2" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/32/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/32/output.json index 99ef816da17..b541caf628c 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/32/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/32/output.json @@ -81,7 +81,8 @@ "end": 39, "ctxt": 0 }, - "data": "helloexcite!" + "data": "helloexcite!", + "raw": "helloexcite!" }, { "type": "Element", @@ -101,7 +102,8 @@ "end": 45, "ctxt": 0 }, - "data": "me!" + "data": "me!", + "raw": "me!" } ], "content": null, @@ -169,7 +171,8 @@ "end": 59, "ctxt": 0 }, - "data": "please!" + "data": "please!", + "raw": "please!" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/33/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/33/output.json index d8a89c0f3ac..6919322b18c 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/33/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/33/output.json @@ -72,7 +72,8 @@ "end": 25, "ctxt": 0 }, - "data": "hello" + "data": "hello", + "raw": "hello" } ], "content": null, @@ -96,7 +97,8 @@ "end": 34, "ctxt": 0 }, - "data": "world" + "data": "world", + "raw": "world" }, { "type": "Element", @@ -116,7 +118,8 @@ "end": 41, "ctxt": 0 }, - "data": "how" + "data": "how", + "raw": "how" }, { "type": "Element", @@ -136,7 +139,8 @@ "end": 47, "ctxt": 0 }, - "data": "do" + "data": "do", + "raw": "do" } ], "content": null, @@ -153,7 +157,8 @@ "end": 55, "ctxt": 0 }, - "data": "you" + "data": "you", + "raw": "you" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/34/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/34/output.json index 8125df42286..1cd40403ec6 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/34/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/34/output.json @@ -61,7 +61,8 @@ "end": 17, "ctxt": 0 }, - "data": "A" + "data": "A", + "raw": "A" }, { "type": "Element", @@ -81,7 +82,8 @@ "end": 26, "ctxt": 0 }, - "data": "B" + "data": "B", + "raw": "B" } ], "content": null, @@ -105,7 +107,8 @@ "end": 37, "ctxt": 0 }, - "data": "C" + "data": "C", + "raw": "C" }, { "type": "Element", @@ -125,7 +128,8 @@ "end": 56, "ctxt": 0 }, - "data": "DE" + "data": "DE", + "raw": "DE" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/35/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/35/output.json index 29e81369b53..3b910da1649 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/35/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/35/output.json @@ -50,7 +50,8 @@ "end": 2, "ctxt": 0 }, - "data": "<" + "data": "<", + "raw": "<" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/36/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/36/output.json index d0f23288fc4..37b47175b44 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/36/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/36/output.json @@ -50,7 +50,8 @@ "end": 3, "ctxt": 0 }, - "data": "<#" + "data": "<#", + "raw": "<#" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/37/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/37/output.json index 0835fffcdf4..f774989e499 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/37/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/37/output.json @@ -50,7 +50,8 @@ "end": 3, "ctxt": 0 }, - "data": "" + "data": "", + "raw": "" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/49/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/49/output.json index 826f7633554..1b17d56ea6d 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/49/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/49/output.json @@ -58,7 +58,8 @@ "end": 27, "ctxt": 0 }, - "data": " EOF" + "data": " EOF", + "raw": " EOF" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/50/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/50/output.json index 0c2e4a54564..3efefb6d206 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/50/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/50/output.json @@ -58,7 +58,8 @@ "end": 30, "ctxt": 0 }, - "data": " EOF" + "data": "--> EOF", + "raw": "--> EOF" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/51/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/51/output.json index 1a028e4bf23..fb3d2d54264 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/51/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/51/output.json @@ -89,7 +89,8 @@ "end": 15, "ctxt": 0 }, - "data": "TEST" + "data": "TEST", + "raw": "TEST" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/52/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/52/output.json index 11923536bf9..3cc24157312 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/52/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/52/output.json @@ -116,7 +116,8 @@ "end": 28, "ctxt": 0 }, - "data": "TEST" + "data": "TEST", + "raw": "TEST" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/53/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/53/output.json index 2d60a96ca0b..da5bddf4729 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/53/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/53/output.json @@ -116,7 +116,8 @@ "end": 32, "ctxt": 0 }, - "data": "TEST" + "data": "TEST", + "raw": "TEST" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/54/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/54/output.json index 0cc46ea7ed3..7046711378c 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/54/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/54/output.json @@ -58,7 +58,8 @@ "end": 29, "ctxt": 0 }, - "data": "U-test" + "data": "U-test", + "raw": "U-test" } ], "content": null, @@ -108,7 +109,8 @@ "end": 55, "ctxt": 0 }, - "data": "Test" + "data": "Test", + "raw": "Test" }, { "type": "Element", diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/56/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/56/output.json index 94935659bb1..be109b3bb82 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/56/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/56/output.json @@ -86,7 +86,8 @@ "end": 15, "ctxt": 0 }, - "data": "hello" + "data": "hello", + "raw": "hello" }, { "type": "Element", @@ -106,7 +107,8 @@ "end": 23, "ctxt": 0 }, - "data": "cruel" + "data": "cruel", + "raw": "cruel" } ], "content": null, @@ -134,7 +136,8 @@ "end": 35, "ctxt": 0 }, - "data": "world" + "data": "world", + "raw": "world" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/57/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/57/output.json index 02363edfd87..de3a766fa1b 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/57/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/57/output.json @@ -61,7 +61,8 @@ "end": 16, "ctxt": 0 }, - "data": "TestTest" + "data": "TestTest", + "raw": "TestTest" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/58/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/58/output.json index f781b2cb9d0..51e89398f1e 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/58/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/58/output.json @@ -61,7 +61,8 @@ "end": 5, "ctxt": 0 }, - "data": "A" + "data": "A", + "raw": "A" }, { "type": "Element", @@ -81,7 +82,8 @@ "end": 12, "ctxt": 0 }, - "data": "B" + "data": "B", + "raw": "B" }, { "type": "Element", @@ -101,7 +103,8 @@ "end": 18, "ctxt": 0 }, - "data": "C" + "data": "C", + "raw": "C" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/59/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/59/output.json index 8a61f800b0e..61eb8e9421d 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/59/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/59/output.json @@ -61,7 +61,8 @@ "end": 5, "ctxt": 0 }, - "data": "A" + "data": "A", + "raw": "A" }, { "type": "Element", @@ -81,7 +82,8 @@ "end": 12, "ctxt": 0 }, - "data": "B" + "data": "B", + "raw": "B" }, { "type": "Element", @@ -101,7 +103,8 @@ "end": 26, "ctxt": 0 }, - "data": "CD" + "data": "CD", + "raw": "CD" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/60/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/60/output.json index 2c2492e09b2..a7350abc3d0 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/60/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/60/output.json @@ -61,7 +61,8 @@ "end": 5, "ctxt": 0 }, - "data": "A" + "data": "A", + "raw": "A" }, { "type": "Element", @@ -81,7 +82,8 @@ "end": 12, "ctxt": 0 }, - "data": "B" + "data": "B", + "raw": "B" } ], "content": null, @@ -120,7 +122,8 @@ "end": 18, "ctxt": 0 }, - "data": "C" + "data": "C", + "raw": "C" } ], "content": null, @@ -133,7 +136,8 @@ "end": 23, "ctxt": 0 }, - "data": "D" + "data": "D", + "raw": "D" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/63/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/63/output.json index cf65d2be17f..1745d88d218 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/63/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/63/output.json @@ -61,7 +61,8 @@ "end": 10, "ctxt": 0 }, - "data": " abc" + "data": " abc", + "raw": " abc" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/64/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/64/output.json index 5e505c7950b..df1bc83944d 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/64/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/64/output.json @@ -61,7 +61,8 @@ "end": 11, "ctxt": 0 }, - "data": " abc " + "data": " abc ", + "raw": " abc " }, { "type": "Element", diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/65/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/65/output.json index 86d94baf87e..a18cc253ad5 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/65/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/65/output.json @@ -61,7 +61,8 @@ "end": 11, "ctxt": 0 }, - "data": " abc " + "data": " abc ", + "raw": " abc " }, { "type": "Element", @@ -81,7 +82,8 @@ "end": 18, "ctxt": 0 }, - "data": " def" + "data": " def", + "raw": " def" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/66/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/66/output.json index 512920a9a40..017940e7bf6 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/66/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/66/output.json @@ -61,7 +61,8 @@ "end": 11, "ctxt": 0 }, - "data": " abc " + "data": " abc ", + "raw": " abc " }, { "type": "Element", @@ -81,7 +82,8 @@ "end": 19, "ctxt": 0 }, - "data": " def " + "data": " def ", + "raw": " def " }, { "type": "Element", diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/67/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/67/output.json index d081326a4ef..dabca5f4340 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/67/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/67/output.json @@ -61,7 +61,8 @@ "end": 11, "ctxt": 0 }, - "data": " abc " + "data": " abc ", + "raw": " abc " }, { "type": "Element", @@ -81,7 +82,8 @@ "end": 19, "ctxt": 0 }, - "data": " def " + "data": " def ", + "raw": " def " }, { "type": "Element", @@ -101,7 +103,8 @@ "end": 26, "ctxt": 0 }, - "data": " ghi" + "data": " ghi", + "raw": " ghi" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/68/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/68/output.json index 42acdabef8d..978502f4ad8 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/68/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/68/output.json @@ -61,7 +61,8 @@ "end": 11, "ctxt": 0 }, - "data": " abc " + "data": " abc ", + "raw": " abc " }, { "type": "Element", @@ -81,7 +82,8 @@ "end": 19, "ctxt": 0 }, - "data": " def " + "data": " def ", + "raw": " def " }, { "type": "Element", @@ -101,7 +103,8 @@ "end": 27, "ctxt": 0 }, - "data": " ghi " + "data": " ghi ", + "raw": " ghi " }, { "type": "Element", diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/69/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/69/output.json index 6c00b69a23e..5e20432cdc5 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/69/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/69/output.json @@ -61,7 +61,8 @@ "end": 11, "ctxt": 0 }, - "data": " abc " + "data": " abc ", + "raw": " abc " }, { "type": "Element", @@ -81,7 +82,8 @@ "end": 19, "ctxt": 0 }, - "data": " def " + "data": " def ", + "raw": " def " }, { "type": "Element", @@ -101,7 +103,8 @@ "end": 27, "ctxt": 0 }, - "data": " ghi " + "data": " ghi ", + "raw": " ghi " }, { "type": "Element", @@ -121,7 +124,8 @@ "end": 34, "ctxt": 0 }, - "data": " jkl" + "data": " jkl", + "raw": " jkl" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/70/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/70/output.json index 43adc956e73..e55fdeca9ff 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/70/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/70/output.json @@ -61,7 +61,8 @@ "end": 11, "ctxt": 0 }, - "data": " abc " + "data": " abc ", + "raw": " abc " }, { "type": "Element", @@ -81,7 +82,8 @@ "end": 19, "ctxt": 0 }, - "data": " def " + "data": " def ", + "raw": " def " }, { "type": "Element", @@ -101,7 +103,8 @@ "end": 27, "ctxt": 0 }, - "data": " ghi " + "data": " ghi ", + "raw": " ghi " } ], "content": null, @@ -151,7 +154,8 @@ "end": 35, "ctxt": 0 }, - "data": " jkl " + "data": " jkl ", + "raw": " jkl " } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/71/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/71/output.json index ab729d01876..222b75a246f 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/71/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/71/output.json @@ -61,7 +61,8 @@ "end": 11, "ctxt": 0 }, - "data": " abc " + "data": " abc ", + "raw": " abc " }, { "type": "Element", @@ -81,7 +82,8 @@ "end": 19, "ctxt": 0 }, - "data": " def " + "data": " def ", + "raw": " def " }, { "type": "Element", @@ -101,7 +103,8 @@ "end": 27, "ctxt": 0 }, - "data": " ghi " + "data": " ghi ", + "raw": " ghi " } ], "content": null, @@ -151,7 +154,8 @@ "end": 35, "ctxt": 0 }, - "data": " jkl " + "data": " jkl ", + "raw": " jkl " } ], "content": null, @@ -164,7 +168,8 @@ "end": 43, "ctxt": 0 }, - "data": " mno" + "data": " mno", + "raw": " mno" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/72/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/72/output.json index f9e6f90d11d..9195959d375 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/72/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/72/output.json @@ -61,7 +61,8 @@ "end": 11, "ctxt": 0 }, - "data": " abc " + "data": " abc ", + "raw": " abc " }, { "type": "Element", @@ -81,7 +82,8 @@ "end": 19, "ctxt": 0 }, - "data": " def " + "data": " def ", + "raw": " def " }, { "type": "Element", @@ -101,7 +103,8 @@ "end": 27, "ctxt": 0 }, - "data": " ghi " + "data": " ghi ", + "raw": " ghi " } ], "content": null, @@ -165,7 +168,8 @@ "end": 35, "ctxt": 0 }, - "data": " jkl " + "data": " jkl ", + "raw": " jkl " } ], "content": null, @@ -178,7 +182,8 @@ "end": 44, "ctxt": 0 }, - "data": " mno " + "data": " mno ", + "raw": " mno " } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/73/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/73/output.json index 58304520915..76840c9e035 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/73/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/73/output.json @@ -61,7 +61,8 @@ "end": 11, "ctxt": 0 }, - "data": " abc " + "data": " abc ", + "raw": " abc " }, { "type": "Element", @@ -81,7 +82,8 @@ "end": 19, "ctxt": 0 }, - "data": " def " + "data": " def ", + "raw": " def " }, { "type": "Element", @@ -101,7 +103,8 @@ "end": 27, "ctxt": 0 }, - "data": " ghi " + "data": " ghi ", + "raw": " ghi " } ], "content": null, @@ -165,7 +168,8 @@ "end": 35, "ctxt": 0 }, - "data": " jkl " + "data": " jkl ", + "raw": " jkl " } ], "content": null, @@ -178,7 +182,8 @@ "end": 44, "ctxt": 0 }, - "data": " mno " + "data": " mno ", + "raw": " mno " } ], "content": null, @@ -191,7 +196,8 @@ "end": 52, "ctxt": 0 }, - "data": " pqr" + "data": " pqr", + "raw": " pqr" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/74/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/74/output.json index 08c61f26c82..8674fcdbe8e 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/74/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/74/output.json @@ -61,7 +61,8 @@ "end": 11, "ctxt": 0 }, - "data": " abc " + "data": " abc ", + "raw": " abc " }, { "type": "Element", @@ -81,7 +82,8 @@ "end": 19, "ctxt": 0 }, - "data": " def " + "data": " def ", + "raw": " def " }, { "type": "Element", @@ -101,7 +103,8 @@ "end": 27, "ctxt": 0 }, - "data": " ghi " + "data": " ghi ", + "raw": " ghi " } ], "content": null, @@ -165,7 +168,8 @@ "end": 35, "ctxt": 0 }, - "data": " jkl " + "data": " jkl ", + "raw": " jkl " } ], "content": null, @@ -178,7 +182,8 @@ "end": 44, "ctxt": 0 }, - "data": " mno " + "data": " mno ", + "raw": " mno " } ], "content": null, @@ -191,7 +196,8 @@ "end": 53, "ctxt": 0 }, - "data": " pqr " + "data": " pqr ", + "raw": " pqr " } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/75/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/75/output.json index 73e2206aad2..f5c0827c78b 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/75/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/75/output.json @@ -61,7 +61,8 @@ "end": 11, "ctxt": 0 }, - "data": " abc " + "data": " abc ", + "raw": " abc " }, { "type": "Element", @@ -81,7 +82,8 @@ "end": 19, "ctxt": 0 }, - "data": " def " + "data": " def ", + "raw": " def " }, { "type": "Element", @@ -101,7 +103,8 @@ "end": 27, "ctxt": 0 }, - "data": " ghi " + "data": " ghi ", + "raw": " ghi " } ], "content": null, @@ -165,7 +168,8 @@ "end": 35, "ctxt": 0 }, - "data": " jkl " + "data": " jkl ", + "raw": " jkl " } ], "content": null, @@ -178,7 +182,8 @@ "end": 44, "ctxt": 0 }, - "data": " mno " + "data": " mno ", + "raw": " mno " } ], "content": null, @@ -191,7 +196,8 @@ "end": 53, "ctxt": 0 }, - "data": " pqr " + "data": " pqr ", + "raw": " pqr " } ], "content": null, @@ -204,7 +210,8 @@ "end": 61, "ctxt": 0 }, - "data": " stu" + "data": " stu", + "raw": " stu" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/77/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/77/output.json index a95295dc4ab..6424a582c1c 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/77/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/77/output.json @@ -74,7 +74,8 @@ "end": 19, "ctxt": 0 }, - "data": "aba" + "data": "aba", + "raw": "aba" }, { "type": "Element", @@ -107,7 +108,8 @@ "end": 42, "ctxt": 0 }, - "data": "br" + "data": "br", + "raw": "br" } ], "content": null, @@ -144,7 +146,8 @@ "end": 61, "ctxt": 0 }, - "data": "x" + "data": "x", + "raw": "x" } ], "content": null, @@ -244,7 +247,8 @@ "end": 72, "ctxt": 0 }, - "data": "aoe" + "data": "aoe", + "raw": "aoe" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/78/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/78/output.json index 22bc1c2713e..05169790b8b 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/78/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/78/output.json @@ -74,7 +74,8 @@ "end": 61, "ctxt": 0 }, - "data": "abax" + "data": "abax", + "raw": "abax" }, { "type": "Element", @@ -151,7 +152,8 @@ "end": 50, "ctxt": 0 }, - "data": "br" + "data": "br", + "raw": "br" } ], "content": null, @@ -180,7 +182,8 @@ "end": 72, "ctxt": 0 }, - "data": "aoe" + "data": "aoe", + "raw": "aoe" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/79/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/79/output.json index 0516f304c06..9ad3f07d680 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/79/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/79/output.json @@ -74,7 +74,8 @@ "end": 26, "ctxt": 0 }, - "data": "aba" + "data": "aba", + "raw": "aba" } ], "content": null, @@ -111,7 +112,8 @@ "end": 61, "ctxt": 0 }, - "data": "x" + "data": "x", + "raw": "x" } ], "content": null, @@ -192,7 +194,8 @@ "end": 50, "ctxt": 0 }, - "data": "br" + "data": "br", + "raw": "br" } ], "content": null, @@ -245,7 +248,8 @@ "end": 72, "ctxt": 0 }, - "data": "aoe" + "data": "aoe", + "raw": "aoe" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/80/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/80/output.json index 920a374d56a..332eef8f69f 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/80/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/80/output.json @@ -74,7 +74,8 @@ "end": 13, "ctxt": 0 }, - "data": "aa" + "data": "aa", + "raw": "aa" }, { "type": "Element", @@ -94,7 +95,8 @@ "end": 24, "ctxt": 0 }, - "data": "aa" + "data": "aa", + "raw": "aa" }, { "type": "Element", @@ -127,7 +129,8 @@ "end": 36, "ctxt": 0 }, - "data": "bb" + "data": "bb", + "raw": "bb" } ], "content": null, @@ -144,7 +147,8 @@ "end": 48, "ctxt": 0 }, - "data": "aa" + "data": "aa", + "raw": "aa" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/82/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/82/output.json index 2be5e8f6641..42a75a99ec7 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/82/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/82/output.json @@ -72,7 +72,8 @@ "end": 27, "ctxt": 0 }, - "data": "foo" + "data": "foo", + "raw": "foo" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/83/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/83/output.json index 812608646ba..602b3e41523 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/83/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/83/output.json @@ -47,7 +47,8 @@ "end": 14, "ctxt": 0 }, - "data": "" + "data": "", + "raw": "" } ], "content": null, @@ -85,7 +86,8 @@ "end": 41, "ctxt": 0 }, - "data": "" + "data": "", + "raw": "" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/84/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/84/output.json index c969ca6632e..3572aabca82 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/84/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/84/output.json @@ -47,7 +47,8 @@ "end": 12, "ctxt": 0 }, - "data": "" + "data": "-->", + "raw": "-->" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/86/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/86/output.json index f0d0e6a1e1f..48d4f7b043b 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/86/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/86/output.json @@ -162,7 +162,8 @@ "end": 41, "ctxt": 0 }, - "data": "X" + "data": "X", + "raw": "X" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/87/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/87/output.json index d1e2a31155a..5e024dd6ba2 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/87/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/87/output.json @@ -103,7 +103,8 @@ "end": 41, "ctxt": 0 }, - "data": "
" + "data": "
", + "raw": "
" } ], "content": null, diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/88/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/88/output.json index 7b0380ea27b..fbb0cae13b9 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/88/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat/88/output.json @@ -61,7 +61,8 @@ "end": 14, "ctxt": 0 }, - "data": "
" + "data": "
", + "raw": "
"
}
],
"content": null,
diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/39/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/39/output.json
index 97694fcf67e..7a899c29bb1 100644
--- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/39/output.json
+++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/39/output.json
@@ -90,7 +90,8 @@
"end": 44,
"ctxt": 0
},
- "data": "a"
+ "data": "a",
+ "raw": "a"
}
],
"content": null,
diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/40/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/40/output.json
index 97694fcf67e..7a899c29bb1 100644
--- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/40/output.json
+++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/40/output.json
@@ -90,7 +90,8 @@
"end": 44,
"ctxt": 0
},
- "data": "a"
+ "data": "a",
+ "raw": "a"
}
],
"content": null,
diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/49/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/49/output.json
index d677b00f33c..33c13647559 100644
--- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/49/output.json
+++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/49/output.json
@@ -83,7 +83,8 @@
"end": 31,
"ctxt": 0
},
- "data": "abc"
+ "data": "abc",
+ "raw": "abc"
}
],
"content": null,
diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/59/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/59/output.json
index a19973ea6c7..6f75640d0fb 100644
--- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/59/output.json
+++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/59/output.json
@@ -72,7 +72,8 @@
"end": 24,
"ctxt": 0
},
- "data": " "
+ "data": " ",
+ "raw": " "
}
],
"content": null,
diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/60/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/60/output.json
index fbfaaba381f..b9b04f225e8 100644
--- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/60/output.json
+++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/60/output.json
@@ -72,7 +72,8 @@
"end": 24,
"ctxt": 0
},
- "data": "c"
+ "data": "c",
+ "raw": "c"
}
],
"content": null,
diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/62/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/62/output.json
index 49993ced85b..d23eaa9af66 100644
--- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/62/output.json
+++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/62/output.json
@@ -72,7 +72,8 @@
"end": 30,
"ctxt": 0
},
- "data": "x"
+ "data": "x",
+ "raw": "x"
}
],
"content": null,
diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/63/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/63/output.json
index 4292b3a7af7..d06c8ae54f4 100644
--- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/63/output.json
+++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests20_dat/63/output.json
@@ -83,7 +83,8 @@
"end": 29,
"ctxt": 0
},
- "data": "x"
+ "data": "x",
+ "raw": "x"
}
],
"content": null,
diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/0/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/0/output.json
index 242d4c98ac8..2047ff224da 100644
--- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/0/output.json
+++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/0/output.json
@@ -61,7 +61,8 @@
"end": 18,
"ctxt": 0
},
- "data": "foo"
+ "data": "foo",
+ "raw": "foo"
}
],
"content": null,
diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/1/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/1/output.json
index 0b57e429ccc..8b73d42a4a2 100644
--- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/1/output.json
+++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/1/output.json
@@ -61,7 +61,8 @@
"end": 19,
"ctxt": 0
},
- "data": "foo"
+ "data": "foo",
+ "raw": "foo"
}
],
"content": null,
diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/10/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/10/output.json
index 201a3996106..4b95c1d8fd5 100644
--- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/10/output.json
+++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/10/output.json
@@ -61,7 +61,8 @@
"end": 16,
"ctxt": 0
},
- "data": "]"
+ "data": "]",
+ "raw": "]"
}
],
"content": null,
diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/11/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/11/output.json
index 8c46b953df8..bc4f1c14499 100644
--- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/11/output.json
+++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/11/output.json
@@ -61,7 +61,8 @@
"end": 18,
"ctxt": 0
},
- "data": "]>a"
+ "data": "]>a",
+ "raw": "]>a"
}
],
"content": null,
diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/12/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/12/output.json
index 9d296bfe2e7..e384644949b 100644
--- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/12/output.json
+++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/12/output.json
@@ -72,7 +72,8 @@
"end": 36,
"ctxt": 0
},
- "data": "foo]"
+ "data": "foo]",
+ "raw": "foo]"
}
],
"content": null,
diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/13/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/13/output.json
index f84798e5f2b..05aa8bdf2f5 100644
--- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/13/output.json
+++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/13/output.json
@@ -72,7 +72,8 @@
"end": 37,
"ctxt": 0
},
- "data": "foo]]"
+ "data": "foo]]",
+ "raw": "foo]]"
}
],
"content": null,
diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/14/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/14/output.json
index db9cdbd18a5..6524522644c 100644
--- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/14/output.json
+++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/14/output.json
@@ -72,7 +72,8 @@
"end": 38,
"ctxt": 0
},
- "data": "foo]]]"
+ "data": "foo]]]",
+ "raw": "foo]]]"
}
],
"content": null,
diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/16/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/16/output.json
index 3b35ff13ff0..2e0ab9ee287 100644
--- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/16/output.json
+++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/16/output.json
@@ -61,7 +61,8 @@
"end": 20,
"ctxt": 0
},
- "data": "a"
}
],
"content": null,
diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/18/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/18/output.json
index 9071351603c..db4203bde7b 100644
--- a/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/18/output.json
+++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/tests21_dat/18/output.json
@@ -61,7 +61,8 @@
"end": 21,
"ctxt": 0
},
- "data": "