labelFor.clear();
inputIdToLine.clear();
}
@Override
public void startElement(TagNode node) {
<BUG>if (isInput(node) && !hasExcludedType(node)) {
String id = node.getAttribute("id");</BUG>
if (id == null) {
<BUG>createViolation(node.getStartLinePosition(), "Add an 'id' attribute to this input field and associate it with a label.");
</BUG>
} else {

labelFor.clear();
inputIdToLine.clear();
}
@Override
public void startElement(TagNode node) {
if (isInputRequiredLabel(node) || isSelect(node) || isTextarea(node)) {
String id = node.getAttribute("id");
if (id == null) {
createViolation(node.getStartLinePosition(), "Add an \"id\" attribute to this input field and associate it with a label.");
} else {
