Re: Re: Re: xforms:output mediatype="text/html" and canvas element?
Posted by fl.schmitt(ops-users) on URL: https://discuss.orbeon.com/xforms-output-mediatype-text-html-and-canvas-element-tp2549084p3006726.html
Hi Alessandro,
> So I am not sure why the <xhtml:canvas> wouldn't show. Your code was
> pasted as is in your email, and the markup didn't make it. If this is
> still an issue, could you resend your test case as an attachment?
thank you for your reply - i think the problem was caused by JTidy
stripping unknown elements. The patch that i've proposed later [1]
allows the declaration of "new" elements that JTidy won't touch. The
patch contains such a declaration regarding the canvas tag, and with
JTidy modified in that manner, the canvas example works fine.
But as Eric wrote [2], it's not quite efficient to (re-)load the JTidy
config file every time when htmlStringToDocument() is called, so i will
try to modify the patch as soon as possible.