-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mdn: adapt for MDN Playground #888
Comments
Since url search params are all cleaned, we should find and save id params for iframes elsewhere in pre-process, and recover it in post-process. |
The *.mdnplay.dev host should be kept for download and process. |
See also code here |
Another thing to do is resources inside playground code, css and html. Note that it's almost impossible to process resources inside js code without indroducing a js engine or ast walking stuff, so it's non-goal for now. |
Link: https://developer.mozilla.org/en-US/blog/introducing-the-mdn-playground/
The playground contains 2 parts, one is https://developer.mozilla.org/en-US/play, which is a standalone page with features listed below:
The other part is embedding inside pages using
EmbedLiveSample
macro like this, the structure looks like this:The other structure looks like this:
Or a hidden one looks like this:
All these stuff make us confused, they make it really hard to connect code to the iframe, maybe we should just reuse the algorithm of from yari
It could be much better that we could process this at download time in node.js, make the inject code much simpler.
The text was updated successfully, but these errors were encountered: