From 1dcf316674a4be5c39c515e9e8b2e7d6ea8a810e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Fri, 18 Oct 2024 15:07:04 +0200 Subject: [PATCH] Compute qName once we've filled in the local array. Since it depends on it. Fixes #91 --- src/nu/validator/htmlparser/impl/AttributeName.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }