Dustin Wilson
e23041a6c3
Moved MagicProperties and Exception to framework repository
3 years ago
Dustin Wilson
302ca7839c
More tests
3 years ago
Dustin Wilson
bdeb2612b3
Adding property types and other PHP 7.4 stuff
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
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
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
d6f75116da
Nested templates don't work :/
3 years ago
Dustin Wilson
45129b4484
Cleaning up DOM walkers
3 years ago
Dustin Wilson
5f1b388cf7
Trying out HTMLElement
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
9d2b4acdae
Created MagicProperties trait for managing getters and setters
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
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()
4 years ago
Dustin Wilson
3a431fe134
Optimize nodes
4 years ago
J. King
f08f1a1a37
Fix up attribute testing
Coverage is not more specific, and handling of prefixes is improved
4 years ago
J. King
45411b7ccc
Test attribute setting better
4 years ago
Dustin Wilson
80d71e1fb9
Fix reference for Document::body
4 years ago
Dustin Wilson
3a0ffafc7a
Changed ElementRegistry to ElementMap, destructors for ElementMap
4 years ago
J. King
dddb7601f4
Fix typos
4 years ago
J. King
71726e16f7
Do not use appendChild for attributes
4 years ago
Dustin Wilson
6522a5b9d3
Fixed template element referencing, appending attribute nodes removed
4 years ago
J. King
b53274fbdf
Start on attribute-setting tests
4 years ago
Dustin Wilson
f5cca19355
More documentation, disabled C14N
4 years ago
Dustin Wilson
3389903957
Remove lowercasing of namespace URIs
4 years ago
Dustin Wilson
53199fd53a
Normalize when setting element names and attribute names
4 years ago
Dustin Wilson
a8a585269e
Optimize Element::appendChild
4 years ago
Dustin Wilson
b39ce364aa
Oops, removed mistakenly-commited Attributes trait
4 years ago
Dustin Wilson
4bbc615e57
Id fix when appending attribute nodes, attribute fixes on Document
4 years ago
J. King
9eacd21c9d
Test edges of element serialization
4 years ago
J. King
d53b9237c4
Fix xmlns attributes properly
4 years ago
J. King
4c7953ddc8
Fix xmlns attributes
This exposes the attributes in the DOM via a workaround, making it
possible to serialize them like any other attribute
4 years ago
J. King
3114f3a9bb
Fix most serializer test failures
Three remain related to xmlns attributes
4 years ago
Dustin Wilson
1c20e458ea
Element::classList fixes
4 years ago
Dustin Wilson
c023e35f9c
Added Element::classList
4 years ago
Dustin Wilson
5ea14e81ca
Added TemplateElement
4 years ago
J. King
d33929f4a1
Change namespace; add copyright info
4 years ago
J. King
aaf85387be
Remove uses of is_null for consistency
4 years ago
Dustin Wilson
fbefea3073
Add Walk and Moonwalk generators
4 years ago
Dustin Wilson
4771a65239
Added setAttributeNode, setAttributeNodeNS support for id attributes
4 years ago
J. King
3915b41e47
Set id attributes as IDs
xml:id attributes also work on foreign content
4 years ago