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

Invalid Node Names in Event Handler #37

Open
ForbiddenEra opened this issue Mar 20, 2024 · 0 comments
Open

Invalid Node Names in Event Handler #37

ForbiddenEra opened this issue Mar 20, 2024 · 0 comments

Comments

@ForbiddenEra
Copy link

ForbiddenEra commented Mar 20, 2024

Hi,

The event handler for the nodes has the nodeName properties encoded as all capitals.

HTML specification says lowercase; while this seems to work on plain HTML sites, this breaks the event handler for anything using xHTML.

Unfortunately, this is an inconsistency and mis-implementation by browser vendors that has persisted due to compatibility reasons.

The fix would be to either convert all nodeName properties to upper/lowercase before comparison or using the localName property instead, which correctly returns lowercase values in both cases.

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

No branches or pull requests

1 participant