Nearly everyone (except maybe my coworkers) knows that web standards dictate that lower case HTML tags must always be used. But the question is, why does the JavaScript method .tagName return the object's tag in UPPERCASE?<p>Good Code:<p>&#60;div id="welcome"&#62;Hello&#60;/div&#62;<p>Bad Code:<p>&#60;DIV ID="welcome"&#62;Hello&#60;/DIV&#62;<p>JavaScript:<p>document.getElementById("welcome").tagName;<p>For both, the code would return "DIV" and not "div".
Ask HN: HTML/JS Standards Question