Skip to content

Parser fails for template with inline SVG containing a viewBox attribute #51

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

Closed
HerringtonDarkholme opened this issue Jun 26, 2017 · 2 comments · Fixed by #57
Closed

Comments

@HerringtonDarkholme
Copy link
Member

Tell us about your environment

  • ESLint Version: 4.0.0
  • eslint-plugin-vue Version: 3.1.3
  • Node Version: 8.0.0

Please show your full configuration:
Vanilla

What did you do? Please include the actual source code causing the issue.

<template>
  <div>
    <svg viewBox="0 0 40 40"></svg>
  </div>
</template>

What did you expect to happen?
No error reported.

What actually happened? Please include the actual, raw output from ESLint.

0:0 error Parsing error: Cannot read property 'startOffset' of undefined

vuejs/vetur#291

@michalsnik
Copy link
Member

Hey @barraponto. Thanks for pointing this! However I'm going to close this issue as I already answered in #52 and now I'm reading this one and see it's about quite the same thing. I hope you don't mind.

The difference in this case is the case sensitivity instead of prefix existence.

@michalsnik
Copy link
Member

Fixed in v3.2.1 🚀

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

Successfully merging a pull request may close this issue.

2 participants