Lines Matching refs:html
40 HTMLParser = this.HTMLParser = function( html, handler ) {
41 var index, chars, match, stack = [], last = html;
47 while ( html ) {
54 if ( html.indexOf("<!--") == 0 ) {
55 index = html.indexOf("-->");
59 handler.comment( html.substring( 4, index ) );
60 html = html.substring( index + 3 );
65 } else if ( html.indexOf("</") == 0 ) {
66 match = html.match( endTag );
69 html = html.substring( match[0].length );
75 } else if ( html.indexOf("<") == 0 ) {
76 match = html.match( startTag );
79 html = html.substring( match[0].length );
86 index = html.indexOf("<");
88 var text = index < 0 ? html : html.substring( 0, index );
89 html = index < 0 ? "" : html.substring( index );
96 html = html.replace(new RegExp("(.*)<\/" + stack.last() + "[^>]*>"), function(all, text){
109 if ( html == last )
110 throw "Parse Error: " + html;
111 last = html;