Commit 8692771ac76ab91f4632abcd39e76c715f884264
1 parent
9f81c2f5
Exists in
master
and in
1 other branch
Troca do "equals" por "equalsIgnoreCase" nos métodos que identificam se
é html 5.
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
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"); | ... | ... |