Skip to content

Setting id property in HTMLElement should affect innerHTML, outerHTML, and toString() methods. #291

@fiddleplum

Description

@fiddleplum

Right now when you set the id property, as opposed to setAttribute('id'), and then see the output of innerHTML, it doesn't reflect the updated id value.

The property id is populated correctly from the attribute id during the constructor, but subsequent changes to id don't change the innerHTML. It is good that the attribute isn't affected, as it only reflects the initial value, but innerHTML and similar members should reflect the "live" value, which includes the property.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions