Skip to content

Make trailing-slash-on-void-elements message not depend on profile code #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions src/nu/validator/htmlparser/impl/ErrorReportingTokenizer.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,6 @@ public void setErrorProfile(HashMap<String, String> errorProfileMap) {
this.errorProfileMap = errorProfileMap;
}

/**
* Gets the errorProfile.
*
* @param errorProfile
*/
@Override public HashMap getErrorProfile() {
return errorProfileMap;
}

/**
* Reports on an event based on profile selected.
*
Expand Down
11 changes: 0 additions & 11 deletions src/nu/validator/htmlparser/impl/Tokenizer.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@

package nu.validator.htmlparser.impl;

import java.util.HashMap;

import org.xml.sax.ErrorHandler;
import org.xml.sax.Locator;
import org.xml.sax.ext.Locator2;
Expand Down Expand Up @@ -688,15 +686,6 @@ public ErrorHandler getErrorHandler() {
return this.errorHandler;
}

/**
* Gets the errorProfile.
*
* @param errorProfile
*/
public HashMap getErrorProfile() {
return null;
}

/**
* Sets the commentPolicy.
*
Expand Down
4 changes: 1 addition & 3 deletions src/nu/validator/htmlparser/impl/TreeBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -2886,9 +2886,7 @@ public final void startTag(ElementName elementName,
if (selfClosing) {
errSelfClosing();
// [NOCPP[
} else if (wasSelfClosing && voidElement
&& tokenizer.getErrorProfile() != null
&& tokenizer.getErrorProfile().get("html-strict") != null) {
} else if (wasSelfClosing && voidElement) {
warn("Trailing slash on void elements has no effect and interacts"
+ " badly with unquoted attribute values.");
// ]NOCPP]
Expand Down