My page has a first popup that is filled with the contents of a table stored in a mySQL database. It lets you select a department. Using Ajax, when the user selected a department, I then show a second popup that lists all the laboratories inside the selected department. This second popup also uses Ajax to show a third popup that lists all the employees of the selected laboratory. The first connection popup1->popup2 works nicely. However, the second connection popup2->popup3 does not work. WebKit does not seem to "see" the onchange action of the newly created popup2. Note that this works correctly on FireFox and Camino. http://tijej.dyndns.org/WebKitBug/index.php is a simple showcase of the problem
Created attachment 8767 [details] PHP files
Created attachment 9736 [details] test case
The problem here is that multiple elements get the same "labo" id, which of course causes problems with getElementById(). It might be desirable for WebKit to better match Firefox in this case, though. Could defining error handling in case of duplicate ids be in scope of HTML5?
Looks like Firefox matchs us on this test case now. We should probably keep our current behavior and land a test.
Created attachment 70293 [details] Patch
Comment on attachment 70293 [details] Patch Clearing flags on attachment: 70293 Committed r69425: <http://trac.webkit.org/changeset/69425>
All reviewed patches have been landed. Closing bug.