Skip to content

I think "focus" does not belong here #37889

@juanlanus

Description

@juanlanus

MDN URL

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

What specific section or headline is this issue about?

main

What information was incorrect, unhelpful, or incomplete?

Hi There,
In the paragraph:

In the case of Selection.anchorNode being another type of node, Selection.anchorOffset returns the number of Node.childNodes the selection's focus is offset within the Selection.anchorNode.

it seems to me that the word "focus" might be confusing.
Actually, it confused me and prompted me to re-read it all.
Because "focus" is associated with the end of the selection.

Regards, and thanks for the excellent work.

Juan Lanus

What did you expect to see?

Something like "selection start".

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

No response

Do you have anything more you want to share?

Regards, and thanks for the excellent work.

Juan Lanus

MDN metadata

Page report details

Metadata

Metadata

Assignees

No one assigned

    Labels

    Content:WebAPIWeb API docsgoal: clarity(Experimental label) Issues about unclear/confusing/inconcise content.needs infoNeeds more information to review or act on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions