Y
Hacker News
new
|
ask
|
show
|
jobs
by
jaffathecake
780 days ago
Yeah, that works, but it requires func() to be on the global scope. It doesn't scale as a solution.
1 comments
debugnik
780 days ago
Does that matter now that we've got (possibly declarative) shadow roots as the units of DOM encapsulation?
link
jaffathecake
780 days ago
Yes, even more so. You end up with encapsulated DOM without encapsulated script.
link