Closed
Description
Tell us about your environment
- ESLint Version: 4.1.1
- eslint-plugin-vue Version: 3.1.3
- Node Version: 6.9.2
Please show your full configuration:
env:
browser: true
es6: true
extends:
- eslint:recommended
- plugin:vue/recommended
What did you do? Please include the actual source code causing the issue.
<template>
<svg class="icon">
<use xlink:href="#chevron"></use>
</svg>
</template>
What did you expect to happen?
xlink:href
attributes shouldn't cause parsing errors. We are using an SVG sprite built with gulp-svg-sprite for our iconography; this attribute refers to the icon's ID.
What actually happened? Please include the actual, raw output from ESLint.
Received the following Parsing error
:
0:0 error Parsing error: Cannot read property 'startOffset' of undefined
The error disappears upon removal of the xlink:href
attribute.