git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Focused support of .live(). stopPropagation and stopImmediatePropagation are not...
[jquery.git]
/
src
/
selector.js
diff --git
a/src/selector.js
b/src/selector.js
index
682a92e
..
59ca2f6
100644
(file)
--- a/
src/selector.js
+++ b/
src/selector.js
@@
-700,7
+700,7
@@
try {
// Check to see if an attribute returns normalized href attributes
div.innerHTML = "<a href='#'></a>";
// Check to see if an attribute returns normalized href attributes
div.innerHTML = "<a href='#'></a>";
- if ( div.firstChild.getAttribute("href") !== "#" ) {
+ if ( div.firstChild && div.firstChild.getAttribute("href") !== "#" ) {
Expr.attrHandle.href = function(elem){
return elem.getAttribute("href", 2);
};
Expr.attrHandle.href = function(elem){
return elem.getAttribute("href", 2);
};
@@
-809,8
+809,8
@@
var contains = document.compareDocumentPosition ? function(a, b){
};
var isXML = function(elem){
};
var isXML = function(elem){
- return elem.documentElement && !elem.body ||
- elem.tagName && elem.ownerDocument && !elem.ownerDocument.body;
+ return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" ||
+ !!elem.ownerDocument && isXML( elem.ownerDocument );
};
var posProcess = function(selector, context){
};
var posProcess = function(selector, context){