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
Cool project! I've been following HTM for a while and created an implementation on top of it for Sinuous. Related to this issue, is this comment still accurate?
HTM’s approach would also need to be adapted for contextual namespaces, such as SVG, since it creates content bottom-up
It creates content bottom-up but you'll need to define the namespace either way I think, unless you create a tag name mapping of some sort which is gonna be pretty big. Or is there a way to detect this cheaply?
@luwes Thanks. When in the HTML namespace (which is the assumed namespace when you use the html tagged template literal) only the <svg> element opens a scope for the SVG namespace; you don’t need to know all the names of SVG elements.
Similar to #7, there are a few attributes that have implicit namespaces in SVG.
In order to do this, we’d need to track whether we’re in the SVG namespace, because it should only apply to SVG elements.
The text was updated successfully, but these errors were encountered: