about summary refs log tree commit diff stats
path: root/src/html
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-06-18 15:44:23 +0200
committerbptato <nincsnevem662@gmail.com>2023-06-18 15:44:23 +0200
commite372bdaa0344b23c91aefa4da44c578fbf8f49e2 (patch)
tree8a19d778af0128005cb2de7b275109e1fbcd8806 /src/html
parent8157678366345f9040fe146f354e743d41156867 (diff)
downloadchawan-e372bdaa0344b23c91aefa4da44c578fbf8f49e2.tar.gz
input size as presentational hint
Diffstat (limited to 'src/html')
-rw-r--r--src/html/tags.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/html/tags.nim b/src/html/tags.nim
index c85fe2f7..9b60ec1f 100644
--- a/src/html/tags.nim
+++ b/src/html/tags.nim
@@ -151,6 +151,10 @@ const CharacterDataNodes* = {
   TEXT_NODE, CDATA_SECTION_NODE, PROCESSING_INSTRUCTION_NODE, COMMENT_NODE
 }
 
+const InputTypeWithSize* = {
+  INPUT_SEARCH, INPUT_TEXT, INPUT_EMAIL, INPUT_PASSWORD, INPUT_URL, INPUT_TEL
+}
+
 #https://html.spec.whatwg.org/multipage/parsing.html#the-stack-of-open-elements
 #NOTE MathML not implemented
 #TODO SVG foreignObject, SVG desc, SVG title