Open josepharhar opened 3 months ago
One other thing on this topic - from what I'm seeing so far, I don't think that changing the HTML parser to allow <input>
inside <select>
is going to be web compatible enough to ship.
I'm not proposing that <input>
is allowed in <select>
in the initial version of the new content model I'm proposing in WHATWG, so from that point of view this is no problem. However, for people who want to build things which we aren't sanctioning as accessible, they will have to use script to manually insert input elements into their selects. Maybe this is OK because it will nudge people towards building things which are accessible, and because those cases will probably need script anyway. If we find a way to make input elements accessible though in the future, we might have to re-introduce <datalist>
or something though.
Just to clarify, if we resolve this issue the way you're requesting, this will still be allowed, right?
<select>
<div class=container_for_styling_the_popover>
<option>...
<option>...
</div>
</select>
Yes, that will still be allowed
The Open UI Community Group just discussed [select] Removing the capability for the author to provide a datalist element
, and agreed to the following:
RESOLVED: remove <datalist> from the content model as an element that the author can provide in a <select>, because it doesn't provide any useful capabilities yet
RESOLVED: remove <datalist> from the content model as an element that the author can provide in a <select> because it doesn't provide any useful capabilities yet
Now that we are planning to change the parser to basically allow any tag within
<select>
(perhaps except<input>
), it's worth considering removing the ability for the author to provide their own<datalist>
element since<select>
already has the fallback one.Allowing the author to provide their own
<datalist>
allows them to listen to popover related events and call showPopover/hidePopover on it directly. I'm having a hard time building something that really needs these. For example, I tried making view transitions work but I found that in general making view transitions work on a popover is way too hard.The author can still target the fallback UA datalist with a pseudo-element, and it will be fully capable and support popover animations for example.
Can anyone think of a use case or capability that we need the author to be able to supply their own
<datalist>
for? If not, I'd like to remove this capability.