Skip to content

Invalid sentence in the hover summary for TreeWalker lastChild method #2116

@GaurangTandon

Description

@GaurangTandon

Try this code:

const walker = document.createTreeWalker(document.body);
let x = walker.lastChild();

Now hover over the token "lastChild". I expected the summary comment to be a complete valid sentence, like this (copied from MDN):

The TreeWalker.lastChild() method moves the current Node to the last visible child of the current node, and returns the found child.

Instead, the hover highlight is an invalid incomplete sentence:

The TreeWalker.lastChild() method moves the current the found child.

I'm not sure how this happened specifically for this API - as the other API summaries looked correct. I'm not sure which other DOM APIs are affected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions