-
Notifications
You must be signed in to change notification settings - Fork 191
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
select: Naming of <selectedoption> #1112
Comments
For context here's the original discussion on naming: #808 There were a few proposals. I liked value or selectedvalue but it was pointed out that's not quite right because it's not actually the value. selected is perhaps too ambiguous? There's no prior art from which to base the naming off unfortunately. Potentially worth considering what might the element look like for select multiple in future? |
|
<selection> ?
…On Fri, 18 Oct 2024 at 12:41, Jake Archibald ***@***.***> wrote:
<selectedcontent> is the best I've got.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
--
Bruce Lawson
www.brucelawson.co.uk
@***@***.***
|
I kinda like |
I've seen a few folks that think |
I agree, |
What about repurposing the It probably doesn't work, but it seems at least conceptually similar since it's primarily displaying the result of a user action. |
That feels like a pretty big semantic switch. |
claude.ai thinks <select>
<button>
<choice>Apple</choice> <!-- automatically updates when selection changes -->
</button>
<option value="apple">Apple</option>
<option value="banana">Banana</option>
</select>
|
Here is our previous thread on naming, where we renamed it from I'd rather not use I like |
+1 on slectedcontent |
The Open UI Community Group just discussed
The full IRC log of that discussion<frehner> Hoping to gain enough context in the next couple of sessions to start scribing :)<gregwhitworth> jarhar: selectedcontent will be the new name for selectedoption <gregwhitworth> masonf: the name is confusing currently and my initial position and in programming it can be confusing. Using it as your first option in select and "oops it didn't work" <gregwhitworth> q+ <gregwhitworth> ack gregwhitworth <gregwhitworth> steve: Jake voted for selectedcontent as well <gregwhitworth> steve: to level set this is not a final solution <gregwhitworth> masonf: we don't make final decisions here but make recommendations <masonf> q+ <gregwhitworth> steve: only issue is that the name is verbose and long and it seems odd that the parent element is the name <gregwhitworth> steve: I do agree with Jake that it is quite confusing and only concern is it is long <gregwhitworth> steve: it solves the primary problem <gregwhitworth> masonf: it is selected and not select so it is slight variation. This is clear that it is just the content and not the option <jarhar> q? <masonf> ack mason <gregwhitworth> ack masonf <bkardell_> the output paradigm would be more useful if anyone outside this chat knew about <output> ;) <masonf> <output> is form associated, which adds even more stuff to deal with <jarhar> proposed resolution: rename the selectedoption element to selectedcontent <masonf> +1 <bkardell_> +1 <gregwhitworth> +1 <sarah> +1 <scott> +1 <jarhar> RESOLVED: rename the selectedoption element to selectedcontent |
This rename was decided here: openui/open-ui#1112 Change-Id: I5ed2a5b7dca3d6c62ad73c609eed898dca44cefd
This rename was decided here: openui/open-ui#1112 Change-Id: I5ed2a5b7dca3d6c62ad73c609eed898dca44cefd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5983471 Reviewed-by: Traian Captan <[email protected]> Commit-Queue: Joey Arhar <[email protected]> Cr-Commit-Position: refs/heads/main@{#1380043}
This rename was decided here: openui/open-ui#1112 Change-Id: I5ed2a5b7dca3d6c62ad73c609eed898dca44cefd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5983471 Reviewed-by: Traian Captan <[email protected]> Commit-Queue: Joey Arhar <[email protected]> Cr-Commit-Position: refs/heads/main@{#1380043}
This rename was decided here: openui/open-ui#1112 Change-Id: I5ed2a5b7dca3d6c62ad73c609eed898dca44cefd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5983471 Reviewed-by: Traian Captan <[email protected]> Commit-Queue: Joey Arhar <[email protected]> Cr-Commit-Position: refs/heads/main@{#1380043}
…ent>, a=testonly Automatic update from web-platform-tests Rename <selectedoption> to <selectedcontent> This rename was decided here: openui/open-ui#1112 Change-Id: I5ed2a5b7dca3d6c62ad73c609eed898dca44cefd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5983471 Reviewed-by: Traian Captan <[email protected]> Commit-Queue: Joey Arhar <[email protected]> Cr-Commit-Position: refs/heads/main@{#1380043} -- wpt-commits: 87038037a69d96cbfa83f2dc370f8478ff472851 wpt-pr: 49046
…ent>, a=testonly Automatic update from web-platform-tests Rename <selectedoption> to <selectedcontent> This rename was decided here: openui/open-ui#1112 Change-Id: I5ed2a5b7dca3d6c62ad73c609eed898dca44cefd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5983471 Reviewed-by: Traian Captan <[email protected]> Commit-Queue: Joey Arhar <[email protected]> Cr-Commit-Position: refs/heads/main@{#1380043} -- wpt-commits: 87038037a69d96cbfa83f2dc370f8478ff472851 wpt-pr: 49046
…ent>, a=testonly Automatic update from web-platform-tests Rename <selectedoption> to <selectedcontent> This rename was decided here: openui/open-ui#1112 Change-Id: I5ed2a5b7dca3d6c62ad73c609eed898dca44cefd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5983471 Reviewed-by: Traian Captan <tcaptanchromium.org> Commit-Queue: Joey Arhar <jarharchromium.org> Cr-Commit-Position: refs/heads/main{#1380043} -- wpt-commits: 87038037a69d96cbfa83f2dc370f8478ff472851 wpt-pr: 49046 UltraBlame original commit: 6393fac1affe9d3e6dd207155f579042ae319983
…ent>, a=testonly Automatic update from web-platform-tests Rename <selectedoption> to <selectedcontent> This rename was decided here: openui/open-ui#1112 Change-Id: I5ed2a5b7dca3d6c62ad73c609eed898dca44cefd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5983471 Reviewed-by: Traian Captan <tcaptanchromium.org> Commit-Queue: Joey Arhar <jarharchromium.org> Cr-Commit-Position: refs/heads/main{#1380043} -- wpt-commits: 87038037a69d96cbfa83f2dc370f8478ff472851 wpt-pr: 49046 UltraBlame original commit: 6393fac1affe9d3e6dd207155f579042ae319983
…ent>, a=testonly Automatic update from web-platform-tests Rename <selectedoption> to <selectedcontent> This rename was decided here: openui/open-ui#1112 Change-Id: I5ed2a5b7dca3d6c62ad73c609eed898dca44cefd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5983471 Reviewed-by: Traian Captan <tcaptanchromium.org> Commit-Queue: Joey Arhar <jarharchromium.org> Cr-Commit-Position: refs/heads/main{#1380043} -- wpt-commits: 87038037a69d96cbfa83f2dc370f8478ff472851 wpt-pr: 49046 UltraBlame original commit: 6393fac1affe9d3e6dd207155f579042ae319983
…ent>, a=testonly Automatic update from web-platform-tests Rename <selectedoption> to <selectedcontent> This rename was decided here: openui/open-ui#1112 Change-Id: I5ed2a5b7dca3d6c62ad73c609eed898dca44cefd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5983471 Reviewed-by: Traian Captan <[email protected]> Commit-Queue: Joey Arhar <[email protected]> Cr-Commit-Position: refs/heads/main@{#1380043} -- wpt-commits: 87038037a69d96cbfa83f2dc370f8478ff472851 wpt-pr: 49046
Sorry, I know bikeshedding is painful, but it's really awkward that "the
<selectedoption>
" and "the selected<option>
" are different things, even though they sound the same verbally.Try saying "the
<selectedoption>
contains a clone of the content of the selected<option>
" out loud. You need to say something like "the<selectedoption>
contains a clone of the content of the<option>
that is selected" to make it understandable, but that also sounds weird.It's a problem in code too:
The text was updated successfully, but these errors were encountered: