summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/lxml-tex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/lxml-tex.lua')
-rw-r--r--tex/context/base/mkiv/lxml-tex.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/lxml-tex.lua b/tex/context/base/mkiv/lxml-tex.lua
index eb7d15de8..c9675d435 100644
--- a/tex/context/base/mkiv/lxml-tex.lua
+++ b/tex/context/base/mkiv/lxml-tex.lua
@@ -1404,7 +1404,7 @@ local function attribute(collected,a,default)
end
end
-local function chainattribute(collected,arguments) -- todo: optional levels
+local function chainattribute(collected,arguments,default) -- todo: optional levels
if collected and #collected > 0 then
local e = collected[1]
while e do
@@ -1413,6 +1413,7 @@ local function chainattribute(collected,arguments) -- todo: optional levels
local a = at[arguments]
if a then
contextsprint(notcatcodes,a)
+ return
end
else
break -- error
@@ -1420,6 +1421,9 @@ local function chainattribute(collected,arguments) -- todo: optional levels
e = e.__p__
end
end
+ if default then
+ contextsprint(notcatcodes,default)
+ end
end
local function chainpath(collected,nonamespace)