You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Still not too familiar with the JS world, but DocumentFragment (the contents of template.content) is not an instance of HTMLElement according to MDN so I think the code as-written is behaving "correctly". Personally I changed instanceof HTMLElement to instanceof Node and it seems to work, but i haven't tested it too well (idk what happens if you try to splice in multiple children, for example)
The text was updated successfully, but these errors were encountered:
#5 says it allows nestable facon invocations, but it doesn't seem to work :(
This
results in this being written to the document
🙁
Still not too familiar with the JS world, but
DocumentFragment
(the contents oftemplate.content
) is not an instance ofHTMLElement
according to MDN so I think the code as-written is behaving "correctly". Personally I changedinstanceof HTMLElement
toinstanceof Node
and it seems to work, but i haven't tested it too well (idk what happens if you try to splice in multiple children, for example)The text was updated successfully, but these errors were encountered: