Skip to content

Complete draft spec for customizable <select> #10548

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 162 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
Show all changes
162 commits
Select commit Hold shift + click to select a range
088b919
Update content model for customizable select
josepharhar Jul 16, 2024
16fadde
add legend element to optgroup
josepharhar Sep 5, 2024
1330ad5
Relax <select> parser
josepharhar Jul 15, 2024
3c57a19
Update content models for div and span
josepharhar Sep 16, 2024
e27ea83
combine select element lines
josepharhar Sep 16, 2024
44225a8
update categories
josepharhar Sep 16, 2024
c7deb50
Fix legend and remove note
josepharhar Sep 16, 2024
e4d071c
add todo to duplicate table
josepharhar Sep 16, 2024
8e17138
Define base appearance for <select>
josepharhar Jul 18, 2024
b87d93d
make rules more permissive
josepharhar Sep 18, 2024
21b8a2c
Define the `<selectedoption>` element
josepharhar Sep 18, 2024
9c72f6c
dont allow hr in option
josepharhar Sep 20, 2024
fb7ca7a
remove divs
josepharhar Sep 23, 2024
841e6ff
palpable content except for interactive content
josepharhar Sep 23, 2024
c6c208c
replace span with div
josepharhar Sep 26, 2024
0891d73
remove hr from optgroup because parser pr
josepharhar Sep 26, 2024
787e86f
remove images outside options and replace div with span inside option
josepharhar Sep 27, 2024
1aece11
add dl
josepharhar Sep 27, 2024
a1bd1e8
index
josepharhar Sep 27, 2024
e07cb01
re-add out of select cases
josepharhar Oct 2, 2024
5117d13
re-add reconstruct formatting elements
josepharhar Oct 3, 2024
7a93a56
Add UA stylesheet for <select> base appearance
josepharhar Jul 31, 2024
c04ca18
inline replacechildren
josepharhar Oct 4, 2024
09777e2
update content model of button element
josepharhar Oct 4, 2024
33370b7
fix non-select case
josepharhar Oct 9, 2024
76e0d7f
fix variable names
josepharhar Oct 9, 2024
58b9ca9
re-add reconstruct active formatting elements
josepharhar Oct 10, 2024
b8ba8e6
remove pop optgroup
josepharhar Oct 10, 2024
bfa1c18
remove outdated categories
josepharhar Oct 14, 2024
a4954ad
stuff
josepharhar Oct 15, 2024
15f67ea
phrasing content
josepharhar Oct 18, 2024
93ebe9e
improve element lists
josepharhar Oct 23, 2024
b6cebc4
make div and span equal again
josepharhar Oct 28, 2024
ced6411
Merge branch 'main' into selectcontentmodel
josepharhar Oct 28, 2024
c846c3e
add clear a selectedoption
josepharhar Nov 4, 2024
bef82d0
nits
josepharhar Nov 4, 2024
daabd98
allow no selectedoption
josepharhar Nov 4, 2024
bf2b5c5
Merge remote-tracking branch 'upstream/main' into selectedoption
josepharhar Nov 4, 2024
8863966
dont track mutations
josepharhar Nov 4, 2024
17ac232
rename to selectedcontent
josepharhar Nov 4, 2024
4960a77
add parser cloning
josepharhar Nov 4, 2024
57dced1
update phrasing except interactive
josepharhar Nov 8, 2024
eb42bf6
remove span from optgroup and select
josepharhar Nov 8, 2024
22b839c
reorder otherwise
josepharhar Nov 8, 2024
f40e975
add comment
josepharhar Nov 8, 2024
19c1c04
fix content model for span
josepharhar Nov 8, 2024
aa9436e
re-add datalist cases in option content model
josepharhar Nov 8, 2024
f8cd659
rewrote a lot
josepharhar Nov 11, 2024
9c41826
Merge branch 'main' into selectrendering
josepharhar Nov 11, 2024
10d1a14
improve things
josepharhar Nov 11, 2024
85b785f
prevent select button from being default submit button
josepharhar Nov 13, 2024
c37560a
Always reconstruct formatting context
josepharhar Nov 21, 2024
e615f9b
fix hr generate implied end tags
josepharhar Nov 21, 2024
53fa2f4
in reverse tree order
josepharhar Nov 21, 2024
5c0627d
<select><select>
josepharhar Nov 21, 2024
08bdb25
Merge branch 'main' into selectparser
josepharhar Nov 22, 2024
eab0bc6
legend element improvements
josepharhar Nov 22, 2024
7f9cc16
remove redundant phrasing content text
josepharhar Nov 22, 2024
bed729f
option datalist descendant
josepharhar Nov 22, 2024
1ee134d
only update first inserted selectedoption
josepharhar Nov 22, 2024
ec5244b
some nits
josepharhar Nov 22, 2024
9463f7e
improve name of option element ancestor select
josepharhar Nov 22, 2024
02b8cde
more nits
josepharhar Nov 22, 2024
e268b44
use post-connection steps
josepharhar Dec 3, 2024
5e5dcb3
Merge branch 'main' into selectrendering
josepharhar Dec 5, 2024
8dc3b0e
reverse tree order
josepharhar Dec 5, 2024
46f457e
code around elements
josepharhar Dec 5, 2024
d9bc0b4
nits
josepharhar Dec 5, 2024
72c006b
add open the picker paragraph
josepharhar Dec 5, 2024
2400840
add arrow key events
josepharhar Dec 5, 2024
ff59c9d
Merge branch 'main' into selectparser
josepharhar Dec 6, 2024
f8d1434
add select to list of end tags which generate implied end tags
josepharhar Dec 6, 2024
5059234
Merge branch 'main' into selectcontentmodel
josepharhar Dec 6, 2024
b44ec20
datalist child -> datalist descendant
josepharhar Dec 6, 2024
dcf650b
replace activation behavior for options
josepharhar Dec 6, 2024
c016a74
Merge branch 'main' into selectedoption
josepharhar Dec 9, 2024
f0984d3
Add disabled concept
josepharhar Dec 9, 2024
d8a05e5
Make value and selectedIndex setters trigger cloning
josepharhar Dec 11, 2024
9758b7b
Update focus another option
josepharhar Dec 13, 2024
4126c04
Only update first selectedcontent in tree order
josepharhar Dec 16, 2024
42ef681
fix variable names
josepharhar Dec 16, 2024
961fee3
more variable names
josepharhar Dec 16, 2024
999a14a
Remove removal steps
josepharhar Dec 17, 2024
4a175ce
use more <code>
josepharhar Dec 20, 2024
730b52f
Run more updates on insertion and removal
josepharhar Dec 20, 2024
d7d7714
ignore the token
josepharhar Dec 26, 2024
3c8e35d
add pageup/pagedown
josepharhar Dec 26, 2024
9991736
Merge branch 'main' into selectcss
josepharhar Dec 26, 2024
c6d7d21
update styles to latest resolution
josepharhar Dec 26, 2024
ba2d0df
add user-select:none
josepharhar Dec 26, 2024
e85aaab
use img alt text in label and text
josepharhar Jan 2, 2025
f9654e2
update elements table
josepharhar Jan 2, 2025
f3cfbac
update element content categories table
josepharhar Jan 2, 2025
e9c98a1
never include img descendants
josepharhar Jan 6, 2025
f0aa6ff
add includeAltText check
josepharhar Jan 6, 2025
56a216c
place-items -> align-items
josepharhar Jan 7, 2025
1117978
fix innerText
josepharhar Jan 13, 2025
77d2782
fix rfc keywords and undefined behavior
josepharhar Jan 13, 2025
e4e7197
improve optgroup legend labeling
josepharhar Jan 13, 2025
b3fbb47
first child -> child
josepharhar Jan 14, 2025
08ce60d
re-add descendants
josepharhar Jan 15, 2025
c151264
move more of option picking into algorithm
josepharhar Jan 16, 2025
7a18a77
move more user interaction stuff into algorithms
josepharhar Jan 16, 2025
97af7cd
remove comment
josepharhar Jan 16, 2025
45bbc64
add separate opt in for picker
josepharhar Jan 23, 2025
2449b1f
specfmt wrapping
domfarolino Jan 23, 2025
c5b6645
dom feedback
josepharhar Jan 23, 2025
76716d2
improve select.value setter
josepharhar Jan 23, 2025
7668dde
dom comments
josepharhar Jan 23, 2025
be8c488
more dom comments
josepharhar Jan 24, 2025
6929058
remove pre-insertion validity
josepharhar Jan 28, 2025
51f0f41
Remove ensure pre-insertion DOM link
domfarolino Jan 28, 2025
6f251fb
fix selectedIndex setter and algorithm declaration
josepharhar Jan 28, 2025
77f9886
remove run these steps
josepharhar Jan 29, 2025
11d436c
Merge branch 'main' into selectparser
josepharhar Feb 13, 2025
a2bdcc8
make input close select
josepharhar Feb 13, 2025
5eedddb
Merge branch 'main' into selectcontentmodel
josepharhar Feb 13, 2025
6f1d27c
only use alt text for rendering
josepharhar Feb 13, 2025
9694785
Merge branch 'main' into selectrendering
josepharhar Feb 13, 2025
2ad7144
add aria practices link for keyboard behavior
josepharhar Feb 13, 2025
b4cfd59
fix rfc error
josepharhar Feb 13, 2025
9d86011
add select.innerHTML fix
josepharhar Feb 14, 2025
3dfe74c
Improve option list iteration
josepharhar Feb 19, 2025
5282a71
Add check for primary mouse button
josepharhar Feb 20, 2025
c04849e
Fix typo in attribute
josepharhar Feb 24, 2025
0310090
address comments
josepharhar Feb 25, 2025
f375f1b
remove ", then"
josepharhar Feb 25, 2025
5a0aeac
add <code>
josepharhar Feb 26, 2025
44a7862
remove label attribute prohibition
josepharhar Feb 26, 2025
ac87396
Merge branch 'main' into selectcss
josepharhar Feb 27, 2025
9c53509
remove extra newlines
josepharhar Feb 27, 2025
d61e87d
update styles
josepharhar Feb 27, 2025
d18f554
Drop input inside select.innerHTML assignment
josepharhar Feb 27, 2025
39cc516
remove inherited property
josepharhar Feb 28, 2025
e944683
improve fragment case handling
josepharhar Feb 28, 2025
26d3281
use this instead of select
josepharhar Feb 28, 2025
4e758e2
add field-sizing
josepharhar Mar 10, 2025
bb763db
update pseudo-elements for native/primitive appearance
josepharhar Mar 13, 2025
8d55bcb
fix typo
josepharhar Mar 13, 2025
4acf5f6
add more base appearance
josepharhar Mar 13, 2025
473ca72
add content model notes
josepharhar Mar 13, 2025
0ea2648
remove extra newline
josepharhar Mar 20, 2025
381d2ec
specfmt
domfarolino Mar 21, 2025
650ca4e
add !important to interactivity
josepharhar Mar 21, 2025
134f651
Run specfmt
domfarolino Mar 24, 2025
f6be49e
use stack-pop
josepharhar Mar 24, 2025
3ee8051
remove duplicate >
josepharhar Mar 24, 2025
7f4581e
disallow <div> inside <span>
josepharhar Apr 1, 2025
1a8d313
nits
josepharhar Apr 8, 2025
1a621e1
used named arguments for node cloning algorithm
josepharhar Apr 8, 2025
117ca06
more nits
josepharhar Apr 8, 2025
263c54b
Merge branch 'main' into selectedoption
josepharhar Apr 8, 2025
27ff6b7
fix subtree argument reference
josepharhar Apr 8, 2025
b10cd35
Merge branch 'main' into selectcss
josepharhar Apr 8, 2025
b609929
Merge branch 'main' into selectparser
josepharhar Apr 8, 2025
dd49586
Merge branch 'main' into selectcontentmodel
josepharhar Apr 8, 2025
f702568
Merge branch 'main' into selectrendering
josepharhar Apr 8, 2025
9534289
Merge branch 'selectcontentmodel' into selectcomplete
josepharhar Apr 8, 2025
0430604
move option end tag steps out of in select mode
josepharhar Apr 8, 2025
8c70450
Merge branch 'selectedoption' into selectcomplete
josepharhar Apr 8, 2025
5047452
Merge branch 'selectrendering' into selectcomplete
josepharhar Apr 8, 2025
e556826
Merge branch 'selectcss' into selectcomplete
josepharhar Apr 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading