summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex/luaxml/luaxml-parse-query.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-06-14 21:41:00 +0000
committerKarl Berry <karl@freefriends.org>2018-06-14 21:41:00 +0000
commite01f1b9c17b6436584bc92c7ae50151fd8e8205d (patch)
treed56f74728cd1737b7a86c3cc2c15e6b216faebb6 /Master/texmf-dist/tex/luatex/luaxml/luaxml-parse-query.lua
parent5c25b51ce087f0f8464448ac3ad03f16c16b35be (diff)
luaxml (14jun18)
git-svn-id: svn://tug.org/texlive/trunk@48015 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luaxml/luaxml-parse-query.lua')
-rw-r--r--Master/texmf-dist/tex/luatex/luaxml/luaxml-parse-query.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/luatex/luaxml/luaxml-parse-query.lua b/Master/texmf-dist/tex/luatex/luaxml/luaxml-parse-query.lua
index 95679670529..7931fa193fc 100644
--- a/Master/texmf-dist/tex/luatex/luaxml/luaxml-parse-query.lua
+++ b/Master/texmf-dist/tex/luatex/luaxml/luaxml-parse-query.lua
@@ -13,7 +13,10 @@ end
local alphanum = R("az", "AZ", "09")
local num = R("09")
local white = S(" \t\n") ^ 0
-local word = (alphanum + S("_-")) ^ 1
+-- this is a deviation from the upstream, we allow ":" in the tag name, because
+-- luaxml doesn't support XML namespaces and elements must be queried using
+-- dom:query_selector("namespace:element")
+local word = (alphanum + S("_-") + S("|")) ^ 1
local mark
mark = function(name)
return function(...)