about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-11-24 22:06:39 +0100
committerbptato <nincsnevem662@gmail.com>2024-11-24 22:06:39 +0100
commit9363cbdb08e88239371d8160d95ec6124a46f47c (patch)
tree338c0b11caedbba0b3bf5da821695c8f24964273 /src
parente6f70f85dadb248a6d97f06d78f8e49d60bbcba2 (diff)
downloadchawan-9363cbdb08e88239371d8160d95ec6124a46f47c.tar.gz
dom: fix some comparisons
Diffstat (limited to 'src')
-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