X-Git-Url: http://git.osdn.jp/view?p=pettanr%2FclientJs.git;a=blobdiff_plain;f=0.6.x%2Fjs%2F02_dom%2F09_XHTMLParser.js;fp=0.6.x%2Fjs%2F02_dom%2F09_XHTMLParser.js;h=18cdc3799bfefc95f8fb8fcc847511348230971c;hp=27f2164c5d295b88838a8291db849b543554853d;hb=d56e8cc1e13089eb6cbc9dcc6900d7f1828b93df;hpb=9e607206c5510435fc1daeac93a19427ce33cc6f diff --git a/0.6.x/js/02_dom/09_XHTMLParser.js b/0.6.x/js/02_dom/09_XHTMLParser.js index 27f2164..18cdc37 100644 --- a/0.6.x/js/02_dom/09_XHTMLParser.js +++ b/0.6.x/js/02_dom/09_XHTMLParser.js @@ -59,12 +59,12 @@ var X_HTMLParser_CHARS = { lastHtml = html, chars, last, text, index; - while ( html ) { + while( html ){ chars = true; last = stack[ stack.length - 1 ]; // Make sure we're not in a script or style element - if ( last && special[ handler.isXML ? last.toUpperCase() : last ] === 1 ) { + if( last && special[ handler.isXML ? last.toUpperCase() : last ] === 1 ){ if( 0 <= ( index = html.toUpperCase().indexOf( '") ) ) { + if( html.indexOf("") ) ){ handler.comment( html.substring( 4, index ) ); html = html.substring( index + 3 ); chars = false; }; // end tag - } else if ( html.indexOf("' || ( empty = html.substr( i, 2 ) === '/>' ) ) && + ( ( phase = 9 ) && ( attrs[ attrs.length ] = html.substring( start, i ) ) ); break; case 5 : // 属性の = または次の属性または htmlタグの閉じ !( whiteSpace[ chr ] & 16 ) &&// ie4 未対応の属性には cite = http:// となる // 1 : ( alphabets[ chr ] & 3 ) ? - ( ( phase = 4 ) && ( attrs[ attrs.length ] = attrName ) && ( start = i ) ) : + ( ( phase = 3 ) && ( attrs[ attrs.length ] = attrName ) && ( start = i ) ) : //