Skip to content

support event delegation from inside iframe's contentDocument #492

Answered by ryansolid
cynecx asked this question in Q&A
Discussion options

You must be logged in to vote

Honestly I don't know. I didn't realize this was a thing. I've only ever used iFrames to load content from other sites. If I understand you are writing to the document in the iframe from the parent. The child has no scripts or knowledge of Solid so it doesn't run stuff in its own context. Instead all code is basically run in the context of the parent document.

I don't know how the compiler could ever account for this. I can extend delegateEvents to provide an optional document object but you'd need to manually put all the events in yourself. I'm open to adding the second optional parameter, but I'm not sure what else can be done. You could turn off event delegation in your builds (althoug…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@cynecx
Comment options

@ryansolid
Comment options

@cynecx
Comment options

Answer selected by cynecx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants