例如:<div>標 題 <input name='title' /></div>
標題包含中間空格及後面空格,瀏覽器如何讀取的呢?
標題包含中間空格及後面空格:解析成一個Text節點,內容存儲在Text.nodeValue中
涉及到DOM規範中的核心對象(12個)的Text:
Element
Attr
Text
CDATASection
entityReference
Entity
ProcessingInstruction
Comment
Document
DocumentType
DocumentFragment
Notation