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
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
0d7f7ef0bf
More documentation updates, started on Element documentation
4 years ago
Dustin Wilson
89f1b6eebc
Remove errant die
4 years ago
Dustin Wilson
80d71e1fb9
Fix reference for Document::body
4 years ago
Dustin Wilson
d9e3a008a2
More documentation work
4 years ago
Dustin Wilson
5b21004221
Documentation additions, Document::body
4 years ago
Dustin Wilson
40fa000fdf
Cleanup comments
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
J. King
2bfb77c081
Test template and attribute creation
4 years ago
Dustin Wilson
f5cca19355
More documentation, disabled C14N
4 years ago
Dustin Wilson
43e312b2af
Added beginnings of documentation
4 years ago
J. King
f660ecaad4
Use createElementNS when creating bare elements
This forces coercion in more situations, but has the advantage of being
consistent with creating an element in the HTML namespace
4 years ago
J. King
16acfa8d66
Lowercase in createElementNS
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
J. King
30e7e8c6a7
More tests
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
ee5e9298e7
Tests and fixes for DOCTYPE serialization
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
J. King
885cad0181
Conversion of WPT serializer tests
4 years ago
J. King
646278ed5e
Update dependencies
4 years ago
Dustin Wilson
91b9615f8a
Started DOM documentation
4 years ago
Dustin Wilson
1c20e458ea
Element::classList fixes
4 years ago
Dustin Wilson
a0fbe2d7bc
Changed repo name to HTML
4 years ago
Dustin Wilson
c023e35f9c
Added Element::classList
4 years ago
Dustin Wilson
4f2ded817c
Fixed ownerDocument issue with TemplateElement
4 years ago