about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/html/dom.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim
index ec3b199e..759988eb 100644
--- a/src/html/dom.nim
+++ b/src/html/dom.nim
@@ -2061,7 +2061,7 @@ func scriptingEnabled(element: Element): bool =
 
 func isSubmitButton*(element: Element): bool =
   if element of HTMLButtonElement:
-    return element.attr(satType) == "submit"
+    return element.attr(satType).equalsIgnoreCase("submit")
   elif element of HTMLInputElement:
     let element = HTMLInputElement(element)
     return element.inputType in {itSubmit, itImage}
@@ -2642,7 +2642,7 @@ func findAnchor*(document: Document; id: string): Element =
 
 proc findMetaRefresh*(document: Document): Element =
   for child in document.elements(TAG_META):
-    if child.attr(satHttpEquiv) == "refresh":
+    if child.attr(satHttpEquiv).equalsIgnoreCase("refresh"):
       return child
   return nil