Skip to content

Commit

Permalink
fix: querySelector should escape ids
Browse files Browse the repository at this point in the history
  • Loading branch information
joshferrell committed Jan 5, 2024
1 parent b460422 commit c6dda3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/getNodeByIdRef.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export function getNodeByIdRef({ container, idRef }) {
return null;
}

return container.querySelector(`#${idRef}`);
return container.querySelector(`#${CSS.escape(idRef)}`);
}

0 comments on commit c6dda3e

Please sign in to comment.