-
-
Notifications
You must be signed in to change notification settings - Fork 212
onclick attribute gets stripped when last #3926
Copy link
Copy link
Closed
Labels
status: testing requiredSomeone needs to confirm this issue's existence and write a test to prevent the fix from regressing.Someone needs to confirm this issue's existence and write a test to prevent the fix from regressing.type: bugA problem that should not be happeningA problem that should not be happening
Milestone
Metadata
Metadata
Assignees
Labels
status: testing requiredSomeone needs to confirm this issue's existence and write a test to prevent the fix from regressing.Someone needs to confirm this issue's existence and write a test to prevent the fix from regressing.type: bugA problem that should not be happeningA problem that should not be happening
While editing one of my severely outdated pages I noticed one extremely annoying behavior: onclick attribute gets stripped if it's the last attribute of a tag.
Example of stripping (add this code to a page and save):
Example of not stripping:
Considering that a lot of my links on certain pages are in form of buttons that rely on onclick attribute, quite a lot of information was lost due to me not knowing about this quirk.
I haven't tested this behavior outside of pages.