Changeset 7943

Show
Ignore:
Timestamp:
03/14/08 13:34:28 (7 years ago)
Author:
amachang
Message:

lang/javascript/javascript-xpath/: Fixed for ie8

Location:
lang/javascript/javascript-xpath/trunk
Files:
2 added
6 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/javascript-xpath/trunk/ChangeLog

    r1803 r7943  
     1== 0.1.9 / 2007-11-19  amachang <seijro@gmail.com> 
     2 
     3        * Fixed for IE8 attributes error 
     4 
    15== 0.1.8 / 2007-11-19  amachang <seijro@gmail.com> 
    26 
  • lang/javascript/javascript-xpath/trunk/release/javascript-xpath-latest-cmp.js

    r1803 r7943  
    11(function(){var ca=void(0);var da={targetFrame:ca,exportInstaller:false,useNative:true,useInnerText:true};var ea;if(window.jsxpath){ea=window.jsxpath;} 
    2 else{var fa=document.getElementsByTagName('script');var ga=fa[fa.length-1];var ha=ga.src;ea={};var ia=ha.match(/\?(.*)$/);if(ia){var ja=ia[1].split('&');for(var i=0,l=ja.length;i<l;i++){var ka=ja[i];var la=ka.split('=');var ma=la[0];var na=la[1];if(configValue==ca){configValue==true;} 
    3 else if(configValue=='false'||/^-?d+$/.test(configValue)){configValue=eval(configValue);} 
    4 ea[ma]=configValue;}}} 
     2else{var fa=document.getElementsByTagName('script');var ga=fa[fa.length-1];var ha=ga.src;ea={};var ia=ha.match(/\?(.*)$/);if(ia){var ja=ia[1].split('&');for(var i=0,l=ja.length;i<l;i++){var ka=ja[i];var la=ka.split('=');var ma=la[0];var na=la[1];if(na==ca){na==true;} 
     3else if(na=='false'||/^-?d+$/.test(na)){na=eval(na);} 
     4ea[ma]=na;}}} 
    55for(var n in da){if(!(n in ea))ea[n]=da[n];} 
    66ea.hasNative=!!(document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XPath",null));if(ea.hasNative&&ea.useNative&&!ea.exportInstaller){return;} 
     
    131131if(qd.match(rd))sd.unshift(rd);} 
    132132while(rd=rd.parentNode)return sd;}],attribute:[false,function(wd,xd,yd){var zd=xd.attributes;if(zd){ /*@cc_on  
    133 var Ad=xd.sourceIndex;@*/if((wd.notOnlyElement&&wd.type==0)||wd.name=='*'){for(var i=0,l=zd.length;i<l;i++){var Bd=zd[i]; /*@cc_on @if(@_jscript)if(Bd.nodeValue){yd.push(new cd(Bd,xd,Ad));}@else @*/  
    134 yd.push(Bd);/*@end @*/ }} 
     133var Ad=xd.sourceIndex;@*/if((wd.notOnlyElement&&wd.type==0)||wd.name=='*'){for(var i=0,attr;attr=zd[i];i++){ /*@cc_on @if(@_jscript)if(attr.nodeValue){yd.push(new cd(attr,xd,Ad));}@else @*/  
     134yd.push(attr);/*@end @*/ }} 
    135135else{var Bd=zd.getNamedItem(wd.name); /*@cc_on @if(@_jscript)if(Bd&&Bd.nodeValue){Bd=new cd(Bd,xd,Ad);;@else @*/  
    136136if(Bd){/*@end @*/  
  • lang/javascript/javascript-xpath/trunk/release/javascript-xpath-latest.js

    r1803 r7943  
    1 /*  JavaScript-XPath 0.1.8 
     1/*  JavaScript-XPath 0.1.9 
    22 *  (c) 2007 Cybozu Labs, Inc. 
    33 * 
     
    3737            var configStringSplited = configString.split('='); 
    3838            var configName = configStringSplited[0]; 
    39             var convigValue = configStringSplited[1]; 
     39            var configValue = configStringSplited[1]; 
    4040            if (configValue == undefined) { 
    4141                configValue == true; 
     
    12531253@*/ 
    12541254            if ((test.notOnlyElement && test.type == 0) || test.name == '*') { 
    1255                 for (var i = 0, l = attrs.length; i < l; i ++) { 
    1256                     var attr = attrs[i]; 
     1255                for (var i = 0, attr; attr = attrs[i]; i ++) { 
    12571256/*@cc_on @if (@_jscript) 
    12581257                    if (attr.nodeValue) { 
  • lang/javascript/javascript-xpath/trunk/src/stepExpr.js

    r1803 r7943  
    328328@*/ 
    329329            if ((test.notOnlyElement && test.type == 0) || test.name == '*') { 
    330                 for (var i = 0, l = attrs.length; i < l; i ++) { 
    331                     var attr = attrs[i]; 
     330                for (var i = 0, attr; attr = attrs[i]; i ++) { 
    332331/*@cc_on @if (@_jscript) 
    333332                    if (attr.nodeValue) { 
  • lang/javascript/javascript-xpath/trunk/test/functional/index.html

    r1794 r7943  
    173173    var attrs = html.attributes; 
    174174    var t = ''; 
    175     for (var i = 0, l = attrs.length; i < l; i ++) { 
    176         var attr = attrs[i]; 
     175 
     176    for (var i = 0, attr; attr = attrs[i]; i ++) { 
    177177        t += (attr.prefix ? attr.prefix + ':' : '') + ' ' + attr.name + '=' + attr.value; 
    178178    } 
  • lang/javascript/javascript-xpath/trunk/version.txt

    r1803 r7943  
    1 0.1.8 
     10.1.9