empty-element tag 空元素标签
CallsMoveToContent and tests if the current content node is a start tag or empty element tag.
测试当前内容节点是否是开始标记。
Remember, the DOM will create well-formed HTML, meaning that the element is currently empty, with both a starting and ending tag.
要记住,DOM会创建结构良好的HTML,就是说这个目前为空的元素包括起始和结束标签。
Moreover, an element that has no content is represented by an empty child list, but a self-closed tag is represented by None. Listing 2 shows this structure in action.
而一个没有内容的元素由一个空的子列表表示,但是一个自封闭的标记由None表示。
应用推荐