Commit a4923280ce51dc540427a768d4d215355d6a81ff
1 parent
e7f0e5ff
Exists in
master
and in
1 other branch
Correção da recomendação 1.5 critério 9 (verificação de 1º link como
âncora)
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
src/main/java/br/com/checker/emag/core/MarkEvaluation.java
... | ... | @@ -577,12 +577,12 @@ public class MarkEvaluation extends Evaluation { |
577 | 577 | for (Element link : getDocument().getAllElements("a")) { |
578 | 578 | String contLink = link.getAttributeValue("href"); |
579 | 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 | /* | ... | ... |