Commit Graph

57 Commits

Author SHA1 Message Date
Alexander Akait
19c2ee593d
fix(html/parser): Fix parsing of CDATA in the svg context (#6620) 2022-12-12 05:05:40 +00:00
Alexander Akait
d6e961368b
perf(html/parser): Optimize usage of buffers (#6590) 2022-12-07 02:18:31 +00:00
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
3a9065799d
perf(html/parser): Refactor (#6313) 2022-11-02 03:36:00 +00: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
1b200a0582
chore(html/parser): Typo (#5778) 2022-09-08 01:36:02 +00:00
Alexander Akait
c80b9e106a
fix(html/parser): Fix span (#5312) 2022-07-27 05:38:31 +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
b4daa30058
fix(html/parser): Fix span (#5209) 2022-07-15 01:38:44 +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
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
da09c1ca5b
feat(html/codegen): Improve entity compression (#4889) 2022-06-07 04:33:33 +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
f830726027
fix(html/parser): Fix span of lexer errors (#4846) 2022-05-31 03:50:19 +00:00
Alexander Akait
759688c412
perf(html/parser): Improve lexer performance even more (#4819) 2022-05-27 12:48:51 +00:00
Alexander Akait
51f4cea103
feat(html/parser): Improve error reporting (#4740) 2022-05-23 04:04:20 +00:00
Alexander Akait
c346d309a7
feat(html/parser): Improve error reporting (#4728) 2022-05-21 19:34:02 +00:00
Alexander Akait
e9b2ebfc3b
feat(html/parser): Improve error reporting for misplaced non-space characters inside a table (#4723) 2022-05-21 18:09:33 +00:00
Alexander Akait
1c4d50f06a
fix(html/parser): Fix parsing of closing tag in foreign contents (#4721) 2022-05-22 01:28:48 +09:00
Alexander Akait
4df0637817
fix(html/parser): Fix error reporting in the foreign context (#4725) 2022-05-21 15:22:10 +00:00
Alexander Akait
4cee4ac238
fix(html/parser): Fix error reporting related to image (#4720) 2022-05-21 12:06:30 +00:00
Alexander Akait
2c2e6bb65b
fix(html/parser): Fix handling of unclosed td/th (#4719) 2022-05-21 11:21:36 +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
0b39e1b3fc
fix(html/parser): Fix bugs (#4707) 2022-05-19 01:39:11 +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
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
c7d20e43e6
fix(html/parser): Add recovery for attributes on html and body (#4566) 2022-05-08 05:00:10 +00:00
Alexander Akait
adbce64f28
test(html/parser): Add tests (#4565) 2022-05-08 04:37:29 +00:00
Alexander Akait
d6e48850b6
fix(html/parser): Fix adoption agency algorithm (#4552) 2022-05-08 03:47:22 +00:00
Alexander Akait
e11ee88ea0
fix(html/parser): Fix support for document mode (#4539) 2022-05-07 06:30:39 +00:00
Alexander Akait
698038107d
fix(html/lexer): Fix lexing of numeric characters (#4544) 2022-05-06 13:05:10 +00:00
Alexander Akait
07cf28a168
fix(html/parser): Fix parsing of cdata (#4537) 2022-05-06 06:12:46 +00:00
Alexander Akait
e6042a5e69
fix(html/parser): Fix parsing of nobr (#4535) 2022-05-06 04:34:06 +00:00
Alexander Akait
79090e1b2a
fix(html/parser): Fix parsing of comments in textarea (#4530) 2022-05-05 03:13:20 +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
5dc9376a4b
fix(html/parser): Fix parsing of cdata in foreign context (#4531) 2022-05-05 02:03:27 +00:00
Alexander Akait
2f6f8fa717
fix(html/parser): Fix a bug related to parsing foreign elements (#4527) 2022-05-04 19:10:39 +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