Commit a4923280ce51dc540427a768d4d215355d6a81ff

Authored by gibran
1 parent e7f0e5ff

Correção da recomendação 1.5 critério 9 (verificação de 1º link como

âncora)
src/main/java/br/com/checker/emag/core/MarkEvaluation.java
@@ -577,12 +577,12 @@ public class MarkEvaluation extends Evaluation { @@ -577,12 +577,12 @@ public class MarkEvaluation extends Evaluation {
577 for (Element link : getDocument().getAllElements("a")) { 577 for (Element link : getDocument().getAllElements("a")) {
578 String contLink = link.getAttributeValue("href"); 578 String contLink = link.getAttributeValue("href");
579 if (contLink != null && contLink.length() > 1 579 if (contLink != null && contLink.length() > 1
580 - && contLink.substring(0, 1).equals("#")) {  
581 - occurrences.add(this.buildOccurrence("1.5", false,  
582 - link.toString(), link, "9"));//"4"));  
583 - break; 580 + && !contLink.substring(0, 1).equals("#")) {
  581 + occurrences.add(this.buildOccurrence("1.5", true,
  582 + link.toString(), link, "9"));//"4"));
584 } 583 }
585 - 584 +
  585 + break;
586 } 586 }
587 587
588 /* 588 /*