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

Support of href in a element #312

Open
linev opened this issue Sep 30, 2024 · 1 comment
Open

Support of href in a element #312

linev opened this issue Sep 30, 2024 · 1 comment

Comments

@linev
Copy link

linev commented Sep 30, 2024

Seems to be, href attribute is not supported in a element.

Simple example from developer.mozilla.org.

<svg viewBox="0 0 160 40" xmlns="http://www.w3.org/2000/svg">
  <a href="https://developer.mozilla.org/">
    <text x="10" y="25">MDN Web Docs</text>
  </a>
</svg>

As I can see, a element handled exactly in the same way as g element and href attribute just ignored.

But jsPDF has link method which can be applied here.

Are there plans to support it?

Should I try to create PR solving this problem?

@yGuy
Copy link
Member

yGuy commented Sep 30, 2024

If it's that simple, I don't see why we should not be doing this. Maybe we would like to have this configurable (enabled/disabled), but supporting this sounds like a good idea. We would definitely consider a PR!
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants