Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Unified Diff: chrome/test/data/autofill/heuristics/input/01_autocomplete_attribute_advanced.html

Issue 11198048: [Autofill] Update the autocomplete types implementation to match the current HTML spec. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/autofill/heuristics/input/01_autocomplete_attribute_advanced.html
diff --git a/chrome/test/data/autofill/heuristics/input/01_autocomplete_attribute_advanced.html b/chrome/test/data/autofill/heuristics/input/01_autocomplete_attribute_advanced.html
new file mode 100644
index 0000000000000000000000000000000000000000..e16d43531990718d5a2d660daf39eb4b3b187403
--- /dev/null
+++ b/chrome/test/data/autofill/heuristics/input/01_autocomplete_attribute_advanced.html
@@ -0,0 +1,33 @@
+<!-- Whitespace should be trimmed; case should be normalized. -->
+<form action="autocompletetype.html" method="post">
+ <input id="1.n" autocomplete=" NAME "><br>
+ <input id="1.e" autocomplete=" WoRk eMaIl"><br>
+ <input id="1.a" autocomplete=" SECTION-one SHIPping street-address"><br>
Dan Beam 2012/10/19 00:12:44 nit: trimmable space at end
Ilya Sherman 2012/10/19 04:19:32 Done. (Made it a tab, even!)
+</form>
+
+<!-- The presence of at least one type hint should disable all other forms of
+ heuristics. -->
+<form action="autocompletetype.html" method="post">
+ <input id="2.name"><br>
+ <input id="2.email"><br>
+ <input id="2.t" autocomplete="tel"><br>
+ <input id="2.address"><br>
+</form>
+
+<!-- This is true even if the attribute value is invalid. -->
+<form action="autocompletetype.html" method="post">
+ <input id="3.name"><br>
+ <input id="3.email"><br>
+ <input id="3.o" autocomplete="other"><br>
+ <input id="3.address"><br>
+</form>
+
+<!-- But special values like "on" or "off" should have no effect. -->
+<form action="autocompletetype.html" method="post">
+ <input id="4.phone"><br>
+ <input id="4.email"><br>
+ <input id="4.a" autocomplete="on"><br>
+ <input id="4.b" autocomplete="oFf "><br>
+ <input id="4.c" autocomplete=""><br>
+ <input id="4.city"><br>
+</form>

Powered by Google App Engine
This is Rietveld 408576698