Commit 8692771ac76ab91f4632abcd39e76c715f884264

Authored by gibran
1 parent 9f81c2f5

Troca do "equals" por "equalsIgnoreCase" nos métodos que identificam se

é html 5.
src/main/java/br/com/checker/emag/core/ContentEvaluation.java
... ... @@ -240,7 +240,7 @@ public class ContentEvaluation extends Evaluation {
240 240 }
241 241  
242 242 // Caso seja diferente de html5
243   - if (!doctype.equals("<!DOCTYPEhtml>")) {
  243 + if (!doctype.equalsIgnoreCase("<!DOCTYPEhtml>")) {
244 244  
245 245 if (xmlLang == null) {
246 246 occurrences.add(this.buildOccurrence("3.1", true, tagHtml,
... ...
src/main/java/br/com/checker/emag/core/MarkEvaluation.java
... ... @@ -942,7 +942,7 @@ public class MarkEvaluation extends Evaluation {
942 942 List<Occurrence> occurrences = new ArrayList<Occurrence>();
943 943 Element firstElement = this.getDocument().getFirstElement();
944 944  
945   - if (firstElement.toString().replace(" ", "").equals("<!DOCTYPEhtml>")) {
  945 + if (firstElement.toString().replace(" ", "").equalsIgnoreCase("<!DOCTYPEhtml>")) {
946 946  
947 947 Element header = getDocument().getFirstElement("header");
948 948 Element nav = getDocument().getFirstElement("nav");
... ...