Feature #7
[Roadmap 34][Milestone] find some convenient way to automatically re-add intrinsic javascript
0%
Description
We want to be able to save sites' scripts for local serving and editing and we want sites to work properly with such locally-served scripts. This is not going to be possible if we only save and later inject scrits apprearing as tags. We also need to handle "on*" events and similar.
Related issues
History
Updated by jahoti about 2 years ago
A hacky and flawed solution to this might be to simply scan the nodes and rever event-handler attribute blocking.
Updated by koszko about 2 years ago
A hacky and flawed solution to this might be to simply scan the nodes and rever event-handler attribute blocking.
You mean re-allowing the actual intrinsics as they appear on the page they came with?
What I hoped for is that we could find a way to actually store them in storage and then re-apply them from storage. The challenge here is to find a way to address the relevant nodes. If, for example, a button has id "save_button", we could simply make its intrinsic re-applied to the node with that id on every page load. What's left is some scheme to identify elements that come without an id
Updated by jahoti about 2 years ago
You mean re-allowing the actual intrinsics as they appear on the page they came with?
I did, having not really thought through the consequences and just been excited to think of something.
What I hoped for is that we could find a way to actually store them in storage and then re-apply them from storage. The challenge here is to find a way to address the relevant nodes. If, for example, a button has id "save_button", we could simply make its intrinsic re-applied to the node with that id on every page load. What's left is some scheme to identify elements that come without an id.
Indeed, and in fact that would be the only acceptable option despite the remaining work you identified. Hopefully we can think of something.
Updated by koszko over 1 year ago
- Subject changed from find some convenient way to automatically re-add intrinsic javascript to [Roadmap 34][Milestone] find some convenient way to automatically re-add intrinsic javascript
- Description updated (diff)
- Parent task deleted (
#6)
Updated by koszko over 1 year ago
- Blocks Feature #6: [Roadmap 34] make it possible to automatically download page's served scripts and save them added