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

Trying to build Web Components for SVG should produce a warning/error #5833

Open
akauppi opened this issue Dec 28, 2020 · 2 comments
Open

Trying to build Web Components for SVG should produce a warning/error #5833

akauppi opened this issue Dec 28, 2020 · 2 comments

Comments

@akauppi
Copy link

akauppi commented Dec 28, 2020

Web Components are HTML only and not supported in the SVG namespace.

However, users such as me might not know this, and it would be helpful if the Svelte compiler told us so.

Describe the bug
Currently (Dec 2020), Svelte compiles a source with <svelte:options namespace="svg" tag="svsv-draggable" /> quietly.

The output contains:

SvelteElement = class extends HTMLElement {

This is enough to convince me that the code tries to make an HTML Web Component, but I haven't fully traced the output.

Expected behavior
Give the user a nice message, saying what we're trying to reach is not currently possible.

Information about your Svelte project:

  • Svelte version: 3.31.0
  • Whether your project uses Webpack or Rollup: Rollup

Severity
Not severe. Helpful.

Additional context
Add any other context about the problem here.

@stale
Copy link

stale bot commented Jun 26, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale
Copy link

stale bot commented Dec 24, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale-bot label Dec 24, 2021
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

3 participants