diff options
author | bptato <nincsnevem662@gmail.com> | 2024-12-27 19:31:53 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-12-27 19:31:53 +0100 |
commit | ac8ec41c61294cbf6eaca6adab26723891378efa (patch) | |
tree | 2d0d90580bb91e207fc79fe39d8928dde6e938b8 /src | |
parent | b7043c915a97ff46814b815301b02bbeb023efae (diff) | |
download | chawan-ac8ec41c61294cbf6eaca6adab26723891378efa.tar.gz |
dom: set elIndex to -1 for AttrDummyElement
Diffstat (limited to 'src')
-rw-r--r-- | src/html/dom.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim index 2c1d5feb..84ffeb5b 100644 --- a/src/html/dom.nim +++ b/src/html/dom.nim @@ -3263,6 +3263,7 @@ proc delAttr(element: Element; i: int; keep = false) = attr.ownerElement = AttrDummyElement( internalDocument: attr.ownerElement.document, index: -1, + elIndex: -1, attrs: @[data] ) attr.dataIdx = 0 @@ -4746,6 +4747,7 @@ proc clone(node: Node; document = none(Document), deep = false): Node = ownerElement: AttrDummyElement( internalDocument: attr.ownerElement.document, index: -1, + elIndex: -1, attrs: @[data] ), dataIdx: 0 |