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

feat: Use localName when available #368

Merged
merged 2 commits into from
Aug 8, 2020
Merged

feat: Use localName when available #368

merged 2 commits into from
Aug 8, 2020

Conversation

eps1lon
Copy link
Owner

@eps1lon eps1lon commented Aug 8, 2020

localName is oftentimes what we actually want and oftentimes faster. tagName is usually computed from the localName. The living standard even hints at that by recommending user-agents to cache tagName internally:

User agents could optimize qualified name and HTML-uppercased qualified name by storing them in internal slots.

-- https://dom.spec.whatwg.org/#concept-element-qualified-name

@eps1lon eps1lon added the enhancement New feature or request label Aug 8, 2020
@changeset-bot
Copy link

changeset-bot bot commented Aug 8, 2020

🦋 Changeset is good to go

Latest commit: ad0d8fd

We got this.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@eps1lon eps1lon merged commit 5db24b1 into main Aug 8, 2020
@eps1lon eps1lon deleted the feat/local-name branch August 8, 2020 21:00
@github-actions github-actions bot mentioned this pull request Aug 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant