lib/kissy/5.0.0-alpha.3/build/html-parser-debug.js
function (quoteSmart) {
            var self = this, start, ch, ret, cursor = self.cursor, page = self.page;
            start = cursor.position;
            ch = page.getChar(cursor);
            switch (ch) {
            case -1:
                ret = null;
                break;
            case '<':
                ch = page.getChar(cursor);
                if (ch === -1) {
                    ret = self.makeString(start, cursor.position);
                } else if (ch === '/' || Utils.isLetter(ch)) {
                    page.ungetChar(cursor);
                    ret = self.parseTag(start);
                } else if ('!' === ch || '?' === ch) {
                    ch = page.getChar(cursor);
                    if (ch === -1) {
                        ret = self.makeString(start, cursor.position);
                    } else {
                        if ('>' === ch) {
                            ret = self.makeComment(start, cursor.position);
                        } else {
                            page.ungetChar(cursor);    // remark/tag need this char
                            // remark/tag need this char
                            if ('-' === ch) {
                                ret = self.parseComment(start, quoteSmart);
                            } else {
                                // <!DOCTYPE html>
                                // <?xml:namespace>
                                page.ungetChar(cursor);    // tag needs prior one too
                                // tag needs prior one too
                                ret = self.parseTag(start);
                            }
                        }
                    }
                } else {
                    page.ungetChar(cursor);    // see bug #1547354 <<tag> parsed as text
                    // see bug #1547354 <<tag> parsed as text
                    ret = self.parseString(start, quoteSmart);
                }
                break;
            default:
                page.ungetChar(cursor);    // string needs to see leading fore slash
                // string needs to see leading fore slash
                ret = self.parseString(start, quoteSmart);
                break;
            }
            return ret;
        }
function (quoteSmart) {
            var self = this, start, ch, ret, cursor = self.cursor, page = self.page;
            start = cursor.position;
            ch = page.getChar(cursor);
            switch (ch) {
            case -1:
                ret = null;
                break;
            case '<':
                ch = page.getChar(cursor);
                if (ch === -1) {
                    ret = self.makeString(start, cursor.position);
                } else if (ch === '/' || Utils.isLetter(ch)) {
                    page.ungetChar(cursor);
                    ret = self.parseTag(start);
                } else if ('!' === ch || '?' === ch) {
                    ch = page.getChar(cursor);
                    if (ch === -1) {
                        ret = self.makeString(start, cursor.position);
                    } else {
                        if ('>' === ch) {
                            ret = self.makeComment(start, cursor.position);
                        } else {
                            page.ungetChar(cursor);    // remark/tag need this char
                            // remark/tag need this char
                            if ('-' === ch) {
                                ret = self.parseComment(start, quoteSmart);
                            } else {
                                // <!DOCTYPE html>
                                // <?xml:namespace>
                                page.ungetChar(cursor);    // tag needs prior one too
                                // tag needs prior one too
                                ret = self.parseTag(start);
                            }
                        }
                    }
                } else {
                    page.ungetChar(cursor);    // see bug #1547354 <<tag> parsed as text
                    // see bug #1547354 <<tag> parsed as text
                    ret = self.parseString(start, quoteSmart);
                }
                break;
            default:
                page.ungetChar(cursor);    // string needs to see leading fore slash
                // string needs to see leading fore slash
                ret = self.parseString(start, quoteSmart);
                break;
            }
            return ret;
        }
function ( quoteSmart ) { var self = this , start , ch , ret , cursor = self . cursor , page = self . page ; start = cursor . position ; ch = page . getChar ( cursor ) ; switch ( ch ) { case - 1 : ret = null ; break ; case '<' : ch = page . getChar ( cursor ) ; if ( ch === - 1 ) { ret = self . makeString ( start , cursor . position ) ; } else if ( ch === '/' || Utils . isLetter ( ch ) ) { page . ungetChar ( cursor ) ; ret = self . parseTag ( start ) ; } else if ( '!' === ch || '?' === ch ) { ch = page . getChar ( cursor ) ; if ( ch === - 1 ) { ret = self . makeString ( start , cursor . position ) ; } else { if ( '>' === ch ) { ret = self . makeComment ( start , cursor . position ) ; } else { page . ungetChar ( cursor ) ; // remark/tag need this char // remark/tag need this char if ( '-' === ch ) { ret = self . parseComment ( start , quoteSmart ) ; } else { // <!DOCTYPE html> // <?xml:namespace> page . ungetChar ( cursor ) ; // tag needs prior one too // tag needs prior one too ret = self . parseTag ( start ) ; } } } } else { page . ungetChar ( cursor ) ; // see bug #1547354 <<tag> parsed as text // see bug #1547354 <<tag> parsed as text ret = self . parseString ( start , quoteSmart ) ; } break ; default : page . ungetChar ( cursor ) ; // string needs to see leading fore slash // string needs to see leading fore slash ret = self . parseString ( start , quoteSmart ) ; break ; } return ret ; }
get next node parsed from content
@param quoteSmart
@returns {KISSY.HtmlParse.Node}
get next node parsed from content