summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex/luaxml/luaxml-domobject.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luaxml/luaxml-domobject.lua')
-rw-r--r--Master/texmf-dist/tex/luatex/luaxml/luaxml-domobject.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/luatex/luaxml/luaxml-domobject.lua b/Master/texmf-dist/tex/luatex/luaxml/luaxml-domobject.lua
index ac4404b393a..c764c91fb7e 100644
--- a/Master/texmf-dist/tex/luatex/luaxml/luaxml-domobject.lua
+++ b/Master/texmf-dist/tex/luatex/luaxml/luaxml-domobject.lua
@@ -37,6 +37,7 @@ local actions = {
COMMENT = {start = "<!-- ", text = "%s", stop = " -->"},
ELEMENT = {start = "<%s%s>", stop = "</%s>", void = "<%s%s />"},
DECL = {start = "<?%s %s?>"},
+ PI = {start = "<?%s %s?>"},
DTD = {start = "<!DOCTYPE ", text = "%s" , stop=">"},
CDATA = {start = "<![CDATA[", text = "%s", stop ="]]>"}
@@ -109,6 +110,9 @@ local function serialize_dom(parser, current,level, output)
local format = get_action(xtype, "void")
insert(format, name, prepare_attributes(attributes))
return output
+ elseif xtype == "PI" then
+ -- it contains spurious _text attribute
+ attributes["_text"] = nil
end
start(xtype, name, attributes)