thanhlong203 / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

HTML5 autofocus attribute and dom.classes #271

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Go on this example page: 
http://www.martin-thoma.de/example/tabnavAndCheckbox-compiled.html 
If you click on one of the classes (5a, 5b, ...) the tri-state root checkbox 
("Alle Klassen auswählen") will work. Select some classes.
2. Click on "My Table"
3. Click on "My Form"
4. Deselect all classes by clicking on every single checkbox
5. The Style of the Root-Checkbox doesn't change. I tested it with the 
following browsers:
* Chrome 8 (got this error, autofocus worked)
* Firefox 3.6 (worked normal, autofocus didn't)
* Firefox 4.0b (worked normal, autofucus worked)
* Opera 11 (worked, autofocus worked) 
* Epiphany 2.30 (got this error, autofocus worked)

What version of the product are you using? On what operating system?
* Operating system: Linux (Ubuntu)
* tabnav.js 
(http://code.google.com/p/google-closure-snippets/source/browse/trunk/tab-nav.js
)
* checkbox.js 
(http://code.google.com/p/google-closure-snippets/source/browse/trunk/checkbox.j
s)

Please provide any additional information below.
If I don't use the autofocus-attribute, everything works fine. If I use 
autofocus, I get some other errors, too:
* The Datepicker doesn't insert the date if I choose one, but the right date 
gets submitted
* The autocompleter doesn't write the content I clicked on in the input field, 
but if I submit the form, the right value is submitted.

Original issue reported on code.google.com by themoose...@googlemail.com on 3 Feb 2011 at 3:30