chr, chrCode, nameChr, name1st,\r
tmp, escape, quot, start,\r
name, key, value, operator, a, b, not;\r
+\r
query += ' ';\r
while( i < l ){\r
chr = query.charAt( ++i );\r
- chrCode = ALPHABET.indexOf( chr );\r
+ chrCode = ALPHABET.indexOf( chr ); // TODO この関数無くす!\r
nameChr = chrCode !== -1;\r
name1st = nameChr && chrCode < 52;\r
switch( phase ){\r
* @return {Node|NodeList}\r
*/\r
X[ 'Doc' ][ 'find' ] = X_shortcutFunction =\r
+\r
/**\r
* selector を使って Node, NodeList を取得する\r
- * @alias Node.prototype.find\r
+ * @alias NodeList.prototype.find\r
* @function\r
* @param {string} セレクター文字列\r
* @return {Node|NodeList}\r
*/\r
- Node.prototype[ 'find' ] =\r
+ X_NodeList.prototype[ 'find' ] = X_Node_find;\r
+ \r
/**\r
* selector を使って Node, NodeList を取得する\r
- * @alias NodeList.prototype.find\r
+ * @alias Node.prototype.find\r
* @function\r
* @param {string} セレクター文字列\r
* @return {Node|NodeList}\r
- */\r
- X_NodeList.prototype[ 'find' ] = function ( queryString ){\r
+ */ \r
+ function X_Node_find( queryString ){\r
var HTML = X_Node_html,\r
scope = this.constructor === X_NodeList && this.length ? this : [ this.constructor === Node ? this : X_Node_body ],\r
parents = scope, // 探索元の親要素 XNodeList の場合あり\r