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

Fix: Move href, src, and formaction from reflected attributes to regular attributes #95

Merged
merged 1 commit into from
Feb 9, 2023

Conversation

raquo
Copy link
Owner

@raquo raquo commented Feb 2, 2023

The mapping between props and attributes for those keys is not exactly an identity. Writing to these as attrs or props behaves identically, but reading the values out of the DOM does not, e.g. if the provided value is a relative URL like "/page.html", reading the attribute's value will return the same relative URL, but reading the prop's value will return a computed absolute URL that includes the domain name.

…lar attributes

The mapping between props and attributes for those keys is not exactly an identity, e.g. if the provided URL is a relative one like , reading the attribute's value will return the same relative URL, but reading the prop will return a computed absolute URL that includes the domain name.
@raquo raquo merged commit 231bde3 into master Feb 9, 2023
@raquo raquo deleted the unreflect branch February 9, 2023 00:44
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.

1 participant