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
Dustin Wilson
1ca312d8c6
Added getElementsByClassName to DOM
3 years ago
Dustin Wilson
afafbe3c31
Fixed a couple of pretty printing bugs
3 years ago
Dustin Wilson
9899b2fb81
Finishing up pretty printing
3 years ago
Dustin Wilson
9177ed6074
Cleaning up
3 years ago
Dustin Wilson
a8d146fad4
Pretty printing works (mostly) but is a mess right now lol
3 years ago
Dustin Wilson
82eb4828ed
More pretty printing work, cleanup of DOM methods
3 years ago
Dustin Wilson
ebcf7d091e
Continuing work on pretty printing
• New abstract class AbstractElement. Exists so Element can extend new
getters inherited from ContainerNode.
• Folded all serialization functionality into Document, but each node
type's __toString method still works.
• Text now has a couple of nonstandard sibling methods, but those will
be put in their own trait in the future as it's duplicate code from
Element
• ContainerNode and Element both now contain some DOM4 properties
3 years ago
Dustin Wilson
70f8769c93
Starting to move all DOM actual serialization to Document::serialize
3 years ago
Dustin Wilson
8be1364737
Started work on pretty printing
3 years ago
Dustin Wilson
4a7511dd49
More docs theming
3 years ago
Dustin Wilson
26444ee896
Started theming the docs
3 years ago
Dustin Wilson
cab43b27fc
Added Comment to documentation
3 years ago
Dustin Wilson
36ffdc4dd2
More documentation
3 years ago
J. King
7f2f2337d4
Tests for inner/outerHTML getting
3 years ago
J. King
83653f3769
Fix getAttribute()
3 years ago
J. King
3730a8b3f3
Tests for Element::hasAttribute()
3 years ago
Dustin Wilson
3a431fe134
Optimize nodes
3 years ago
J. King
b0c06323f9
Tests for setting attribute nodes
3 years ago
J. King
f08f1a1a37
Fix up attribute testing
Coverage is not more specific, and handling of prefixes is improved
3 years ago
J. King
45411b7ccc
Test attribute setting better
3 years ago
Dustin Wilson
0d7f7ef0bf
More documentation updates, started on Element documentation
3 years ago
Dustin Wilson
89f1b6eebc
Remove errant die
3 years ago
Dustin Wilson
80d71e1fb9
Fix reference for Document::body
3 years ago
Dustin Wilson
d9e3a008a2
More documentation work
3 years ago
Dustin Wilson
5b21004221
Documentation additions, Document::body
3 years ago
Dustin Wilson
40fa000fdf
Cleanup comments
3 years ago
Dustin Wilson
3a0ffafc7a
Changed ElementRegistry to ElementMap, destructors for ElementMap
3 years ago
J. King
dddb7601f4
Fix typos
3 years ago
J. King
71726e16f7
Do not use appendChild for attributes
3 years ago
Dustin Wilson
6522a5b9d3
Fixed template element referencing, appending attribute nodes removed
3 years ago
J. King
b53274fbdf
Start on attribute-setting tests
3 years ago
J. King
2bfb77c081
Test template and attribute creation
3 years ago
Dustin Wilson
f5cca19355
More documentation, disabled C14N
3 years ago
Dustin Wilson
43e312b2af
Added beginnings of documentation
3 years ago