Skip to content

Throw InvalidNodeTypeError on DocumentType nodes #118

@pshaughn

Description

@pshaughn

Various methods that take a node and offset are specified as throwing IndexSizeError if the offset exceeds the node's length.
By WPT tests and by analogy with Range methods, these also need to throw InvalidNodeTypeError if the node is a DocumentType, and InvalidNodeType is the condition to check first for cases where both apply.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions