onclick attribute gets stripped when last #3926
Labels
status: testing required
Someone needs to confirm this issue's existence and write a test to prevent the fix from regressing.
type: bug
A problem that should not be happening
Milestone
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.
The text was updated successfully, but these errors were encountered: