-
Notifications
You must be signed in to change notification settings - Fork 12
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
Attribute priority: first wins #210
Comments
Core is used to fetch attributes by name with the |
It seems that There are specific cases where the last one is used. csrf tokens being the most important example. Should we consider taking the first of those? |
do you have examples of documents that have multiple csrf tokens inline? |
I have none. I can dig through the commit history to see if there is a spelled out justification for that, but my intuition tells me that if you have multiple CSRF tokens something has gone terribly wrong. |
I agree, I cannot think of a scenario where there would be multiple tokens rendered. But let's ask Chris today on our call |
Yeah, sounds good, if there aren't any concrete instances of attributes showing up with the wrong precedence i'm going to vote to close this issue. |
Accoridng to the HTML spec when it comes to duplicate attributes the first defined attribute is the one that wins. Subsequent attributes of the same name are ignored:
I just want to confirm that we are adhering to this as well in the SwiftUI client.
The text was updated successfully, but these errors were encountered: