diff --git a/page/skooma.html b/page/skooma.html index 889ec55..8246250 100644 --- a/page/skooma.html +++ b/page/skooma.html @@ -94,6 +94,17 @@ return button +

The magic dataset attribute can be used to set values in the object's data-set

+

+ + return html.div({ dataset: { name: "user" } }) + + + let div = document.createElement("div") + div.dataset.name = "user" + return div + +

Adding a shadow-root to the new element can be done with the magic shadowRoot property.