Commit graph

284 commits

Author SHA1 Message Date
a930055366 Update dependencies 2021-09-25 10:04:12 -04:00
62db85f571 Fix error in serializer 2021-09-25 10:03:56 -04:00
5f1c26d5da Starting work on DOM spec mixins 2021-09-24 16:23:32 -05:00
9d2b4acdae Created MagicProperties trait for managing getters and setters 2021-09-24 15:32:11 -05:00
637474cfba Make XPath object only created if asked for in Document 2021-09-24 12:34:07 -05:00
f40003997f Made variable name more clear in getElementsByClassName 2021-09-24 11:47:19 -05:00
19bcf7edb9 Error with bogus xpath query on element nodes in getElementsByClassName 2021-09-24 11:45:39 -05:00
1ca312d8c6 Added getElementsByClassName to DOM 2021-09-24 11:35:18 -05:00
afafbe3c31 Fixed a couple of pretty printing bugs 2021-09-23 12:09:01 -05:00
9899b2fb81 Finishing up pretty printing 2021-09-23 11:38:22 -05:00
9177ed6074 Cleaning up 2021-09-22 20:15:41 -05:00
a8d146fad4 Pretty printing works (mostly) but is a mess right now lol 2021-09-22 16:59:53 -05:00
82eb4828ed More pretty printing work, cleanup of DOM methods 2021-09-21 16:59:58 -05:00
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
2021-09-20 16:58:47 -05:00
70f8769c93 Starting to move all DOM actual serialization to Document::serialize 2021-09-19 23:21:36 -05:00
8be1364737 Started work on pretty printing 2021-09-17 16:55:20 -05:00
4a7511dd49 More docs theming 2021-04-26 16:07:13 -05:00
26444ee896 Started theming the docs 2021-04-23 16:47:41 -05:00
cab43b27fc Added Comment to documentation 2021-04-21 16:53:31 -05:00
36ffdc4dd2 More documentation 2021-04-21 12:26:07 -05:00
7f2f2337d4 Tests for inner/outerHTML getting 2021-04-19 18:40:00 -04:00
83653f3769 Fix getAttribute() 2021-04-19 17:14:30 -04:00
3730a8b3f3 Tests for Element::hasAttribute() 2021-04-14 18:41:35 -04:00
3a431fe134 Optimize nodes 2021-04-14 12:30:29 -05:00
b0c06323f9 Tests for setting attribute nodes 2021-04-10 17:58:58 -04:00
f08f1a1a37 Fix up attribute testing
Coverage is not more specific, and handling of prefixes is improved
2021-04-10 13:07:38 -04:00
45411b7ccc Test attribute setting better 2021-04-09 17:49:13 -04:00
0d7f7ef0bf More documentation updates, started on Element documentation 2021-04-09 14:18:57 -05:00
89f1b6eebc Remove errant die 2021-04-08 13:51:57 -05:00
80d71e1fb9 Fix reference for Document::body 2021-04-08 13:39:10 -05:00
d9e3a008a2 More documentation work 2021-04-08 12:37:03 -05:00
5b21004221 Documentation additions, Document::body 2021-04-08 12:04:57 -05:00
40fa000fdf Cleanup comments 2021-04-07 23:42:25 -05:00
3a0ffafc7a Changed ElementRegistry to ElementMap, destructors for ElementMap 2021-04-07 23:35:16 -05:00
dddb7601f4 Fix typos 2021-04-07 17:57:42 -04:00
71726e16f7 Do not use appendChild for attributes 2021-04-07 17:54:18 -04:00
6522a5b9d3 Fixed template element referencing, appending attribute nodes removed 2021-04-07 16:50:16 -05:00
b53274fbdf Start on attribute-setting tests 2021-04-05 17:42:24 -04:00
2bfb77c081 Test template and attribute creation 2021-04-05 17:42:24 -04:00
f5cca19355 More documentation, disabled C14N 2021-04-05 15:48:41 -05:00
43e312b2af Added beginnings of documentation 2021-04-05 12:43:11 -05:00
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
2021-04-01 18:33:00 -04:00
16acfa8d66 Lowercase in createElementNS 2021-04-01 18:18:31 -04:00
3389903957 Remove lowercasing of namespace URIs 2021-04-01 09:50:13 -05:00
53199fd53a Normalize when setting element names and attribute names 2021-04-01 09:42:43 -05:00
30e7e8c6a7 More tests 2021-03-31 15:48:01 -04:00
a8a585269e Optimize Element::appendChild 2021-03-31 14:14:27 -05:00
b39ce364aa Oops, removed mistakenly-commited Attributes trait 2021-03-31 14:05:35 -05:00
4bbc615e57 Id fix when appending attribute nodes, attribute fixes on Document 2021-03-31 14:02:27 -05:00
ee5e9298e7 Tests and fixes for DOCTYPE serialization 2021-03-31 14:14:41 -04:00