Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminate naming conflict between form elements and attribute #7490

Merged
merged 6 commits into from Jul 9, 2023

Conversation

ehuelsmann
Copy link
Member

@ehuelsmann ehuelsmann commented Jul 9, 2023

This may or may not initially have been a problem, but browsers today allow the elements on a form to be accessed as <form>.<element-name>. At the same time, they allow attributes of the form to be accessed as <form>.<attribute-name>. With the attribute and the button(s) both being named action, we're causing a conflict between the elements and the attributes. Renaming our "action" buttons to "__action" removes the clash and has the benefit that $form values starting with an underscore aren't persisted as form hidden values.

@ehuelsmann ehuelsmann requested a review from ylavoie July 9, 2023 14:00
@ehuelsmann ehuelsmann merged commit 65a6f73 into ledgersmb:master Jul 9, 2023
12 checks passed
@ehuelsmann ehuelsmann deleted the cleanup/rename-action branch July 9, 2023 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants