since everything is on the same page, I would not dare to set any identifiers on my own, the probability that you will create two elements (by mistake) with the same identifier is quite high. why do you need it?
you can get an html element named textItem.setName ("Foo"); DOM.getElementsByName ("Foo")
source
share