Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

<datalist> does not work? #8317

Open
FezVrasta opened this issue Jul 7, 2014 · 9 comments
Open

<datalist> does not work? #8317

FezVrasta opened this issue Jul 7, 2014 · 9 comments

Comments

@FezVrasta
Copy link
Contributor

If I insert inside Brackets (using the dev console) a datalist element:

<input list="browsers" />
<datalist id="browsers">
  <option value="Chrome">
  <option value="Firefox">
  <option value="Internet Explorer">
  <option value="Opera">
  <option value="Safari">
</datalist>

The datalist does not work but is shown as a simple input text.. Why?

@peterflynn
Copy link
Member

@FezVrasta brackets-shell is currently based on Chromium 29. Does Chromium 29 support <datalist>? Caniuse implies it's only supported in 34+.

We'd like to update to a newer Chromium (probably either 33 of 35), but we've run into stability problems with both of those CEF versions, so we've been unable to so far.

@le717
Copy link
Contributor

le717 commented Jul 9, 2014

To answer your question, @peterflynn, both MDN and Caniuse report <datalist> support starting in Chrome 20.

http://caniuse.com/datalist

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist#Browser_compatibility

@peterflynn
Copy link
Member

Huh, I wonder what the difference is between http://caniuse.com/#feat=datalist and http://caniuse.com/datalist...

Anyway, it seems the problem is that CEF (Chromium embedded) doesn't support it: https://code.google.com/p/chromiumembedded/issues/detail?id=906. Marking 'tracking' since there's nothing we can do until that issue is fixed.

Once PR #7227 lands, you'll be able to use QuickSearchField as a substitute, though (with the bonus that it looks a lot nicer!)

@le717
Copy link
Contributor

le717 commented Jul 10, 2014

@peterflynn The difference is I clicked the "Show all tables" link near the top of http://caniuse.com/#feat=datalist, which expanded the support tables to show all logged versions and changed the URL to http://caniuse.com/datalist. 😉

@peterflynn
Copy link
Member

Ohh... you mean "Show all versions"? I missed that little link... ("Show all tables" just takes you back to http://caniuse.com/ afaict).

@le717
Copy link
Contributor

le717 commented Jul 10, 2014

Oh yea, duh, show all versions. I was on mobile when I sent that message, and I just edited the URL to access the complete version list. I didn't realize Show all tables didn't do that. The new version of Caniuse should help clear things up.

OK, I've derailed this whole issue now. :oops:

@peterflynn
Copy link
Member

No worries -- thanks for showing me how to actually use that site correctly :-)

@cfjedimaster
Copy link
Contributor

@peterflynn - will people be able to use QuickSearchField in ad hoc extensions? In random fields I mean?

@peterflynn
Copy link
Member

That's the plan, yep

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants