summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/luci.js13
1 files changed, 2 insertions, 11 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/luci.js b/modules/luci-base/htdocs/luci-static/resources/luci.js
index fcab3a4018..78e8b8b30b 100644
--- a/modules/luci-base/htdocs/luci-static/resources/luci.js
+++ b/modules/luci-base/htdocs/luci-static/resources/luci.js
@@ -1248,7 +1248,7 @@
* `null` on parsing failures or if no element could be found.
*/
parse: function(s) {
- var elem;
+ var elem = null;
try {
domParser = domParser || new DOMParser();
@@ -1256,16 +1256,7 @@
}
catch(e) {}
- if (!elem) {
- try {
- dummyElem = dummyElem || document.createElement('div');
- dummyElem.innerHTML = s;
- elem = dummyElem.firstChild;
- }
- catch (e) {}
- }
-
- return elem || null;
+ return elem;
},
/**