浏览器对文字的解析

时间:2015-07-19 13:23:03   收藏:0   阅读:227

例如:<div>标       题  <input name=‘title‘ /></div>


标题包含中间空格及后面空格,浏览器如何读取的呢?

标题包含中间空格及后面空格:解析成一个Text节点,内容存储在Text.nodeValue中


涉及到DOM规范中的核心对象(12个)的Text:

Element

Attr

Text

CDATASection

entityReference

Entity

ProcessingInstruction

Comment

Document

DocumentType

DocumentFragment

Notation

版权声明:本文为博主原创文章,未经博主允许不得转载。

原文:http://blog.csdn.net/lengmeiyanok/article/details/46954093

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!