explaining What is the Document Object Model
The W3C defines the DOM as:
A platform- and language-neutral interface that will allow programs and scripts to dynamically access and update the content,structure the style of document.
It is an APIthat can be used to navigate HTML and XML documents.
注意:即使某种特定的浏览器会引起问题,也没有必要使用浏览器嗅探代码。对浏览器的名称和版本号进行嗅探的办法很难做到面面俱到,而且往往会导致非常复杂难解的代码。
在此我们深刻地体会到标准的重要性,仅仅因为IE浏览器不支持abbr元素,就使得一大批用户没有机会看到一个自动生成的“缩略语列表”,这个事实让我感到很遗憾。如果
它真的必不可少,从一开始就应该把它包括在标记里。