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

#204@minor: Add support for HTMLAnchorElement. #641

Merged

Conversation

IGx89
Copy link
Contributor

@IGx89 IGx89 commented Oct 30, 2022

Resolves #204

@capricorn86 capricorn86 force-pushed the task/204-support-html-anchor-element branch from 15e4296 to c54734d Compare November 9, 2022 23:29
@capricorn86
Copy link
Owner

capricorn86 commented Nov 9, 2022

Nice contribution @IGx89! 🌟

I have done some improvements to performance. It is the same logic, but will improve performance as the URL does not need to be reinitialized unless the "href" is changed.

There was also some problems with the handling of "blob" urls, which is hard to understand in the specs. Chrome doesn't seem to cater for the case, and FF added support for blob urls in v49 (reference).

How I interpret the specs, the idea is that property changes on the URL object should be ignored if it is a "blob" url with an opaque path as they are not valid on the URL. This is also how FF seem to have implemented it.

Please review the changes in the commit. Once you have done that, I am happy to release 🙂

@IGx89
Copy link
Contributor Author

IGx89 commented Nov 11, 2022

@capricorn86 thanks! Looks great. Good teamwork :). :shipit:

@capricorn86 capricorn86 merged commit e91b864 into capricorn86:master Nov 11, 2022
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.

Add support for HTMLAnchorElement
2 participants