diff --git a/src/nu/validator/htmlparser/impl/AttributeName.java b/src/nu/validator/htmlparser/impl/AttributeName.java
index fa608ac6..01393f95 100644
--- a/src/nu/validator/htmlparser/impl/AttributeName.java
+++ b/src/nu/validator/htmlparser/impl/AttributeName.java
@@ -351,7 +351,6 @@ private AttributeName(@NsUri @NoLength String[] uri,
this.prefix = prefix;
// [NOCPP[
this.local = new String[4];
- this.qName = COMPUTE_QNAME(local, prefix);
this.flags = flags;
// ]NOCPP]
this.local[HTML] = html;
@@ -359,6 +358,7 @@ private AttributeName(@NsUri @NoLength String[] uri,
this.local[SVG] = svg;
// [NOCPP[
this.local[HTML_LANG] = htmlLang;
+ this.qName = COMPUTE_QNAME(local, prefix);
// ]NOCPP]
// CPPONLY: this.custom = false;
}