Skip to content

Commit

Permalink
Compute qName once we've filled in the local array.
Browse files Browse the repository at this point in the history
Since it depends on it.

Fixes #91
  • Loading branch information
emilio committed Oct 18, 2024
1 parent 69f15e4 commit 1dcf316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nu/validator/htmlparser/impl/AttributeName.java
Original file line number Diff line number Diff line change
Expand Up @@ -351,14 +351,14 @@ 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;
this.local[MATHML] = mathml;
this.local[SVG] = svg;
// [NOCPP[
this.local[HTML_LANG] = htmlLang;
this.qName = COMPUTE_QNAME(local, prefix);
// ]NOCPP]
// CPPONLY: this.custom = false;
}
Expand Down

0 comments on commit 1dcf316

Please sign in to comment.