Commit e403dc308b9e129ae4b9460702581b97981e6cc4
1 parent
739daed6
Exists in
master
and in
1 other branch
marcação
git-svn-id: https://svn.bento.ifrs.edu.br/default/ASES/ASES%20-%20Web/ASES%20-%20Web/Fontes/avaliador-api@10444 c2178572-b5ca-4887-91d2-9e3a90c7d55b
Showing
1 changed file
with
5 additions
and
2 deletions
Show diff stats
src/main/java/br/com/checker/emag/core/MarkEvaluation.java
... | ... | @@ -250,8 +250,9 @@ public class MarkEvaluation extends Evaluation { |
250 | 250 | if(img.getAttributes().get("alt") != null && img.getAttributes().get("alt").getValue().isEmpty()) |
251 | 251 | occurrences.add(this.buildOccurrence("1.2", true,element.getStartTag().toString() + endTag, element, "1")); |
252 | 252 | }else{ |
253 | - if(element.getContent().toString().isEmpty() || element.getContent().toString().trim().equals("")) | |
253 | + if(element.getContent().toString().isEmpty() || element.getContent().toString().trim().equals("")){ | |
254 | 254 | occurrences.add(this.buildOccurrence("1.2", true, element.getStartTag().toString() + endTag, element, "1")); |
255 | + } | |
255 | 256 | } |
256 | 257 | } |
257 | 258 | } |
... | ... | @@ -268,10 +269,12 @@ public class MarkEvaluation extends Evaluation { |
268 | 269 | |
269 | 270 | if(img != null){ |
270 | 271 | if(img.getAttributes().get("alt") != null && img.getAttributes().get("alt").getValue().isEmpty()) |
271 | - occurrences.add(this.buildOccurrence("1.2", false, element.getStartTag().toString() + endTag, element, "1")); | |
272 | + occurrences.add(this.buildOccurrence("1.2", false, img.toString(), element, "1")); | |
273 | + | |
272 | 274 | }else{ |
273 | 275 | if(element.getContent().toString().isEmpty() || element.getContent().toString().trim().equals("")) |
274 | 276 | occurrences.add(this.buildOccurrence("1.2", false, element.getStartTag().toString() + endTag, element, "1")); |
277 | + | |
275 | 278 | } |
276 | 279 | } |
277 | 280 | } | ... | ... |