Commit a77afe42 authored by Ahoy's avatar Ahoy

innerHTML

parent d6d84179
Pipeline #31372936 passed with stages
in 53 seconds
......@@ -36,6 +36,7 @@ function yo(sel) {
var yohoho = document.createElement('div');
var attr = Array.prototype.slice.call(y.attributes);
while(a = attr.pop()) {yohoho.setAttribute(a.nodeName, a.nodeValue);}
yohoho.innerHTML = y.innerHTML;
y.parentNode.replaceChild(yohoho, y);
var options = [].slice.call(yohoho.attributes).reduce(function (o, a) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment