Commit Graph

49 Commits

Author SHA1 Message Date
Alexander Akait
49b7e9e224
feat(html/parser): Improve lexer (#6543) 2022-12-01 05:54:44 +00:00
Alexander Akait
e3cbe7e9a9
fix(html/parser): Fix parsing of cdata (#6534) 2022-11-29 02:39:48 +00:00
Donny/강동윤
b8fe04f720
feat(common): Add contexts to the error messages (#6526)
**Description:**

This PR makes the error reporter print contexts.

**Related issue:**

 - https://github.com/swc-project/swc/issues/6525.
2022-11-29 00:56:47 +09:00
Alexander Akait
57e9f9c88e
fix(html/parser): Reflect the fix for a bug in spec (#5779) 2022-09-16 03:24:49 +00:00
Alexander Akait
945510a695
feat(html/ast): Add raw to doctype (#5198) 2022-07-17 12:48:21 +00:00
Alexander Akait
0f7646cc47
fix(html/parser): Improve span (#5230) 2022-07-17 06:23:25 +00:00
Alexander Akait
64237fa7fb
feat(html/ast): Add raw to attributes (#5208) 2022-07-15 02:40:47 +00:00
Alexander Akait
dead719550
feat(html/parser): Add raw to comments (#5196) 2022-07-14 04:56:31 +00:00
Alexander Akait
01bfe46019
feat(html): Add raw for text (#5148) 2022-07-09 04:19:14 +00:00
Alexander Akait
5c2a918946
feat(html): Support self-closing flag (#4950) 2022-06-14 13:31:23 +00:00
Alexander Akait
4f1e04671d
fix(html/codegen): Emit newline in textarea/pre (#4919) 2022-06-10 04:19:30 +00:00
Alexander Akait
e365766070
perf(html/parser): Reduce cloning (#4901) 2022-06-08 03:55:11 +00:00
Alexander Akait
70760d2222
fix(html/parser): Fix spans (#4877) 2022-06-07 14:33:06 +00:00
Alexander Akait
5abe847c23
perf(html/parser): Improve performance (#4881) 2022-06-05 20:16:27 +00:00
Alexander Akait
0d5d7c4d5e
fix(html/parser): Fix span (#4868) 2022-06-04 09:33:25 +00:00
Alexander Akait
67b5e3d5b3
fix(html/parser): Fix end span of closed tags (#4860) 2022-06-02 04:00:32 +00:00
Alexander Akait
20fee8abee
fix(html/parser): Handle BOM (#4843) 2022-05-30 06:20:02 +00:00
Alexander Akait
5d0e8fbda4
feat(html/parser): Report an error for a legacy doctype (#4717) 2022-05-21 10:59:56 +00:00
Alexander Akait
637ef7f49f
fix(html/parser): Fix span of attributes (#4681) 2022-05-17 08:23:24 +00:00
Alexander Akait
a8467c64e8
feat(html/parser): Improve error reporting (#4663) 2022-05-15 04:20:21 +00:00
Alexander Akait
1f945b9277
fix(html/parser): Fix error reporting (#4644) 2022-05-14 01:43:52 +00:00
Alexander Akait
af9c8c6b4c
fix(html): Fix parsing of template (#4647) 2022-05-13 05:07:24 +00:00
Alexander Akait
a19db2992b
fix(html/parser): Fix newlines (#4633) 2022-05-12 19:56:47 +00:00
Alexander Akait
4e577d7f45
test(html/parser): Add dom visualizer for regular tests (#4622) 2022-05-12 02:58:51 +00:00
Donny/강동윤
67942d5731
feat(common): Reserve BytePos(0) for dummy spans (#4616) 2022-05-11 16:14:42 +00:00
Alexander Akait
adbce64f28
test(html/parser): Add tests (#4565) 2022-05-08 04:37:29 +00:00
Alexander Akait
e11ee88ea0
fix(html/parser): Fix support for document mode (#4539) 2022-05-07 06:30:39 +00:00
Alexander Akait
dd40e7bf69
fix(html/parser): Fix parsing of newline in textarea (#4543) 2022-05-06 07:35:02 +00:00
Alexander Akait
6310eab966
fix(html/parser): Fix a bug with optional li (#4526) 2022-05-05 02:48:43 +00:00
Alexander Akait
597c0c672a
fix(html/parser): Fix a bug of unwrapping element without parent (#4505) 2022-05-04 06:11:07 +00:00
Alexander Akait
202a6e4a01
test(html/parser): Add tests (#4507) 2022-05-04 04:13:15 +00:00
Alexander Akait
b8588c4a45
fix(html/parser): Fix parsing of select (#4504) 2022-05-03 03:15:05 +00:00
Alexander Akait
fca84eb0f2
fix(html/parser): Fix bugs (#4502) 2022-05-03 02:49:06 +00:00
Alexander Akait
00358e10fc
fix(html/parser): Fix adoption agency algorithm (#4487) 2022-04-30 04:09:08 +00:00
Alexander Akait
8bdfcd996a
fix(html): Fix bugs of parser and codegen (#4461) 2022-04-28 17:57:05 +00:00
Alexander Akait
20982288fb
fix(html/parser): Fix bugs (#4459) 2022-04-28 17:27:39 +00:00
Alexander Akait
65a158a66b
fix(html/parser): Fix fosting logic for text nodes (#4457) 2022-04-28 01:44:13 +00:00
Alexander Akait
6e60813367
fix(html/parser): Parse table including broken one (#4451) 2022-04-27 05:09:25 +00:00
Alexander Akait
8c4dc4cc46
fix(html/parser): Fix a bug with nested tags (#4438) 2022-04-27 02:46:34 +00:00
Alexander Akait
8f2a3ead6a
fix(html/parsing): Fix parsing of formatting elements (#4442) 2022-04-26 08:01:26 +00:00
Alexander Akait
3293060070
fix(html/parser): Fix span (#4437) 2022-04-25 23:45:14 +00:00
Alexander Akait
4ccbdf2a7d
fix(html/parser): Fix parsing of foreign elements (#4422) 2022-04-25 08:26:08 +00:00
Alexander Akait
cf3be649bb
fix(html/parser): Parse foreign attributes (#4400) 2022-04-23 04:26:32 +00:00
Alexander Akait
7332dce4f8
feat(html): Prepare processing system (#4358) 2022-04-22 20:20:47 +09:00
Alexander Akait
ee108af3d0
feat(html): Add raw fields (#4281) 2022-04-08 09:19:58 +00:00
Alexander Akait
105a0cccf7
fix(html/parser): Fix bugs (#4265) 2022-04-07 14:12:54 +09:00
Alexander Akait
3f6037b467
fix(html/parser): Support cdata (#4259) 2022-04-06 14:59:10 +09:00
Alexander Akait
8640c8bd43
feat(html): Support boolean attributes (#4258) 2022-04-06 05:31:27 +00:00
Alexander Akait
3e7872c8de
feat(html): Initialize (#4240) 2022-04-04 04:12:45 +00:00