Skip to content

bug: mockdoc lacks part api implementation #6420

@johnjenkins

Description

@johnjenkins

Prerequisites

Stencil Version

latest

Current Behavior

Stencil's mockdoc (used during internal spec tests and SSR) lacks an implementation of the part DOM api.

Expected Behavior

The part dom api should be implemented in mockdoc. It has a very similar (the same?) api to the classList api - which has already been implemented - so should be quite straightforward

System Info

Steps to Reproduce

Run this.element.part.add('something') and get Cannot read properties of undefined (reading 'add')

Code Reproduction URL

any

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug: ValidatedThis PR or Issue is verified to be a bug within StencilGood First IssueThis is a good first issue for someone wantng to contribute to Stencil!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions