<!-- * Please fill out this template with all the relevant information so we can understand what's going on and fix the issue. We appreciate bugs filed and PRs submitted! * Please make sure that you are familiar with and follow the Code of Conduct for this project (found in the CODE_OF_CONDUCT.md file). We'll probably ask you to submit the fix (after giving some direction). If you've never done that before, that's great! Check this free short video tutorial to learn how: http://kcd.im/pull-request --> - `@testing-library/jest-dom` version: 6.6.3 - `node` version: 22.13 - `jest` (or `vitest`) version: Vitest (3.0.1) - `npm` (or `yarn`) version: pnpm 9.15.4 <!-- * `react-testing-library` version: 16.1.0 --> ### Relevant code or config: HTML looks like that: ``` <button aria-label="Delete" class="css-18cu5b5" data-rac="" data-testid="delete-button-0" id="react-aria-:r6:" type="button" > <svg fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" > ... </svg> </button> ``` ### What you did: <!-- What you were doing --> `await userEvent.click(screen.getByTestId('delete-button-0'));` ### What happened: <!-- Please provide the full error message/screenshots/anything --> <img width="1129" alt="Image" src="https://github.com/user-attachments/assets/873ebed1-8db3-4fe6-a508-cd2db3e248b2" /> Since I updated jsdom to 26.0.0 I get `SyntaxError: 'button#react-aria-:r22:.css-ofddhz svg' is not a valid selector`. The id seems to be valid and is generated by react-aria. ### Reproduction: <!-- If possible, please create a repository that reproduces the issue with the minimal amount of code possible. Or if you can, try to reproduce the issue in a Codesandbox. You can fork the one here: https://codesandbox.io/s/5z6x4r7n0p --> ### Problem description: <!-- Please describe why the current behavior is a problem --> According to react-aria this is a valid id. https://github.com/adobe/react-spectrum/discussions/7624#discussioncomment-11874786 ### Suggested solution: <!-- It's ok if you don't have a suggested solution, but it really helps if you could do a little digging to come up with some suggestion of how to improve things. -->