Project

General

Profile

Feature #7

Feature #6: make it possible to automatically download page's served scripts and save them

find some convenient way to automatically re-add intrinsic javascript

Added by koszko 5 months ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
07/01/2021
Due date:
% Done:

0%

Estimated time:

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.

History

#1

Updated by jahoti 3 months ago

A hacky and flawed solution to this might be to simply scan the nodes and rever event-handler attribute blocking.

#2

Updated by koszko 3 months 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

#3

Updated by jahoti 3 months 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.

Also available in: Atom PDF