Is this HTML valid? Or is the id 'a' the same as the id 'A'?
<div id="a">alpha</div> <div id="A">Alpha</div>
Yes. It is case-sensitive. Attribute values are always case-sensitive. Different browsers seem to be doing different things though.
Handling document.getElementById is different across browsers:
document.getElementById
Mozilla performs case-sensitive search.
Internet Explorer: IE 8 and later performs case-sensitive search, while IE 7 and earlier performs case-insensitive search.
1.4m articles
1.4m replys
5 comments
57.0k users