diff options
| author | bptato <nincsnevem662@gmail.com> | 2025-01-01 16:48:57 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2025-01-01 16:48:57 +0100 |
| commit | 5730ddceae56107c5a8fe639aa54176bdaf6e547 (patch) | |
| tree | cb9879b4df24429a5767307f650fedf4eb7d80a2 /src/html | |
| parent | 081b1a6c0ba8357c421e4d361a814b1f07bedffe (diff) | |
| download | chawan-5730ddceae56107c5a8fe639aa54176bdaf6e547.tar.gz | |
layout, dom: input rendering fixes
* do not display submit/reset text with empty value
* fix erroneous blank placement with white-space: pre on new line
Diffstat (limited to 'src/html')
| -rw-r--r-- | src/html/dom.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim index 06193a98..c23ed6eb 100644 --- a/src/html/dom.nim +++ b/src/html/dom.nim @@ -2591,12 +2591,12 @@ func inputString*(input: HTMLInputElement): string = of itPassword: '*'.repeat(input.value.len).padToWidth(int(input.attrulgz(satSize).get(20))) of itReset: - if input.value != "": + if input.attrb(satValue): input.value else: "RESET" of itSubmit, itButton: - if input.value != "": + if input.attrb(satValue): input.value else: "SUBMIT" |