Skip to content

Commit

Permalink
Relax <select> parser
Browse files Browse the repository at this point in the history
This patch makes the parser allow additional tags in <select> besides
<option>, <optgroup>, and <hr>, mostly by removing the "in select" and
"in select in table" parser modes.

In order to replicate the behavior where opening a <select> tag within
another open <select> tag inserts a </select> close tag, a traversal
through the stack of open elements was added which I borrowed from the
<button> part of the parser.

This will need test changes to be implemented in html5lib.

Fixes #10310
  • Loading branch information
josepharhar committed Aug 21, 2024
1 parent 8c74909 commit e08df7e
Showing 1 changed file with 125 additions and 305 deletions.
Loading

0 comments on commit e08df7e

Please sign in to comment.