Fix bug introduced in latest version

This commit is contained in:
Talia 2022-04-28 09:11:11 +02:00
parent d706e09da1
commit 0f2e596c54
Signed by: darkwiiplayer
GPG key ID: 7808674088232B3E

View file

@ -80,6 +80,7 @@ const nop = object => object
const node = (name, args, options) => { const node = (name, args, options) => {
let element let element
let custom = getCustom(args) let custom = getCustom(args)
if ("nameFilter" in options) name = options.nameFilter(name)
if (options.xmlns) if (options.xmlns)
element = document.createElementNS(options.xmlns, name, {is: custom}) element = document.createElementNS(options.xmlns, name, {is: custom})
else else