diff --git a/html/tokenizer.ts b/html/tokenizer.ts
index a8f36a7..b7d5532 100644
--- a/html/tokenizer.ts
+++ b/html/tokenizer.ts
@@ -170,7 +170,7 @@ export class Tokenizer {
}
this.create(DOCTYPEToken.createWithName(this.currentInputCharacter).startingAt(this.currentPosition));
- this.state = State.DOCTYPE;
+ this.state = State.DOCTYPEName;
}
}