Skip to content

Selection.anchorNode page doesn't mention it could be null #39455

@gavinmorrow

Description

@gavinmorrow

MDN URL

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

What specific section or headline is this issue about?

The first paragraph.

What information was incorrect, unhelpful, or incomplete?

In the description on the page about Selection, it says that anchorNode may be null 1. However, it doesn't mention that on the dedicated page for anchorNode.

What did you expect to see?

I expected it to note if it would be null especially on the dedicated page. The sentence from the Selection page could be added to the end of the first paragraph.

Can return null if selection never existed in the document (e.g., an iframe that was never clicked on).

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

https://developer.mozilla.org/en-US/docs/Web/API/Selection#selection.anchornode

Do you have anything more you want to share?

No response

MDN metadata

Page report details

Metadata

Metadata

Assignees

No one assigned

    Labels

    Content:WebAPIWeb API docsgoal: completeness(Experiment label) Issues about content missing important/relevant details.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions