EndElement represents the element's closing tag (or simply the end of the element's markup, if it is an empty element).
EndElement表示元素的结束标记(或元素标记的结束,如果是空元素的话)。
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表示。
The IMG element is empty: it has no closing tag.
对于这类标签,本来就是没有闭合的,原始定义为。
CallsMoveToContent and tests if the current content node is a start tag or empty element tag.
测试当前内容节点是否是开始标记。
CallsMoveToContent and tests if the current content node is a start tag or empty element tag.
测试当前内容节点是否是开始标记。
应用推荐