Open dannluciano opened 1 month ago
How preserve attribute values missed from new content? For example:
let details1 = make('<details open><summary>Details1</summary>Something</details>') let details2 = make('<details><summary>Details2</summary>Something</details>') Idiomorph.morph(details1, details2); should.equal(null, details2.getAttribute("open")); details1.getAttribute("open").should.equal("");
I want that details1 have openattribute and the content of details2
details1
open
details2
Did you try with options { morphStyle: 'innerHTML' }?
{ morphStyle: 'innerHTML' }
How preserve attribute values missed from new content? For example:
I want that
details1
haveopen
attribute and the content ofdetails2