Skip to content

Implement <select> parser “relaxation” — for “customizable” <select>#113

Merged
sideshowbarker merged 1 commit intomasterfrom
sideshowbarker/relaxed-select-parsing
Mar 17, 2026
Merged

Implement <select> parser “relaxation” — for “customizable” <select>#113
sideshowbarker merged 1 commit intomasterfrom
sideshowbarker/relaxed-select-parsing

Conversation

@sideshowbarker
Copy link
Member

@sideshowbarker sideshowbarker commented Dec 30, 2025

Relax select parsing to allow more child elements, and handle the selectedcontent element for cloning option content.

@hsivonen

This comment was marked as outdated.

@sideshowbarker

This comment was marked as outdated.

Copy link
Member

@hsivonen hsivonen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about the delay.

As discussed on Matrix, I think the way this patch makes the cloning work on what the parser saw is incorrect and the spec instead requires the cloning to work on what's in the live DOM, which may be different if the option element opens, the network stalls, setTimeout modifies the DOM, and network resumes.

Further remarks in an inline comment.

@sideshowbarker sideshowbarker force-pushed the sideshowbarker/relaxed-select-parsing branch 5 times, most recently from f7b4c0f to 87fe37a Compare February 2, 2026 05:35
@sideshowbarker sideshowbarker force-pushed the sideshowbarker/relaxed-select-parsing branch from 0466829 to b3bbf98 Compare February 20, 2026 12:55
Copy link
Member

@hsivonen hsivonen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry that I've been in a very bad time management loop.

This looks very good, but there are some minor issues.

Thank you!

@sideshowbarker sideshowbarker force-pushed the sideshowbarker/relaxed-select-parsing branch from b3bbf98 to 66f24d6 Compare March 12, 2026 13:27
@sideshowbarker sideshowbarker requested a review from hsivonen March 12, 2026 13:32
@sideshowbarker

This comment was marked as outdated.

@sideshowbarker sideshowbarker force-pushed the sideshowbarker/relaxed-select-parsing branch from 66f24d6 to 8ad0683 Compare March 12, 2026 14:12
@sideshowbarker
Copy link
Member Author

@hsivonen OK, all comments now resolved, I think. Ready for you to review again.

Copy link
Member

@hsivonen hsivonen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's merge this. Thank you and sorry about delay.

@sideshowbarker sideshowbarker requested a review from hsivonen March 14, 2026 13:01
Copy link
Member

@hsivonen hsivonen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you!

Relax “select”-element parsing to allow more child elements, and handle
the “selectedcontent” element for cloning “option”-element content.
@sideshowbarker sideshowbarker force-pushed the sideshowbarker/relaxed-select-parsing branch from 39f24fc to f275246 Compare March 17, 2026 06:11
@sideshowbarker sideshowbarker merged commit b5b1812 into master Mar 17, 2026
12 checks passed
@sideshowbarker sideshowbarker deleted the sideshowbarker/relaxed-select-parsing branch March 17, 2026 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants