Skip to content

selectedcontent issues #712

@untitaker

Description

@untitaker

There are a few issues with the selectedcontent implementation of html5ever:

  • The implementation of "clone an option into selectedcontent" is wrong. It does not create a new documentfragment but reparents options onto the root of the current document. I'm not sure how that could've happened, I guess that since Relax <select> parser (WHATWG proposal) #560 was opened the spec has been iterated on.
  • whatwg/html@4ce63af1 removes the </option> transition, and says that the algorithm for "maybe clone an option" needs to be run everytime any option is popped off the stack of open elements. html5ever is lagging behind here, and it seems that runnign something everytime the stack of open elements is truncated requires a larger refactor.

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