- var token = self.stack.pop();
-
- if(token.type === ELEM_END) {
- self.result += text_buffer;
- text_buffer = '';
- if (token.tagName != '')
- self.result += "</" + token.tagName + ">";
- continue;
- };
-
- if(token.type === NS_END) {
- self._unassignNamespace(token.namespace);
- continue;
- }
-
-
- switch(token.node.nodeType) {
- case ELEMENT_NODE:
- if(token.node.hasAttribute('x-pass-thru')
- || token.node.hasAttribute('data-pass-thru')) {
- self._pushChildren(token.node);
- break;
- }
-
- if(!token.node.hasAttribute('x-node'))
- break;
-
- var xnode = token.node.getAttribute('x-node');
-
- if(xnode === 'out-of-flow-text') {
- self._pushChildren(token.node);
- break;
- }