Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Element selector provide invalid selector xlink:href #1919

Open
codecrafter97 opened this issue Feb 27, 2025 · 0 comments
Open

Element selector provide invalid selector xlink:href #1919

codecrafter97 opened this issue Feb 27, 2025 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@codecrafter97
Copy link

codecrafter97 commented Feb 27, 2025

Describe the bug
The element selector generates an invalid CSS selector xlink:href which causes errors when paste the selector into Click Element block

To Reproduce
Steps to reproduce the behavior:

  1. Run document.querySelectorAll("[xlink:href='anything']")
  2. Error shows Uncaught SyntaxError: Failed to execute 'querySelectorAll' on 'Document': '[xlink:href='anything']' is not a valid selector.

Expected behavior
Element selector should return valid selector to avoid syntax error, like replace xlink to *| -> [*|href='anything']

Screenshots
I am trying to click copy button below, element selector allows me to copy use[xlink:href='#tongyi-copy-line'] which cause my workflow to hit error, and after some searching I need to use [*|href='#tongyi-copy-line'] instead, which I found out from https://stackoverflow.com/a/39953667
Image

Copy button at https://tongyi.aliyun.com/

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Google Chrome
  • Extension Version: 1.29.6

Additional context
Thank you

@bingren-yd bingren-yd self-assigned this Mar 4, 2025
@bingren-yd bingren-yd added bug Something isn't working enhancement New feature or request labels Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants