Dustin Wilson
2c310d2f36
Simplified Walk::walkShallow
3 years ago
Dustin Wilson
911d6c1801
Node, Walk code coverage 100%
3 years ago
Dustin Wilson
136b1420a2
MagicProperties 100% covered, starting Node
3 years ago
Dustin Wilson
302ca7839c
More tests
3 years ago
Dustin Wilson
16174b9937
DocumentFragment, DOMException, Exception 100% code coverage
3 years ago
Dustin Wilson
c289605756
Document 100% code coverage
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
bdeb2612b3
Adding property types and other PHP 7.4 stuff
3 years ago
Dustin Wilson
728ef845ea
Formatted serializing is now covered
3 years ago
Dustin Wilson
d742a9e0d7
Test harness built for formatted serializing, fixed serializer bugs
3 years ago
Dustin Wilson
9706645f39
Minor cleanup
3 years ago
Dustin Wilson
1947e337fb
Pre insertion validity fully tested
3 years ago
Dustin Wilson
8888179bd8
Worked on pre insertion validity coverage and bugs in it
3 years ago
Dustin Wilson
081929c281
Code coverage; Document 82.76%
• Moved all of preInsertionValidity to ParentNode; removed
AbstractDocument
• Added host property to HTMLTemplateElement
• Increased required PHP version to 7.4
3 years ago
Dustin Wilson
10269fc2f1
Working on code coverage; Document 63.33%
3 years ago
Dustin Wilson
611bdd5d70
More Element tests
3 years ago
Dustin Wilson
58c6456fc1
Fixes and more Element tests
3 years ago
Dustin Wilson
7b427d4019
More tests
3 years ago
Dustin Wilson
7940aeac97
More tests, updated name coercion
3 years ago
Dustin Wilson
691c5334b1
More tests
3 years ago
Dustin Wilson
debaa3f388
Fixing template element references
• ElementSet is now ElementMap again because it's now internally a map
of a Document and an array of Elements, but it's public API is still
that of a set.
• Template elements are now only added as a reference in ElementMap when
they're appended to a document. If they're removed, they're removed from
ElementMap. If a template element's owner document is destructed then it
and all of the other template elements in the document are removed from
ElementMap.
3 years ago
Dustin Wilson
4eeb45b816
Added support for html namespace, 1 test fails now
3 years ago
Dustin Wilson
62103ce954
Tests fixed (so far)
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
4c95ec0086
Fixed gitignore
3 years ago
Dustin Wilson
4deab6b1ac
Upgraded deps, started rewriting tests
3 years ago
Dustin Wilson
fbd5c9ca59
Cleaning up traits
3 years ago
Dustin Wilson
cca9ab04b8
All tests (so far!) pass
3 years ago
Dustin Wilson
e22e23da0c
HTMLTemplateElements are now properly created when importing nodes
3 years ago
Dustin Wilson
477930fa4c
Bit of cleaning
3 years ago
Dustin Wilson
4267c56188
Nested templates may be working
3 years ago
Dustin Wilson
d6f75116da
Nested templates don't work :/
3 years ago
Dustin Wilson
eaf51dc738
Added documentation for DOM walkers
3 years ago
Dustin Wilson
45129b4484
Cleaning up DOM walkers
3 years ago
Dustin Wilson
5f1b388cf7
Trying out HTMLElement
3 years ago
Dustin Wilson
ee4fa55479
Removed property types
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
Dustin Wilson
b99cb53c57
DOM still a mess, but committing what I have for the moment
3 years ago
Dustin Wilson
f6fbe48c57
Return value on Parser::parse is now \DOMDocument
3 years ago
J. King
88af223a89
Parse to an unmodified DOM
3 years ago
J. King
a930055366
Update dependencies
3 years ago
J. King
62db85f571
Fix error in serializer
3 years ago
Dustin Wilson
5f1c26d5da
Starting work on DOM spec mixins
3 years ago
Dustin Wilson
9d2b4acdae
Created MagicProperties trait for managing getters and setters
3 years ago
Dustin Wilson
637474cfba
Make XPath object only created if asked for in Document
3 years ago
Dustin Wilson
f40003997f
Made variable name more clear in getElementsByClassName
3 years ago
Dustin Wilson
19bcf7edb9
Error with bogus xpath query on element nodes in getElementsByClassName
3 years ago