Changeset 25338

Show
Ignore:
Timestamp:
11/29/08 17:31:38 (6 weeks ago)
Author:
janus_wel
Message:

bugfix: fail parsing DOM when DOCTYPE is not set

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/multi_requester.js

    r25308 r25338  
    55 * @description-ja   リクエストの結果をバッファに出力する。 
    66 * @author           suVene suvene@zeromemory.info 
    7  * @version          0.3.0 
     7 * @version          0.3.1 
    88 * @minVersion       2.0pre 
    99 * @maxVersion       2.0pre 
     
    8080        srcEncode:   'EUC-JP', 
    8181        urlEncode:   'UTF-8' 
    82     } 
     82    }, 
    8383]; 
    8484 
     
    379379        range.detach(); 
    380380        var dom = fragment.lastChild; 
    381         if (dom.tagName == 'parserError' || dom.namespaceURI == 'http://www.mozilla.org/newlayout/xml/parsererror.xml') { 
     381        if (dom.tagName == 'parserError' || dom.namespaceURI == 'http://www.mozilla.org/newlayout/xml/parsererror.xml' || fragment instanceof DocumentFragment) { 
    382382            $U.log('retry parsing.'); 
    383383            return this._createHTMLDocument2(str);