Why does firebug add <tbody> to <table>?
问题 I viewed the html source code, there is no <tbody> , but when viewed via firebug in the HTML tab, <tbody> appears. Any idea why? 回答1: To summarize the excellent explanations given in the answers and comments by bobince, Kieron, Alohci and others: Firebug just displays the DOM of the parsed page. Due to complicated HTML parsing rules, the DOM will "differ" (in some sense) from the source HTML. In this case the TBODY element in the DOM is added by the HTML parser. Note that this weird parsing