J. King
a5c94cc577
Fix XML encoding unconditionally
This is required because document encoding might be in the naughty list
5 months ago
J. King
d1e2d1b51a
Add XML parsing error info to attributes
Also cleans up XML parsing functionality to be easier to override
5 months ago
J. King
08b0e3855b
Specification update
5 months ago
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.
6 months ago
J. King
4e41632769
Document test filtering a bit more generically
2 years ago
J. King
2b8a31ce47
Add search element
2 years ago
J. King
d499fac607
Document DOMParser
2 years ago
J. King
6b863a1a85
Polish off DOMParser tests
2 years ago
J. King
504d713139
Simplify UTF-16 handling in DOMParser
2 years ago
J. King
b7535c9b61
Avoid modifying the XML string where possible
2 years ago
J. King
03a42a2343
Move the creation of documents to separate functions
This will make document creation easier to override for e.g. enhanced
DOM implementations.
2 years ago
J. King
fbdd72cf7f
Don't use DOMs as encoding signals
Instead convert UTF-16 and manipulate XML declarations
2 years 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.
2 years ago
J. King
2b39319894
Fall back on XML parser in cases of unsupported encodings
2 years ago
J. King
f9e4029b5b
Fix syntax error
2 years ago
J. King
9dcc379950
Allow encoding detection in DOMParser
For HTML the HTML parser's machinery is used; for XML we implement our
own logic for known encodings
2 years ago
J. King
7e688adf17
Add XML parsing to DOMParser
Handling of XML parse error may be wrong
2 years ago
J. King
398180fee6
Partial implementation of DOMParser
2 years ago
J. King
82b76b192c
Handle xmlns on HTML elements correctly
The test for when to produce a parse error was not correct previously
2 years ago
J. King
bd43403aa7
Fix xmlns on HTML elements when using HTML ns
2 years 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
2 years ago
J. King
fa0591bd9c
Remove changelog
It was not being kept up to date
2 years ago
J. King
98c7b5bbae
Update dependencies
2 years ago
J. King
e11401d10d
Avoid dynamic property creation
2 years ago
J. King
9097e61d97
Avoid use of @ operator
2 years ago
Dustin Wilson
02ec5df3fe
Make Serializer "block" query look for descendants rather than children
3 years ago
Dustin Wilson
61b842fa74
Added 'groupElements' serializer option
3 years ago
Dustin Wilson
c1dc4b55ce
Added form elements to serializer "block" elements
• select, fieldset, datalist, option, and optgroup are now treated as
block when pretty printing
• input, textarea, button, output are now treated as block only if not
the only child when pretty printing
3 years ago
Dustin Wilson
8e087054df
Dependency updates, added tbody to serializer "block" elements
3 years ago
Dustin Wilson
37f0fa8647
More Serializer fixes
3 years ago
Dustin Wilson
b908068603
Fixed error in pretty printing templates in preformatted content
3 years ago
Dustin Wilson
a8435f7c35
Added PHP 8.1 attributes to Stack methods to suppress deprecation errors
3 years ago
Dustin Wilson
f33cc4344b
Updates to documentation
3 years ago
Dustin Wilson
afaf10d602
Fixed yet another xmlns issue...
3 years ago
Dustin Wilson
cb57dd8e11
Added tests for serializer config warnings
3 years ago
Dustin Wilson
5495e7c81e
Fixed parameters for Serializer::getTemplateContent
3 years ago
Dustin Wilson
a76081fd18
Minor cleanup
3 years ago
Dustin Wilson
a4e1aa55d1
Changed typing for config in Serializer
3 years ago
Dustin Wilson
6ff01ee4f7
Changed serializer configuration to array
3 years ago
Dustin Wilson
ad57bbd5a2
Added test to cover tab indention
3 years ago
Dustin Wilson
5f1a97295e
Minor clean-up
3 years ago
Dustin Wilson
08ba468214
100% coverage on pretty printing
3 years ago
Dustin Wilson
8361ea0d88
Working on inline whitespace collapsing, not quite right yet
3 years ago
Dustin Wilson
b145e1ebc9
Started fixing whitespace collapsing per specification
3 years ago
Dustin Wilson
6da73a3dab
Fixing bugs exposed when trying to extend Serializer
3 years ago
Dustin Wilson
7defc1cc1d
Changed to using recursion to simplify pretty printing
3 years ago
Dustin Wilson
4cd3a9b03d
Trying a rewrite with recursion to simplify pretty printing
3 years ago
Dustin Wilson
50943199b2
Tons of fixes
3 years ago
Dustin Wilson
422b94581e
Starting working on indention of templates
3 years ago
Dustin Wilson
5ce120d8f3
Removed template from the block element list
3 years ago