FuckTheWorld / chromedriver

Automatically exported from code.google.com/p/chromedriver
0 stars 0 forks source link

Chromedriver incorrectly reports autocapitalize="off" as autocapitalize="none" #1107

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Minimal repro, showing Firefox working fine, Chrome reporting "none" instead of 
"off":  https://gist.github.com/hjwp/2d297e967c3056490302

Original issue reported on code.google.com by harry.pe...@gmail.com on 26 May 2015 at 12:31

GoogleCodeExporter commented 9 years ago
Observed on Linux with chromedriver 2.9 and 2.15, also on windows with 2.15

Original comment by harry.pe...@gmail.com on 26 May 2015 at 12:33

GoogleCodeExporter commented 9 years ago
Strangely enough, I later found out chromedriver reports autocapitalize="off" 
on a different html element type (x-screen).  Maybe this only affects `input` 
elements?

Original comment by harry.pe...@gmail.com on 26 May 2015 at 2:01

GoogleCodeExporter commented 9 years ago
It is a expected behavior.  "off" value of autocapitalize has been deprecated, 
and "none" value should be used instead.

Please refer - 
https://developer.apple.com/library/safari/documentation/AppleApplications/Refer
ence/SafariHTMLRef/Articles/Attributes.html
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input

You can also confirm by assigning no value to autocapitalize attribute, in 
firefox it returns blank whereas in chromedriver it returns "sentences" value 
which is a correct behaviour.

Original comment by gmanikp...@chromium.org on 26 May 2015 at 6:01