When a user clicks on a closednode, the onClick event of the target node is bubbled up by the browser to the main onClick handler of the widget's controller code.
Every time a tag is opened or closed, or any time the parser sees some text, it makes callbacks to some user-defined functions with the node or text information.
每次打开或关闭一个标记时,或者每次解析器看到文本时,就用节点或文本的信息回调用户定义的函数。
3
The solution ElementTree adopts is to give each node a .tail attribute, which contains all the text after a closing tag but before the next element begins or the parent element is closed. For example