OSDN Git Service
(root)
/
pettanr
/
clientJs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix X.UA & X.Audio, add X.KB.
[pettanr/clientJs.git]
/
0.6.x
/
js
/
02_dom
/
08_XNodeSelector.js
diff --git
a/0.6.x/js/02_dom/08_XNodeSelector.js
b/0.6.x/js/02_dom/08_XNodeSelector.js
index
4b735e0
..
727ac95
100644
(file)
--- a/
0.6.x/js/02_dom/08_XNodeSelector.js
+++ b/
0.6.x/js/02_dom/08_XNodeSelector.js
@@
-78,10
+78,11
@@
function X_Node_Selector__parse( query, last ){
chr, chrCode, nameChr, name1st,
\r
tmp, escape, quot, start,
\r
name, key, value, operator, a, b, not;
\r
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
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
nameChr = chrCode !== -1;
\r
name1st = nameChr && chrCode < 52;
\r
switch( phase ){
\r
@@
-233,22
+234,24
@@
function X_Node_Selector__parse( query, last ){
* @return {Node|NodeList}
\r
*/
\r
X[ 'Doc' ][ 'find' ] = X_shortcutFunction =
\r
* @return {Node|NodeList}
\r
*/
\r
X[ 'Doc' ][ 'find' ] = X_shortcutFunction =
\r
+
\r
/**
\r
* selector を使って Node, NodeList を取得する
\r
/**
\r
* selector を使って Node, NodeList を取得する
\r
- * @alias Node.prototype.find
\r
+ * @alias Node
List
.prototype.find
\r
* @function
\r
* @param {string} セレクター文字列
\r
* @return {Node|NodeList}
\r
*/
\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
/**
\r
* selector を使って Node, NodeList を取得する
\r
- * @alias Node
List
.prototype.find
\r
+ * @alias Node.prototype.find
\r
* @function
\r
* @param {string} セレクター文字列
\r
* @return {Node|NodeList}
\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
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