Skip to content

Commit e1369ad

Browse files
work around numeric ids not being valid css selectors when prepended with #.
1 parent 1dc5d3d commit e1369ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/idiomorph.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,8 @@ var Idiomorph = (function () {
548548
const target =
549549
/** @type {Element} - will always be found */
550550
(
551-
ctx.target.querySelector(`#${id}`) ||
552-
ctx.pantry.querySelector(`#${id}`)
551+
ctx.target.querySelector(`[id="${id}"]`) ||
552+
ctx.pantry.querySelector(`[id="${id}"]`)
553553
);
554554
removeElementFromAncestorsIdMaps(target, ctx);
555555
moveBefore(parentNode, target, after);

0 commit comments

Comments
 (0)