Skip to content

Commit

Permalink
fixes #13444
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed Feb 21, 2020
1 parent 3667fd9 commit 1d90d98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pure/htmlgen.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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("=\""))
Expand Down

0 comments on commit 1d90d98

Please sign in to comment.