Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Adding Autocapitalize #1072

Merged
merged 18 commits into from
Nov 29, 2017
Merged

Adding Autocapitalize #1072

merged 18 commits into from
Nov 29, 2017

Conversation

edent
Copy link
Member

@edent edent commented Nov 8, 2017

My first time adding a section. Please feel free to tell me what I've done wrong and how I need to fix it.

Fixes #208

Regarding Issue #208
use on text fields.

It currently provides three different capitalization methods; <code>sentences</code>,
<code>words</code>, and <code>characters</code>.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please provide a clear normative definition of each mode. Also, what happens if the attribute value is not one of those?

&lt;input type="text" autocapitalize="characters"&gt;

</div>

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please note the addition in the changes section (changes.include in the sections directory).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New version updates the changes.include

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

&lt;input type="text" autocapitalize="characters"&gt;

</div>

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please list the attribute in the attributes.include file in the sections folder

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New version updates the attributes.include

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@chaals
Copy link
Collaborator

chaals commented Nov 8, 2017

Could you please link tests? (Even a description of a manual procedure...)

@agcolom
Copy link
Member

agcolom commented Nov 9, 2017

Should there be a 4th valid option "none"? (to encourage no autocapitalisation by default)?

@edent
Copy link
Member Author

edent commented Nov 9, 2017

@agcolom best to discuss on #208 - but I think the default is to not have the attribute.

@chaals chaals mentioned this pull request Nov 9, 2017
Still not quite ready to merge
<td><{input}></td>
<td>Hint for the capitalization of the inputted text</td>
<td>"<a attr-value for="input/autocapitalize"><code>sentences</code></a>"; "<a attr-value for="input/autocapitalize"><code>words</code></a>"; "<a attr-value for="input/autocapitalize"><code>characters</code></a>"</td>
</tr>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please linebreak (yes, we're getting nitpicky here :) )

@@ -82,9 +84,9 @@
<dt><a href="https://github.com/w3c/html/commit/49073d89a7829dc3dbbfc3802f38bf9845902117">Remove references to Polyglot Markup</a></dt>
<dd>Removes references to the Polyglot Markup specification (now published as a W3C Note).</dd>
<dt><a href="https://github.com/w3c/html/commit/0b959a586e54fe4145b69303ebb11755cea26c09">Make menu and menuitem match reality</a></dt>
<dd>Removes the radio and checkbox types for menus; requires that <{menuitem}> has content; <{menuitem}> makes a command if it is labelled; changes terminology from "popup menu" state to "context menu" state.</dd>
<dd>Removes the radio and checkbox types for menus; requires that <{menuitem}> has content; <{menuitem}> makes a command if it is labelled; changes terminology from "popup menu" state to "context menu" state.</dd>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(This could use a linebreak too while you're here...)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure where you want a linebreak...? Looks the same as the other sections to me.

@chaals
Copy link
Collaborator

chaals commented Nov 22, 2017

A basic manual test

edent and others added 4 commits November 24, 2017 12:32
Add (pro-forma) default (may change), describe what User Agents should
do, ...
@chaals
Copy link
Collaborator

chaals commented Nov 25, 2017

Still to do

  • check default(s)
  • add IDL
  • add for textarea
  • update tests and results

@LJWatson
Copy link
Collaborator

Tested with iOS11/Safari and found that all tests passed for English. With the note that default behaviour on iOS is to switch to caps for the first character in a standard text input, so test 5 (sentences) passes by default.

@chaals
Copy link
Collaborator

chaals commented Nov 28, 2017

Hmm. This is close to "good enough for wide review". I'd like to be explicit that it is an enumerated attribute in the prose - see the autocomplete attribute as a model. And I am not sure about the defaults - on the one hand mobile browsers default to autocomplete="sentences" for textarea and some input states, on the other hand nearly everything else always defaults to autocomplete="none" ...

What will actually get implemented is pretty relevant...

ome editorial tweaks, missing things added.
chaals added 3 commits November 29, 2017 14:47
match reality...
don't forget this bit
(Probably more are due than this, but thanking some of the giants on
whose shoulders we stand is better than thanking none)
@LJWatson LJWatson merged commit cdd6c37 into master Nov 29, 2017
@chaals chaals deleted the 208-autocapitalize branch November 29, 2017 14:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Specify autocapitalize
4 participants