Dustin Wilson
4ab67fbdad
Added DOMTokenList, added back in tests
3 years ago
Dustin Wilson
b5f56b31a6
More tests on Element
3 years ago
Dustin Wilson
82c9dac054
Continuing with tests
3 years ago
Dustin Wilson
c03aebc52a
More bugfixes
3 years ago
Dustin Wilson
c533f8e63f
Minor bugfixes
3 years ago
Dustin Wilson
be1e6cb65f
DocumentOrElement 100% covered
3 years ago
Dustin Wilson
aa467058f3
Starting to fix a nasty PHP DOM bug; things are a bit of a mess
3 years ago
Dustin Wilson
c22a1b54d8
Minor fixes
3 years ago
Dustin Wilson
ceef07f1ae
Cleaning up test docblocks
3 years ago
Dustin Wilson
5e187634d2
Re-integrated serializer, more tests
3 years ago
Dustin Wilson
41129ddc07
Upgraded dependencies, added lots of tests for Node
3 years ago
Dustin Wilson
0eb04c81de
Added DocumentFragment & HTMLTemplateElement
3 years ago
Dustin Wilson
bba1bb2fe8
Added ParentNode::querySelector & ParentNode::querySelectorAll
3 years ago
Dustin Wilson
2b36c3a195
Changed walker APIs
3 years ago
Dustin Wilson
c5eba977c9
Element 100% code coverage
3 years ago
Dustin Wilson
9fe14c1af1
Manual garbage collection when using class lists
3 years ago
Dustin Wilson
83566256df
More code coverage progress
3 years ago
Dustin Wilson
d2fc1738ac
Upgraded mensbeam/html-parser
3 years ago
Dustin Wilson
e23041a6c3
Moved MagicProperties and Exception to framework repository
3 years ago
Dustin Wilson
136b1420a2
MagicProperties 100% covered, starting Node
3 years ago
Dustin Wilson
ca3661b2c2
Removed repo in composer.json for parser
3 years ago
Dustin Wilson
9260dbd1f1
Minor cleanup, updated dependencies
3 years ago
Dustin Wilson
7940aeac97
More tests, updated name coercion
3 years ago
Dustin Wilson
691c5334b1
More tests
3 years ago
Dustin Wilson
875963e697
Document changes
• Made Document::createAttribute and Document::createAttributeNS more in line with the DOM spec.
• Tests still fail because they're wrong
3 years ago
Dustin Wilson
d093e43066
Rewrote Document::createElement and Document::createElementNS
• Both now more closely follow the spec
3 years ago
Dustin Wilson
4deab6b1ac
Upgraded deps, started rewriting tests
3 years ago
Dustin Wilson
15aa960174
Now uses mensbeam\html-parser.
• Document::__construct now accepts \DOMDocument|string|null as its source.
• Document::serialize has been removed in favor of Document::saveHTML, making it more in line with PHP's DOM.
• Added Document::loadDOM for loading a vanilla PHP \DOMDocument into this library. As mentioned above Document::__constructor also accepts a \DOMDocument.
• Document::importNode will correctly convert an imported template element as a HTMLTemplateElement.
• TemplateElement is now HTMLTemplateElement.
• DOM walker methods now correctly check if the output of the closure is true
• Unnecessary test cases removed.
3 years ago
Dustin Wilson
5cc51cc6d5
Changing repo to HTML-DOM
3 years ago
J. King
a930055366
Update dependencies
3 years ago
Dustin Wilson
43e312b2af
Added beginnings of documentation
3 years ago
J. King
646278ed5e
Update dependencies
3 years ago
J. King
d33929f4a1
Change namespace; add copyright info
3 years ago
J. King
e498f014d2
Use fixed intl
3 years ago
J. King
3111c88376
Optimize character consumption
Relies on pending changes to intl
3 years ago
J. King
2637d76639
Update dependencies for PHP 8
3 years ago
J. King
a35e8c8ae5
Update character decoders
3 years ago
J. King
ad0a8ae27a
Replace Content-Type parser with proper version
4 years ago
J. King
f72809d621
Relax dependence on ctype
4 years ago
J. King
49f31015ac
Start on character encoding detection
4 years ago
J. King
1ed679c50d
Pass through surrogate characters
This fixes the last four failing tests
4 years ago
J. King
4e4aee2edd
Update intl dependency
4 years ago
J. King
1971892635
Basic skeleton of test suite
5 years ago
Dustin Wilson
0624e0be93
Pushing forward on TreeBuilder
• Updated mensbeam/intl dependency.
• Moved scope methods from Element to OpenElementsStack. They don't need to be used outside of the parser and don't make sense there.
• Cleaned up parse errors. Displaying what is expected or found is not helpful.
6 years ago
Dustin Wilson
69fa554d43
Updated \mensbeam\intl dependency
6 years ago
Dustin Wilson
1b172f4d61
Rewrote DataStream
• Changed DataStream from using an internal array storage to using /mensbeam/intl, much more efficient and in line with the specification.
• DataStream now calculates the line and column as it goes instead of relying upon a weird array of positions.
• Removed dependency on ext-intl.
6 years ago
Dustin Wilson
6f74630c98
Begin Implementation of Tree Builder
• Added parsing instructions for tokens in foreign content
6 years ago
Dustin Wilson
a89f6c9f09
Beginning Rewrite
6 years ago