You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All the script elements containing inline scripts (which are visible on the page, for reasons described in plain.txt.htm), are all mutated with wombat's prologue to intercede on the use of globals, and this is all shown to the reader.
Expected results:
No wombat spam visible.
The fix:
Unlike with CSS and style elements, the text content of script elements containing inline script blocks is not live. Changing the value of the text node inside a style element at runtime has the effect of changing the applied style sheet, but the effect of changing the text of a script element at runtime is nil. So wombat should clean up after itself by iterating all of the script elements on a page, locating the prologue, and then deleting it.
Screenshot:
The text was updated successfully, but these errors were encountered:
Hm, this may be possible, but would be a bit tricky, since script elements can be removed and added dynamically. Possibly better approach would be to remove the wombat wrapping when returning the text of the script elements...
I've been experimenting with the largely unrecognized ability for modern web browsers to enable literate programming. For context, refer to:
I'll focus on the latter as a test case. Steps to reproduce:
Actual results:
All the script elements containing inline scripts (which are visible on the page, for reasons described in plain.txt.htm), are all mutated with wombat's prologue to intercede on the use of globals, and this is all shown to the reader.
Expected results:
No wombat spam visible.
The fix:
Unlike with CSS and style elements, the text content of script elements containing inline script blocks is not live. Changing the value of the text node inside a style element at runtime has the effect of changing the applied style sheet, but the effect of changing the text of a script element at runtime is nil. So wombat should clean up after itself by iterating all of the script elements on a page, locating the prologue, and then deleting it.
Screenshot:
The text was updated successfully, but these errors were encountered: