From b1128b63f7e0fead22b601dafcf3318ea71417d4 Mon Sep 17 00:00:00 2001 From: Jos van den Oever Date: Fri, 14 Aug 2015 12:53:58 +0200 Subject: [PATCH] Support Relax NG element. --- webodf/tools/odfRng2Config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webodf/tools/odfRng2Config.js b/webodf/tools/odfRng2Config.js index 07f56dcae..1b2f1d81e 100644 --- a/webodf/tools/odfRng2Config.js +++ b/webodf/tools/odfRng2Config.js @@ -226,6 +226,9 @@ function handleChildElements(e, defs, current, elements, attributes, defines) { handleChildElements(c, defs, info, elements, attributes, defines); } else if (isRng("text", c)) { current.text = true; + } else if (isRng("mixed", c)) { + current.text = true; + handleChildElements(c, defs, current, elements, attributes, defines); } else if (isRng("data", c)) { current.data = true; } else if (isRng("value", c)) {