mirror of
https://github.com/jaandrle/deka-dom-el
synced 2025-07-29 07:00:16 +02:00
🐛 update dom.js to set/remove attributes ("xlink:href")
This commit is contained in:
7
dist/esm-with-signals.js
vendored
7
dist/esm-with-signals.js
vendored
@@ -92,7 +92,12 @@ function w(e, ...t) {
|
||||
case "src":
|
||||
case "class":
|
||||
case "xlink:href":
|
||||
return i(f, a, "http://www.w3.org/1999/xlink");
|
||||
return i(
|
||||
f,
|
||||
a,
|
||||
/* this applies only to SVG elements, see setRemove/setRemoveNS */
|
||||
"http://www.w3.org/1999/xlink"
|
||||
);
|
||||
case "textContent":
|
||||
case "innerText":
|
||||
return o ? e.appendChild(document.createTextNode(a)) : j(e, f, a);
|
||||
|
Reference in New Issue
Block a user