I'm having a lot of difficulty trying to persuade the Google toolbar
autofill to act consistently, for example
=======================
<html><head>
<title>autofill test</title>
</head><body>
<form method="POST" action="">
1 email <input type="text" name="email"><br>
2 name <input type="text" name="name"> <br>
3 email <input type="text" name="name"> <br>
4 name <input type="text" name="email"><br>
5 name <input type="text" name="name"> <br>
</form></body></html>
=====================
Note the deliberate inconsistencies in lines 3/4 - in the interest of
attempting to understand what's happening.
The autofill results are :
Email
Full name
Email
Email
Full name
If line 3 was picking up the value from looking not at the field name
but the preceding text, then surely line 4 should do the same?
Still more odd, take away the text to just leave the input fields and
the results are
Email
Forename
[blank]
Surname
Full name
Next I tried 5 identical lines, including text description, all
email <input type="text" name="email"><br>
or all
name <input type="text" name="name"> <br>
all are filled correctly, now do the same but without the text:
<input type="text" name="email"><br>
Email
Forename
[blank]
Surname
Full name
and 5 identical lines of :
<input type="text" name="name"> <br>
Forename
[blank]
Surname
Forename
Surname
This all seems to suggest that the toolbar doesn't just look at the
field names but also the context - but I can't find any consistency.
The only resource I can find for assistance is
http://toolbar.google.com/autofill_help.html
That says:
"Note to web page authors: You can ensure that AutoFill will work on
your pages by using field names defined in the ECML (Electronic
Commerce Modeling Language) standard, found at
http://www.ietf.org/rfc/rfc3106.txt."
I set up a page with all the Ecom fields to see how Autofill responded
but the results were as confusing as before.
for example depending on context, fields named and described as:
Ecom_ShipTo_Postal_Street_Line1
Ecom_ShipTo_Postal_Street_Line2
Ecom_Postal_Street_Line1
MAY autofill as
[blank]
Shipto street line1
Shipto street line2
But in a different context
Ecom_ShipTo_Postal_Street_Line1
Ecom_ShipTo_Postal_Street_Line2
Ecom_ShipTo_Postal_Street_Line3
Autofilled to
Primary street line1
Primary street line2
[blank]