Precise DOM morphing
morphing typescript dom
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Treat input elements with different types as though they were different tags

+4
+4
src/morphlex.ts
··· 363 363 364 364 for (const candidate of candidates) { 365 365 if (isElement(candidate) && localName === candidate.localName) { 366 + if (isInputElement(candidate) && isInputElement(node) && candidate.type !== node.type) { 367 + // Treat inputs with different type as though they are different tags. 368 + continue 369 + } 366 370 matches.set(node, candidate) 367 371 unmatched.delete(node) 368 372 candidates.delete(candidate)