tangled
alpha
login
or
join now
yippee.fun
/
morphlex
0
fork
atom
Precise DOM morphing
morphing
typescript
dom
0
fork
atom
overview
issues
pulls
pipelines
Fix parsing issue
joel.drapper.me
4 months ago
0ed71846
3db719d3
+1
-1
1 changed file
expand all
collapse all
unified
split
src
morphlex.ts
+1
-1
src/morphlex.ts
···
41
41
42
42
function parseChildNodeFromString(string: string): ChildNode {
43
43
const template = document.createElement("template")
44
44
-
template.innerHTML = string
44
44
+
template.innerHTML = string.trim()
45
45
46
46
const firstChild = template.content.firstChild
47
47
if (firstChild) return firstChild