Skip to content

Commit bb67538

Browse files
Skip template contents when checking ID uniqueness (#77)
1 parent a555f57 commit bb67538

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@ public final void startTag(ElementName elementName,
14631463
if (errorHandler != null) {
14641464
// ID uniqueness
14651465
@IdType String id = attributes.getId();
1466-
if (id != null) {
1466+
if (id != null && !isTemplateContents()) {
14671467
LocatorImpl oldLoc = idLocations.get(id);
14681468
if (oldLoc != null) {
14691469
err("Duplicate ID \u201C" + id + "\u201D.");

0 commit comments

Comments
 (0)