X-Git-Url: http://git.osdn.jp/view?p=pettanr%2FclientJs.git;a=blobdiff_plain;f=0.6.x%2Fjs%2F02_dom%2F08_XNodeSelector.js;fp=0.6.x%2Fjs%2F02_dom%2F08_XNodeSelector.js;h=0868315520f9a1394fe663a7f4ce34ceb51b1560;hp=2c52acbd84098f7a61ed843d3758a16decf24568;hb=9e607206c5510435fc1daeac93a19427ce33cc6f;hpb=66ccef8a1fdd3994dd3c75dcfede668ea55f1d2e diff --git a/0.6.x/js/02_dom/08_XNodeSelector.js b/0.6.x/js/02_dom/08_XNodeSelector.js index 2c52acb..0868315 100644 --- a/0.6.x/js/02_dom/08_XNodeSelector.js +++ b/0.6.x/js/02_dom/08_XNodeSelector.js @@ -253,7 +253,7 @@ function X_Node_Selector__parse( query, last ){ */ function X_Node_find( queryString ){ var HTML = X_Node_html, - scope = this.constructor === X_NodeList && this.length ? this : [ this.constructor === Node ? this : X_Node_body ], + scope = this.constructor === X_NodeList && this.length ? this : [ this.constructor === Node || this[ 'instanceOf' ] && this[ 'instanceOf' ]( Node ) ? this : X_Node_body ], parents = scope, // 探索元の親要素 XNodeList の場合あり // TODO { title : true,,, } noLower = 'title id name class for action archive background cite classid codebase data href longdesc profile src usemap',// + X_Dom_DTD_ATTR_VAL_IS_URI.join( ' ' ),