Wikidata:Property proposal/HTML autocomplete attribute
Jump to navigation
Jump to search
appropriate HTML autocomplete attribute
[edit]Originally proposed at Wikidata:Property proposal/Generic
Description | the appropriate value of the autocomplete attribute in HTML |
---|---|
Represents | autocomplete attribute (Q87200292) |
Data type | String |
Domain | property |
Allowed values | specification of possible values |
Example 1 | given name (P735) → given-name |
Example 2 | family name (P734) → family-name |
Example 3 | languages spoken, written or signed (P1412) → language |
Example 4 | sex or gender (P21) → sex |
Source | official specification |
Expected completeness | eventually complete (Q21873974) |
Formatter URL | https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete-$1 |
Motivation
[edit]I am working on an html based application where a user can enter wikidata properties into text fields. to enable a web browser to make smarter autocomplete suggestions, it is possible to add a fitting autocomplete
attribute. this might also be used the other way around: in theory a browser developer might choose to autocomplete any text field with the most common values for that property in wikidata. Shisma (talk) 19:59, 6 March 2020 (UTC)
Discussion
[edit]- Support --SilentSpike (talk) 23:33, 8 March 2020 (UTC)
- Support --Nw520 (talk) 17:30, 9 March 2020 (UTC)
- Comment @Shisma: I removed your "formatter URL" from the proposal as (A) it didn't work (there are no anchors on that page that correspond to the strings you've provided) and (B) as a "string" property Wikidata won't automatically do anything with a "formatter URL" anyway. Also can you give some background on the context here? This doesn't seem to be a proposal from the W3C right? Who is behind it? ArthurPSmith (talk) 18:29, 9 March 2020 (UTC)
- ArthurPSmith that's a long story. but in short: it is the HTML standard. I added a working formatter url. 🙂 Shisma (talk) 19:34, 9 March 2020 (UTC)
- Support @ArthurPSmith: see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete for a list of autocomplete attributes. --SixTwoEight (talk) 18:43, 9 March 2020 (UTC)
- Support.--Arbnos (talk) 20:27, 11 March 2020 (UTC)
- Support Iwan.Aucamp (talk) 11:44, 12 March 2020 (UTC)
- @Shisma, SilentSpike, Nw520: @SixTwoEight, Arbnos, Iwan.Aucamp: Done, see corresponding HTML autocomplete attribute (P7964) --DannyS712 (talk) 18:35, 14 March 2020 (UTC)