Commit 6833a5b8960a2d6e54688eca291df24573fa21f0

Authored by lyandro.santana
1 parent 3af82436

marcação

git-svn-id: https://svn.bento.ifrs.edu.br/default/ASES/ASES%20-%20Web/ASES%20-%20Web/Fontes/avaliador-api@10447 c2178572-b5ca-4887-91d2-9e3a90c7d55b
src/main/java/br/com/checker/emag/core/MarkEvaluation.java
... ... @@ -260,7 +260,7 @@ public class MarkEvaluation extends Evaluation {
260 260 }
261 261  
262 262 List<Integer> linhasImg = new ArrayList<Integer>();
263   - tags = Arrays.asList("Doctype","script","meta","style","head","h1","h2","h3","h4","h5","h6","a","p");
  263 + tags = Arrays.asList("!doctype","script","meta","style","head","link","h1","h2","h3","h4","h5","h6","a","p");
264 264  
265 265 for (Element element : getDocument().getAllElements()) {
266 266 if(!tags.contains(element.getName())){
... ... @@ -273,9 +273,12 @@ public class MarkEvaluation extends Evaluation {
273 273  
274 274 if(img != null){
275 275 if(img.getAttributes().get("alt") != null && img.getAttributes().get("alt").getValue().isEmpty()){
276   - if(!linhasImg.contains(this.getRow(img)));
  276 +
  277 + if(!linhasImg.contains(this.getRow(img))){
277 278 occurrences.add(this.buildOccurrence("1.2", false, img.toString(), img, "1"));
278   - linhasImg.add(this.getRow(img));
  279 + }
  280 +
  281 + linhasImg.add(this.getRow(img));
279 282 }
280 283  
281 284 }else{
... ...