Changeset 24371

Show
Ignore:
Timestamp:
11/20/08 02:40:23 (5 years ago)
Author:
suVene
Message:

modify siteinfo attribute 'resultXPath' to 'xpath'

Files:
1 modified

Legend:

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

    r24361 r24371  
    55 * @description-ja   リクエストの結果をバッファに出力する。 
    66 * @author           suVene suvene@zeromemory.info 
    7  * @version          0.2.1 
     7 * @version          0.2.2 
    88 * @minVersion       2.0pre 
    99 * @maxVersion       2.0pre 
     
    483483                             .getService(Components.interfaces.nsITextToSubURI); 
    484484        url = url.replace(/%s/g, ttbu.ConvertAndEscape(urlEncode, parsedArgs.str)); 
    485         $U.log(url); 
     485        $U.log(url + '::' + siteinfo.xpath); 
    486486 
    487487        if (special) { 
     
    537537            url = res.request.url; 
    538538            escapedUrl = util.escapeHTML(url); 
    539             xpath = res.request.options.siteinfo.resultXpath; 
     539            xpath = res.request.options.siteinfo.xpath; 
    540540            doc = res.getHTMLDocument(xpath); 
    541541            if (!doc) throw 'XPath result is undefined or null.: XPath -> ' + xpath; 
     
    545545                   (new XMLSerializer()).serializeToString(doc).replace(/<[^>]+>/g, function(all) all.toLowerCase()) + 
    546546                   '</div>'; 
    547             $U.echo(new XMLList(html)); 
     547            try { $U.echo(new XMLList(html)); } catch (e) { $U.echo(html); } 
    548548 
    549549        } catch (e) {