Skip to content

The ':first' and 'first()' documantations are confusing #894

@RandallFlagg

Description

@RandallFlagg

A short discussion that led me here: jquery/jquery.com#120

https://api.jquery.com/first-selector/
https://api.jquery.com/first/

When reading this 2 docs the word elements once is referring to XML node(selector) and the other one is referring to array element(function).

The meaning should be unambiguous.

I would change the selector description to something like:
"Selects the first matched DOM element"

thanks

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions