J. King
445fd545c7
Don't trust libxml to handle standard encodings
Many standard encoding labels are not understood by libxml, so we must insert
our own XML declarations to add encoding information which libxml will
understand.
2 weeks ago
J. King
4e41632769
Document test filtering a bit more generically
1 year ago
J. King
2b8a31ce47
Add search element
1 year ago
J. King
6b863a1a85
Polish off DOMParser tests
1 year ago
J. King
504d713139
Simplify UTF-16 handling in DOMParser
1 year ago
J. King
bcbe74d6b9
Add first tests for DOMParser
This has exposed an error in the assumptions about BOM handling in the
XML parser. Proper handling of external encoding information will take
more effort than aniticpated.
1 year ago
J. King
82b76b192c
Handle xmlns on HTML elements correctly
The test for when to produce a parse error was not correct previously
1 year ago
J. King
bd43403aa7
Fix xmlns on HTML elements when using HTML ns
1 year ago
J. King
da0a4b12e3
Spec-related update
See https://github.com/whatwg/html/pull/8271
Also removed test patches which are no longer needed, and fixed a bug
exposed by new tests
The testsuite includes tests for the new <search> element, but this is
not included in the specification yet, so the tests have been suppressed
1 year ago
J. King
9097e61d97
Avoid use of @ operator
1 year ago
Dustin Wilson
afaf10d602
Fixed yet another xmlns issue...
2 years ago
Dustin Wilson
cb57dd8e11
Added tests for serializer config warnings
2 years ago
Dustin Wilson
6ff01ee4f7
Changed serializer configuration to array
2 years ago
Dustin Wilson
ad57bbd5a2
Added test to cover tab indention
2 years ago
Dustin Wilson
5f1a97295e
Minor clean-up
2 years ago
Dustin Wilson
08ba468214
100% coverage on pretty printing
2 years ago
Dustin Wilson
b145e1ebc9
Started fixing whitespace collapsing per specification
2 years ago
Dustin Wilson
497a740c3d
More work on pretty printing
3 years ago
Dustin Wilson
991b5ae540
Added Parser::parseInto
3 years ago
J. King
511935676e
Test new serializer options
3 years ago
J. King
2f1efc1653
Lay xmlns attribute uncertainty to rest
3 years ago
J. King
be9f677bd8
Confirm xmlns attributes on HTML elements work
3 years ago
J. King
3fc966226b
Fix BOM handling
3 years ago
J. King
2e2563cf15
Document serializer
3 years ago
J. King
775736da41
Improve tree constructor coverage
3 years ago
J. King
855e425ca5
Cover the rest of the serializer
3 years ago
J. King
48dca59eb1
Further improve coverage
3 years ago
J. King
3c647c2284
Improve coverage further
This fixes a bug with forms within templates
3 years ago
J. King
8d388ef8cd
Improve coverage
This uncovered three bugs:
- Unconsuming at EOF with error reporting off yielded incorrect tokens
- Mangled end tags in foreign content were not being matched correctly
- Broken characters produced a fatal error with error reporting on
3 years ago
J. King
973a41a39c
Fix up some tests
3 years ago
J. King
2889107844
Flesh documentation for serializer test format
The example is still incomplete
3 years ago
J. King
3de0f4343c
Fix remaining serializer bugs
3 years ago
J. King
b8d4636664
Re-import of serializer tests
Some errors remain
3 years ago
J. King
e74d0d0f31
Prototype of serializer
Templates will need further handling
3 years ago
J. King
7b9a6ca472
Fix fragment parsing with template context
3 years ago
J. King
c8c06412d1
Simplify parser API
3 years ago
J. King
21fd99e40a
Remove most uses of parser exceptions
3 years ago
J. King
a6df609348
Remove all references to "tree builder"
3 years ago
J. King
6de6599411
Fix one last test
3 years ago
J. King
32780838bf
Remove subproject for WPT tests
3 years ago
J. King
e26af87ee4
Tests for XML declaration-base encoding detection
Also adds a setting for controlling the number of pre-scan bytes
3 years ago
J. King
7901593961
Fix for the "after body" mode
3 years ago
J. King
29127c51ee
Update encoding pre-scan
Official tests are available in WPT,but will need a new test harness
3 years ago
J. King
4b5248f75a
Address most remaining test mismatches
3 years ago
J. King
b34774fdec
Simplify foreign content processing
3 years ago
J. King
f9ed170c3b
Ignore failure with xmlns test
3 years ago
J. King
beefeb66a6
Patch errors in tests properly
3 years ago
J. King
4b5d3c4be5
Patch out old errors less incorrectly
The truly correct way is to map new error symbols to one or more old
error symbols, to come later
3 years ago
J. King
1b24ea7a5b
Remove most test patches
Duplicate symbols should be removed only if there are also new errors;
this will come in a later commit.
Tests indicative of genuine errors are skipped for now.
3 years ago
J. King
905ea234bc
Align parser better with test suite
1. Null-character tree construction errors have been added
2. Comments outside the root element are now tested for correctly
3 years ago