Skip to content

Commit 12dc2b7

Browse files
authored
Compute qName once we've filled in the local array. (#92)
Since it depends on it. Fixes #91
1 parent 69f15e4 commit 12dc2b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nu/validator/htmlparser/impl/AttributeName.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,14 +351,14 @@ private AttributeName(@NsUri @NoLength String[] uri,
351351
this.prefix = prefix;
352352
// [NOCPP[
353353
this.local = new String[4];
354-
this.qName = COMPUTE_QNAME(local, prefix);
355354
this.flags = flags;
356355
// ]NOCPP]
357356
this.local[HTML] = html;
358357
this.local[MATHML] = mathml;
359358
this.local[SVG] = svg;
360359
// [NOCPP[
361360
this.local[HTML_LANG] = htmlLang;
361+
this.qName = COMPUTE_QNAME(local, prefix);
362362
// ]NOCPP]
363363
// CPPONLY: this.custom = false;
364364
}

0 commit comments

Comments
 (0)