Skip to content

Commit

Permalink
fix tagname
Browse files Browse the repository at this point in the history
  • Loading branch information
mbasso committed Jul 13, 2020
1 parent 6c533f3 commit f9261c5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/cpp/domRecycler.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
const recycler = {
create(name) {
name = name.toUpperCase();
const list = recycler.nodes[name];
const list = recycler.nodes[name.toUpperCase()];
return list !== undefined && list.pop() || document.createElement(name);
},
createNS(name, ns) {
name = name.toUpperCase();
const list = recycler.nodes[name + ns];
const list = recycler.nodes[name.toUpperCase() + ns];
const node = list !== undefined && list.pop() || document.createElementNS(ns, name);
node.asmDomNS = ns;
return node;
Expand Down

0 comments on commit f9261c5

Please sign in to comment.