about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--res/ua.css3
-rw-r--r--src/html/dom.nim2
2 files changed, 3 insertions, 2 deletions
diff --git a/res/ua.css b/res/ua.css
index 8404c8b6..8039af96 100644
--- a/res/ua.css
+++ b/res/ua.css
@@ -141,7 +141,8 @@ input[type="radio"]::after {
 	color: initial;
 }
 
-input:is([type="text"], [type="password"], [type="search"], [type="file"]) {
+input:is([type="text"], [type="password"], [type="search"], [type="file"],
+		[type="url"], [type="email"], [type="tel"]) {
 	text-decoration: underline;
 }
 
diff --git a/src/html/dom.nim b/src/html/dom.nim
index 67f0c666..b7b23356 100644
--- a/src/html/dom.nim
+++ b/src/html/dom.nim
@@ -1739,7 +1739,7 @@ func inputString*(input: HTMLInputElement): string =
   of INPUT_CHECKBOX, INPUT_RADIO:
     if input.checked: "*"
     else: " "
-  of INPUT_SEARCH, INPUT_TEXT:
+  of INPUT_SEARCH, INPUT_TEXT, INPUT_EMAIL, INPUT_URL, INPUT_TEL:
     input.value.padToWidth(int(input.attrulgz("size").get(20)))
   of INPUT_PASSWORD:
     '*'.repeat(input.value.len).padToWidth(int(input.attrulgz("size").get(20)))