aboutsummaryrefslogtreecommitdiffstats
path: root/_libly.js
diff options
context:
space:
mode:
Diffstat (limited to '_libly.js')
-rw-r--r--_libly.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/_libly.js b/_libly.js
index 2db2756..f3c4dd3 100644
--- a/_libly.js
+++ b/_libly.js
@@ -233,8 +233,8 @@ libly.$U = {//{{{
// HTML, XML, DOM, E4X {{{
pathToURL: function(a, baseURL, doc) {
if (!a) return '';
- var XHTML_NS = "http://www.w3.org/1999/xhtml"
- var XML_NS = "http://www.w3.org/XML/1998/namespace"
+ var XHTML_NS = "http://www.w3.org/1999/xhtml";
+ var XML_NS = "http://www.w3.org/XML/1998/namespace";
//var path = (a.href || a.getAttribute('src') || a.action || a.value || a);
var path = (a.getAttribute('href') || a.getAttribute('src') || a.action || a.value || a);
if (/^https?:\/\//.test(path)) return path;
@@ -263,7 +263,7 @@ libly.$U = {//{{{
if (!xpath) return null;
context = context || window.content.document;
var result = (context.ownerDocument || context).evaluate(xpath, context, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
- return result.singleNodeValue ? result.singleNodeValue : null;
+ return result.singleNodeValue || null;
},
getNodesFromXPath: function(xpath, context, callback, thisObj) {
var ret = [];