Skip to content

selectedcontent removing steps vs pagehide (and unload) #12096

@annevk

Description

@annevk

What is the issue with the HTML Standard?

As part of implementing the selectedcontent element in WebKit we believe we encountered an issue. Namely that the removing steps itself end up itself removing nodes, which can result in the pagehide event, whose listeners would now have access to the DOM during an inconsistent state.

I think at least for that case we need something akin to post-removing steps perhaps or maybe custom element reaction timing?

(See also this older issue discussing some of the issues with these events: #4611.)

cc @josepharhar @noamr @domfarolino @mfreed7 @rniwa @smaug----

Metadata

Metadata

Assignees

No one assigned

    Labels

    agenda+To be discussed at a triage meetingtopic: selectThe <select> element

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions