summary refs log tree commit diff stats
path: root/lib/pure/htmlgen.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2020-02-21 16:58:30 +0100
committerAraq <rumpf_a@web.de>2020-02-21 16:58:30 +0100
commit1d90d9816b7c2065e333a000bc0208fb6c145f10 (patch)
tree7a25c754e4fdb3a4ef7de16ce0a369e49c27acf1 /lib/pure/htmlgen.nim
parent3667fd9f426eac968c326b3dc9571b7b7e8fef67 (diff)
downloadNim-1d90d9816b7c2065e333a000bc0208fb6c145f10.tar.gz
fixes #13444
Diffstat (limited to 'lib/pure/htmlgen.nim')
-rw-r--r--lib/pure/htmlgen.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/htmlgen.nim b/lib/pure/htmlgen.nim
index eb9dd9a73..e0518f5ee 100644
--- a/lib/pure/htmlgen.nim
+++ b/lib/pure/htmlgen.nim
@@ -89,7 +89,7 @@ proc xmlCheckedTag*(argsList: NimNode, tag: string, optAttr = "", reqAttr = "",
   for i in 0 ..< argsList.len:
     if argsList[i].kind == nnkExprEqExpr:
       var name = getIdent(argsList[i][0])
-      if delete(req, name) or delete(opt, name):
+      if name.startsWith("data-") or delete(req, name) or delete(opt, name):
         result.add(newStrLitNode(" "))
         result.add(newStrLitNode(name))
         result.add(newStrLitNode("=\""))