<p>Do you know of any differences in handling HTML tags/properties in different browsers? For example, I once saw a page with a input tag with a maxlength field set to "2o". Firefox and Opera ignore the "o", and set the max length to 2, while Internet Explorer ignores the field altogether. Do you know of any more?</p>

<p>(Note: seeing as this will probably be a list, it would be great if the general name of the difference was in bold text, like: <strong>Different erratic value handling in tag properties</strong>)</p>

[{'answer_id': 13596, 'author': 'Kristopher Johnson', 'author_id': 1175, 'author_profile': 'https://Stackoverflow.com/users/1175', 'pm_score': 3, 'selected': False, 'text': '<p>Check out <a href="http://www.quirksmode.org/" rel="nofollow noreferrer">http://www.quirksmode.org/</a></p>\n'}, {'answer_id': 13659, 'author': 'Craig', 'author_id': 1611, 'author_profile': 'https://Stackoverflow.com/users/1611', 'pm_score': 2, 'selected': False, 'text': '<p>If you are programming in javascript the best advice I can give is to use a javascript library instead of trying to roll your own.  The libraries are well tested, and the corner cases are more likely to have been encountered.</p>\n\n<p>Scriptalicious - <a href="http://script.aculo.us/" rel="nofollow noreferrer">http://script.aculo.us/</a><br>\njQuery - <a href="http://jquery.com/" rel="nofollow noreferrer">http://jquery.com/</a><br>\nMicrosoft AJAX - <a href="http://www.asp.net/ajax/" rel="nofollow noreferrer">http://www.asp.net/ajax/</a><br>\nDojo - <a href="http://dojotoolkit.org/" rel="nofollow noreferrer">http://dojotoolkit.org/</a><br>\nPrototype - <a href="http://www.prototypejs.org/" rel="nofollow noreferrer">http://www.prototypejs.org/</a><br>\nYUI - <a href="http://developer.yahoo.com/yui/" rel="nofollow noreferrer">http://developer.yahoo.com/yui/</a><br></p>\n'}, {'answer_id': 13707, 'author': 'Cebjyre', 'author_id': 1612, 'author_profile': 'https://Stackoverflow.com/users/1612', 'pm_score': 0, 'selected': False, 'text': "<p>The one that really annoys me is IE's broken document.getElementById javascript function - in most browsers this will give you something that has the id you specify, IE is happy to give you something that has the value in the name attribute, even if there is something later in the document with the id you asked for.</p>\n"}, {'answer_id': 13729, 'author': 'Jon Galloway', 'author_id': 5, 'author_profile': 'https://Stackoverflow.com/users/5', 'pm_score': 3, 'selected': False, 'text': '<p><strong>Bug Lists</strong></p>\n\n<p>Web developers have already compiled some pretty comprehensive lists; I think it\'s better to compile a list of resources than to duplicate those lists.</p>\n\n<ul>\n<li><a href="http://www.positioniseverything.net/" rel="nofollow noreferrer">http://www.positioniseverything.net/</a></li>\n<li><a href="http://www.richinstyle.com/bugs/table.html" rel="nofollow noreferrer">http://www.richinstyle.com/bugs/table.html</a></li>\n<li><a href="http://www.quirksmode.org/" rel="nofollow noreferrer">http://www.quirksmode.org/</a> (as mentioned by <a href="https://stackoverflow.com/users/1175/kristopher-johnson">Kristopher Johnson</a>)</li>\n</ul>\n\n<p><strong>Javascript</strong></p>\n\n<p>I agree with <a href="https://stackoverflow.com/users/1611/craig">Craig</a> - it\'s best to program Javascript using a library that handles differences between browsers (as well as simplify things like namespacing, AJAX event handling, and context). Here\'s the jump to Craig\'s answer (on this page).</p>\n\n<p><strong>CSS Resets</strong></p>\n\n<p>CSS Resets can really simplify web development. They override settings which vary slightly between browsers to give you a more common starting point. I like Yahoo\'s <a href="http://developer.yahoo.com/yui/reset/" rel="nofollow noreferrer">YUI Reset CSS</a>.</p>\n'}, {'answer_id': 13785, 'author': 'Polsonby', 'author_id': 137, 'author_profile': 'https://Stackoverflow.com/users/137', 'pm_score': 1, 'selected': False, 'text': '<blockquote>\n  <blockquote>\n    <p>Do you know of any differences in handling HTML tags/properties in different browsers</p>\n  </blockquote>\n</blockquote>\n\n<p>Is this question asking for information on all differences, including DOM and CSS? Bit of a big topic. I thought the OP was asking about HTML behaviour specifically, not all this other stuff...</p>\n'}, {'answer_id': 780020, 'author': 'AmbroseChapel', 'author_id': 242241, 'author_profile': 'https://Stackoverflow.com/users/242241', 'pm_score': 0, 'selected': False, 'text': '<blockquote>\n  <p>I once saw a page with a input tag\n  with a maxlength field set to "2o".</p>\n</blockquote>\n\n<p>In this specific case, you\'re talking about <em>invalid</em> code. The maxlength attribute can\'t contain letters, only numbers.</p>\n\n<p>What browsers do with invalid code varies a great deal, as you can see for yourself.</p>\n\n<p>If you\'re really asking "what do all the different browsers do when faced with HTML code that, for any one of an infinite number of reasons, is broken?", that way lies madness.</p>\n\n<p>We can reduce the problem space a great deal by <em>using valid code.</em> </p>\n\n<p>So, use valid HTML. Then you are left with two main problem areas:</p>\n\n<ul>\n<li>browser bugs -- how the browser follows the HTML standard and what it does wrong</li>\n<li>differences in browser defaults, like the amount of padding/margin it gives to the body</li>\n</ul>\n'}, {'answer_id': 1924847, 'author': 'Alex Jasmin', 'author_id': 162407, 'author_profile': 'https://Stackoverflow.com/users/162407', 'pm_score': 0, 'selected': False, 'text': '<p><strong>Inconsistent parsing of XHTML in HTML mode</strong></p>\n\n<p>HTML parsers are not designed to handle XML.</p>\n\n<p>If an XHTML document is served as "text/html“ and <a href="http://www.w3.org/TR/xhtml1/#guidelines" rel="nofollow noreferrer">the compatibilities guidelines</a> are not followed you can get unexpected results.</p>\n\n<p>Empty tags is one possible source of problems. &lt;tag/&gt; and &lt;tag&gt;&lt;/tag&gt; are equivalent in XML. However the HTML parser can interpret them in two ways.</p>\n\n<p>For instance Opera and IE treat &lt;br&gt;&lt;/br&gt; as two  &lt;br&gt; but Firefox and WebKit treat &lt;br&gt;&lt;/br&gt; as one &lt;br&gt;.</p>\n'}]
['https://Stackoverflow.com/questions/13594', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1536/']