|
|
@@ -210,7 +210,7 @@ export function parse (
|
|
|
shouldDecodeNewlinesForHref: options.shouldDecodeNewlinesForHref,
|
|
|
shouldKeepComment: options.comments,
|
|
|
outputSourceRange: options.outputSourceRange,
|
|
|
- start (tag, attrs, unary, start) {
|
|
|
+ start (tag, attrs, unary, start, end) {
|
|
|
// check namespace.
|
|
|
// inherit parent ns if there is one
|
|
|
const ns = (currentParent && currentParent.ns) || platformGetTagNamespace(tag)
|
|
|
@@ -229,6 +229,7 @@ export function parse (
|
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
|
if (options.outputSourceRange) {
|
|
|
element.start = start
|
|
|
+ element.end = end
|
|
|
element.rawAttrsMap = element.attrsList.reduce((cumulated, attr) => {
|
|
|
cumulated[attr.name] = attr
|
|
|
return cumulated
|