diff options
author | bptato <nincsnevem662@gmail.com> | 2024-01-06 20:25:39 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-01-06 20:25:39 +0100 |
commit | 969b894344e93c0f67f13795ee313f61f953528e (patch) | |
tree | 1bf48c7d1ba1b4002f21046b72092c0e2b41297c /src/html | |
parent | 30e648064e06f32e1a49e41fa4ce470719ca5938 (diff) | |
download | chawan-969b894344e93c0f67f13795ee313f61f953528e.tar.gz |
Fix some casing issues
Diffstat (limited to 'src/html')
-rw-r--r-- | src/html/dom.nim | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim index e411c069..89716be5 100644 --- a/src/html/dom.nim +++ b/src/html/dom.nim @@ -1593,8 +1593,10 @@ func canSubmitImplicitly*(form: HTMLFormElement): bool = return true func qualifiedName*(element: Element): string = - if element.namespacePrefix.issome: element.namespacePrefix.get & ':' & element.localName - else: element.localName + if element.namespacePrefix.isSome: + element.namespacePrefix.get & ':' & element.localName + else: + element.localName func html*(document: Document): HTMLElement = for element in document.elements(TAG_HTML): @@ -1888,7 +1890,7 @@ func inputString*(input: HTMLInputElement): string = if input.value != "": input.value else: "SUBMIT" of INPUT_FILE: - if input.file.isnone: + if input.file.isNone: "".padToWidth(int(input.attrulgz("size").get(20))) else: input.file.get.path.serialize_unicode().padToWidth(int(input.attrulgz("size").get(20))) |