lib/kissy/5.0.0-alpha.3/build/html-parser-debug.js
function () {
            var self = this;
            if (!self.isChildrenFiltered) {
                var writer = new (module.require('html-parser/writer/basic'))();
                self._writeChildrenHTML(writer);
                var parser = new (module.require('html-parser/parser'))(writer.getHtml()), children = parser.parse().childNodes;
                self.empty();
                util.each(children, function (c) {
                    self.appendChild(c);
                });
                self.isChildrenFiltered = 1;
            }
        }
function () {
            var self = this;
            if (!self.isChildrenFiltered) {
                var writer = new (module.require('html-parser/writer/basic'))();
                self._writeChildrenHTML(writer);
                var parser = new (module.require('html-parser/parser'))(writer.getHtml()), children = parser.parse().childNodes;
                self.empty();
                util.each(children, function (c) {
                    self.appendChild(c);
                });
                self.isChildrenFiltered = 1;
            }
        }
function ( ) { var self = this ; if ( ! self . isChildrenFiltered ) { var writer = new ( module . require ( 'html-parser/writer/basic' ) ) ( ) ; self . _writeChildrenHTML ( writer ) ; var parser = new ( module . require ( 'html-parser/parser' ) ) ( writer . getHtml ( ) ) , children = parser . parse ( ) . childNodes ; self . empty ( ) ; util . each ( children , function ( c ) { self . appendChild ( c ) ; } ) ; self . isChildrenFiltered = 1 ; } }
give root node a chance to filter children first
give root node a chance to filter children first