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

Incorrect casing in example of node.nodeName #34685

Closed
John-Page opened this issue Jul 7, 2024 · 1 comment · Fixed by #34694
Closed

Incorrect casing in example of node.nodeName #34685

John-Page opened this issue Jul 7, 2024 · 1 comment · Fixed by #34694
Labels
Content:WebAPI Web API docs good first issue A good issue for newcomers to get started with.

Comments

@John-Page
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/Node

What specific section or headline is this issue about?

Instance property Node.nodeName

What information was incorrect, unhelpful, or incomplete?

The description is silent on the case of the node names returned. In practice when I try it, the names are uppercase such as DIV. Except text nodes return lowercase #text. I know I should be defensive as normalize the case before I test them,

What did you expect to see?

It would be good if the issue was addressed. If there is no standard, perhaps say that and suggest we should expect either case when testing them.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@John-Page John-Page added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jul 7, 2024
@github-actions github-actions bot added the Content:WebAPI Web API docs label Jul 7, 2024
@Josh-Cena
Copy link
Member

This is documented here: https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeName but I think the example given on the overview page ("audio") is incorrect.

@Josh-Cena Josh-Cena added good first issue A good issue for newcomers to get started with. and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Jul 7, 2024
@Josh-Cena Josh-Cena changed the title Case of node.nodeName Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs good first issue A good issue for newcomers to get started with.
2 participants