Commit ece5f89a9d5b036d572c4e636fb9a2202643a18f
1 parent
89ddfa58
Exists in
master
and in
1 other branch
Correções
git-svn-id: https://svn.bento.ifrs.edu.br/default/ASES/ASES%20-%20Web/ASES%20-%20Web/Fontes/avaliador-api@10534 c2178572-b5ca-4887-91d2-9e3a90c7d55b
Showing
2 changed files
with
3 additions
and
1 deletions
Show diff stats
src/main/java/br/com/checker/emag/core/ContentEvaluation.java
... | ... | @@ -497,6 +497,7 @@ public class ContentEvaluation extends Evaluation{ |
497 | 497 | parts = value.toString().split("/"); |
498 | 498 | contAlt = alt.getValue(); |
499 | 499 | |
500 | + if(parts.length > 0) | |
500 | 501 | if(parts[parts.length-1].toString().equals(contAlt)) |
501 | 502 | occurrences.add(buildOccurrence("3.6", true, img.toString(), img, "3")); |
502 | 503 | } | ... | ... |
src/main/java/br/com/checker/emag/core/MarkEvaluation.java
... | ... | @@ -24,7 +24,8 @@ import com.google.gson.GsonBuilder; |
24 | 24 | |
25 | 25 | public class MarkEvaluation extends Evaluation { |
26 | 26 | |
27 | - private static String CSS_VALIDATOR_URL = "http://www.css-validator.org/validator?uri=#{url}&warning=0&output=soap12"; | |
27 | + //private static String CSS_VALIDATOR_URL = "http://www.css-validator.org/validator?uri=#{url}&warning=0&output=soap12"; | |
28 | + private static String CSS_VALIDATOR_URL = "http://jigsaw.w3.org/css-validator/validator?uri=#{url}&warning=0&output=soap12"; | |
28 | 29 | private static String HTML_VALIDATOR_URL = "https://validator.w3.org/nu/?doc=#{url}&out=json"; |
29 | 30 | |
30 | 31 | private MarkEvaluation(Source document) { super(document); } | ... | ... |