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.js
vendored
7
dist/esm.js
vendored
@@ -88,7 +88,12 @@ function x(e, ...t) {
|
||||
case "src":
|
||||
case "class":
|
||||
case "xlink:href":
|
||||
return d(f, u, "http://www.w3.org/1999/xlink");
|
||||
return d(
|
||||
f,
|
||||
u,
|
||||
/* this applies only to SVG elements, see setRemove/setRemoveNS */
|
||||
"http://www.w3.org/1999/xlink"
|
||||
);
|
||||
case "textContent":
|
||||
case "innerText":
|
||||
return c ? e.appendChild(document.createTextNode(u)) : R(e, f, u);
|
||||
|
Reference in New Issue
Block a user