Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jaffathecake
· 2y ago · 0 comments
Yeah, that works, but it requires func() to be on the global scope. It doesn't scale as a solution.
Comments
[–]
debugnik
2y ago
Does that matter now that we've got (possibly declarative) shadow roots as the units of DOM encapsulation?
[–]
jaffathecake
OP
2y ago
Yes, even more so. You end up with encapsulated DOM without encapsulated script.