Skip to content

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

Closed
@HerringtonDarkholme

Description

@HerringtonDarkholme

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions