Replies: 6 comments 13 replies
-
I currently has finished, all tests2.dat, tests8.dat, tests22.data, tests24.dat, tests25.dat, tests15.dat. tests18.dat remains 3 cases not passed. And some tests data is associate fragment case and the order of attributes display. I think these tests is easy to pass. |
Beta Was this translation helpful? Give feedback.
-
@CharlesChen0823 I've added a html5_parser_test binary that will give an overview of the current parser tests and their status:
|
Beta Was this translation helpful? Give feedback.
-
@CharlesChen0823 I have been looking at |
Beta Was this translation helpful? Give feedback.
-
@CharlesChen0823 I've merged my work into the main branch. |
Beta Was this translation helpful? Give feedback.
-
@CharlesChen0823 yes, the tokenizer and parser really are tightly close together. I've setup the document fragment case PR and it is merged. We now have a 90% pass rate on the tests. The way the parser and the tokenizer are initialized have been changed and it should be simple enough to get a parser up and running:
There are a few .dat files that are failing mostly, but I think these are quick fixes. THanks for your awesome work on this. |
Beta Was this translation helpful? Give feedback.
-
@CharlesChen0823 Because of the template.dat tests, I needed to make adjustments to the test code, which resulting in a (big) refactor. Because of this, I've found that there we some tests that are actually failing, but were passing in our test code. Now, there are a few tests still open that used to pass but we have to check these manually. The PR is in #223 but I hope to get it approved tonight by @emwalker @Kiyoshika so we can merge it to main. The current testst that are failing can be simply be viewed with Bwt, we are current at 96.91% 🎉 |
Beta Was this translation helpful? Give feedback.
-
Currently trying to get tests10.dat to pass. This tests foreign elements (svg, mathml), which the current parser cannot cope with without an extra layer. I've got most of it working, but the majority of the large state-machine is moved to a separate function. Codewise not much is changed, but might result in a large diff nevertheless..
Beta Was this translation helpful? Give feedback.
All reactions