Project

General

Profile

Feature #7

[Roadmap 34][Milestone] find some convenient way to automatically re-add intrinsic javascript

Added by koszko about 2 years ago. Updated over 1 year ago.

Status:
New
Priority:
Low
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.

Roadmap


Related issues

Blocks Haketilo - Feature #6: [Roadmap 34] make it possible to automatically download page's served scripts and save themNew07/01/2021

Actions

History

#1

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.

#2

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

#3

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.

#4

Updated by koszko over 1 year ago

  • Priority changed from Normal to Low
#5

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)
#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

Also available in: Atom PDF