aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/comments/frontend/htmltonodelist.js
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/comments/frontend/htmltonodelist.js')
-rw-r--r--bootstrap/comments/frontend/htmltonodelist.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/bootstrap/comments/frontend/htmltonodelist.js b/bootstrap/comments/frontend/htmltonodelist.js
new file mode 100644
index 0000000..9f3d4d7
--- /dev/null
+++ b/bootstrap/comments/frontend/htmltonodelist.js
@@ -0,0 +1,5 @@
+// Converts an HTML string to DOM NodeList (htmltonodelist.js)
+HashOver.prototype.HTMLToNodeList = function (html)
+{
+ return this.elements.create ('div', { innerHTML: html }).childNodes;
+};