J. King
d499fac607
Document DOMParser
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
b7535c9b61
Avoid modifying the XML string where possible
1 year 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.
1 year ago
J. King
fbdd72cf7f
Don't use DOMs as encoding signals
Instead convert UTF-16 and manipulate XML declarations
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
2b39319894
Fall back on XML parser in cases of unsupported encodings
1 year ago
J. King
f9e4029b5b
Fix syntax error
1 year 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
1 year ago
J. King
7e688adf17
Add XML parsing to DOMParser
Handling of XML parse error may be wrong
1 year ago
J. King
398180fee6
Partial implementation of DOMParser
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
fa0591bd9c
Remove changelog
It was not being kept up to date
1 year ago
J. King
98c7b5bbae
Update dependencies
1 year ago
J. King
e11401d10d
Avoid dynamic property creation
1 year ago
J. King
9097e61d97
Avoid use of @ operator
1 year ago
Dustin Wilson
02ec5df3fe
Make Serializer "block" query look for descendants rather than children
2 years ago
Dustin Wilson
61b842fa74
Added 'groupElements' serializer option
2 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
2 years ago
Dustin Wilson
8e087054df
Dependency updates, added tbody to serializer "block" elements
2 years ago
Dustin Wilson
37f0fa8647
More Serializer fixes
2 years ago
Dustin Wilson
b908068603
Fixed error in pretty printing templates in preformatted content
2 years ago
Dustin Wilson
a8435f7c35
Added PHP 8.1 attributes to Stack methods to suppress deprecation errors
2 years ago
Dustin Wilson
f33cc4344b
Updates to documentation
2 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
Dustin Wilson
12b90b92d0
Making more progress
3 years ago
Dustin Wilson
11980813bb
Minor spacing fixes, everything still pretty borked
3 years ago
Dustin Wilson
e38b2be10f
Making progress on pretty printing
3 years ago
Dustin Wilson
497a740c3d
More work on pretty printing
3 years ago
Dustin Wilson
b687860120
Starting to integrate pretty printer
3 years ago
Dustin Wilson
c5a3d635d5
Updated MensBeam\DOM\Inner namespace
3 years ago