-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add testcase and fix for attributes deduplication in form and empty elements #1950
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, would like to get the duplicate code factored out.
(BTW, I am happy to make that change myself if you prefer, LMK.) |
Thank you for responding to my PR. I took a quick look at the code path and I'm not familiar enough with the code to try any major refactoring but I can certainly factor out the deduplication code. |
Also add new testcase and fix for attributes deduplication in empty tags
To use spaces instead of tabs as rest of the file
When looking at the code path, I realized that deduplication was not applied for empty tags either so I added another test case and fix for empty tags as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks great. I added a commit that makes the test case parameterized, to remove some duplication.
Thanks, merged! |
This is an attempt to handle deduplication of attributes in form-elements and should fix #1949