Why not? from what I can see, all browsers support it.
If by all the browsers you mean IE :rolleyes:... No, definitely no. All the browsers, except IE, will return undefined the following:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
IE is famous for another mismatch: If id is not defined, IE will take the name as id, or the id as name if the name is missing. Completely wrong, according to the standards.
name is to be used only for the form's controls. It may be used for links, images and frames/iframes as well, but the W3C Recommendation is to use the name only for the form's controls.
id and name are different things.