Commit e6102b306ecf1c2d17f2e8e3dcaeb716dc8ec23b

Authored by lyandro.santana
1 parent c7c18ff7

marcação

git-svn-id: https://svn.bento.ifrs.edu.br/default/ASES/ASES%20-%20Web/ASES%20-%20Web/Fontes/avaliador-api@10461 c2178572-b5ca-4887-91d2-9e3a90c7d55b
src/main/java/br/com/checker/emag/core/MarkEvaluation.java
... ... @@ -195,7 +195,7 @@ public class MarkEvaluation extends Evaluation {
195 195  
196 196 linhasImg = new ArrayList<Integer>();
197 197  
198   - tags = Arrays.asList("!doctype","script","meta","style","head","link","h1","h2","h3","h4","h5","h6","a","p");
  198 + tags = Arrays.asList("!doctype","script","meta","style","head","link","h1","h2","h3","h4","h5","h6","a","p","input");
199 199  
200 200 for (Element element : getDocument().getAllElements()) {
201 201 if(!tags.contains(element.getName())){
... ...
src/main/java/br/com/checker/emag/core/PresentationEvaluation.java
... ... @@ -158,15 +158,19 @@ public class PresentationEvaluation extends Evaluation{
158 158  
159 159 for (Element style : getDocument().getAllElements("style")) {
160 160  
161   - if(!style.toString().contains("a:focus") && !style.toString().contains("a:hover"))
  161 + if(!style.toString().contains("a:focus") && !style.toString().contains("a:hover")){
162 162 occurrences.add(buildOccurrence("4.4", true, style.toString(), style, "1"));
  163 + break;
  164 + }
163 165 }
164 166  
165 167 for (Element style : getDocument().getAllElements("a")) {
166 168 Attribute attribute = style.getAttributes().get("style");
167 169 if(attribute != null)
168   - if(!attribute.toString().contains("a:focus") && !attribute.toString().contains("a:hover"))
  170 + if(!attribute.toString().contains("a:focus") && !attribute.toString().contains("a:hover")){
169 171 occurrences.add(buildOccurrence("4.4", true, style.toString(), style, "1"));
  172 + break;
  173 + }
170 174 }
171 175  
172 176  
... ... @@ -186,6 +190,7 @@ public class PresentationEvaluation extends Evaluation{
186 190  
187 191 if (content!=null && !content.contains("a:hover") && !content.contains("a:focus")){
188 192 occurrences.add(buildOccurrence("4.4", true, link.toString(), link, "1"));
  193 + break;
189 194 }
190 195 }
191 196  
... ...