This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Legacy code has input object (drop down menu) whose 'id' was not specified but 'name' was configured. In the code, getElementById() was used by passing 'name' as the argument, IE8 used to return the object, however IE10 now returns 'null'. I am assuming, not configuring 'id' is not correct and the web standard doesn't suggest using 'name' as 'id' when 'id' is not given, give that, IE8 could very well have returned a 'null' in this case. This code is is present in over hundred views, now with IE10 out, it is anticipated that users will start upgrading to IE10. Is there a solution other than having to change the code in all the hundred+ views?
i would suggest, if you are using Netbeans IDE, this can be done a bit easily.
Step:1- select the main project folder->ctrl+H(Find & Replace).
Step:2- enter the name and its value (for ex: name="Hello") and Replace with name and id(ex: name="Hello" ID="Hello").
Step:3- Below you can see into how many places this replacement is going to be done and hit a replace all, it gets replaced.