|
|
@ -74,7 +74,7 @@ export default function tag ( parser ) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const attributes = [];
|
|
|
|
const attributes = [];
|
|
|
|
const uniqueNames = new Map();
|
|
|
|
const uniqueNames = new Set();
|
|
|
|
|
|
|
|
|
|
|
|
let attribute;
|
|
|
|
let attribute;
|
|
|
|
while ( attribute = readAttribute( parser, uniqueNames ) ) {
|
|
|
|
while ( attribute = readAttribute( parser, uniqueNames ) ) {
|
|
|
@ -143,7 +143,7 @@ function readAttribute ( parser, uniqueNames ) {
|
|
|
|
parser.error( 'Attributes need to be unique', start );
|
|
|
|
parser.error( 'Attributes need to be unique', start );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
uniqueNames.set(name, true);
|
|
|
|
uniqueNames.add( name );
|
|
|
|
|
|
|
|
|
|
|
|
parser.allowWhitespace();
|
|
|
|
parser.allowWhitespace();
|
|
|
|
|
|
|
|
|
|
|
|