|
@@ -5997,9 +5997,9 @@
|
|
|
}
|
|
|
|
|
|
function lookAheadForMatchingKeyedElementAndMoveItIfFound(nextEl, currentKey) {
|
|
|
- if (!nextEl) return; // If the next El is a sibling template, we don't want it
|
|
|
+ if (!nextEl) return; // If the next El is a sibling template tag, we're done.
|
|
|
|
|
|
- if (nextEl.tagName === 'TEMPLATE') return; // If the the key's DO match, no need to look ahead.
|
|
|
+ if (nextEl.tagName.toLowerCase() === 'template') return; // If the the key's DO match, no need to look ahead.
|
|
|
|
|
|
if (nextEl.__x_for_key === currentKey) return nextEl; // If they don't, we'll look ahead for a match.
|
|
|
// If we find it, we'll move it to the current position in the loop.
|