From 03c8742bcaceb7075377656f2d23b0ce7cd7fe70 Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Fri, 7 Sep 2018 00:16:46 -0400 Subject: [PATCH] Ensure attrs following valueless attrs start at the correct col. Prior to this we would the next attribute with a location info that is _after_ where it actually starts. --- src/evented-tokenizer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evented-tokenizer.ts b/src/evented-tokenizer.ts index 412b551..360de2a 100644 --- a/src/evented-tokenizer.ts +++ b/src/evented-tokenizer.ts @@ -333,9 +333,9 @@ export default class EventedTokenizer { } else { this.delegate.beginAttributeValue(false); this.delegate.finishAttributeValue(); - this.consume(); this.transitionTo(TokenizerState.attributeName); this.delegate.beginAttribute(); + this.consume(); this.delegate.appendToAttributeName(char); } },