summaryrefslogtreecommitdiff
path: root/xps/xps_xml.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-03-14 16:24:44 +0100
committerTor Andersson <tor.andersson@artifex.com>2012-03-14 16:24:44 +0100
commit4f6bd093d6292cea66a0152b3083ce898dab0772 (patch)
tree27af20cf5110469fbf33408ac37935250b5ee415 /xps/xps_xml.c
parentfac8b8f9f0df6d617b333ee8cad87e295926922a (diff)
downloadmupdf-4f6bd093d6292cea66a0152b3083ce898dab0772.tar.xz
Support alternate content / markup compatibility tags in XPS.
Diffstat (limited to 'xps/xps_xml.c')
-rw-r--r--xps/xps_xml.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xps/xps_xml.c b/xps/xps_xml.c
index e2e958c8..8daee00b 100644
--- a/xps/xps_xml.c
+++ b/xps/xps_xml.c
@@ -94,6 +94,12 @@ void xml_free_element(fz_context *ctx, struct element *item)
}
}
+void xml_detach(xml_element *node)
+{
+ if (node->up)
+ node->up->down = NULL;
+}
+
static int xml_parse_entity(int *c, char *a)
{
char *b;