[Bug 9887] parsing algorithm should allow HTML content in MathML <annotation-xml>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=9887





--- Comment #23 from David Carlisle <davidc@nag.co.uk>  2010-08-23 16:58:47 ---
(In reply to comment #19)


> Oh and we could make the value be application/xhtml+xml instead of
> (or as well as) text/html,

After some discussion by the Math Working Group of various alternatives,
we would like to state a preference that

annotation-xml be parsed as currently specified (defaulting to mathml
namespace) unless the encoding attribute is either text/html or
application/xhtml+xml in which case it should be parsed more like mtext with
element content defaulting to html (and any nested html elements not causing
the math expression to be terminated).

We did consider the simpler alternative you suggested in comment #20 of just
always parsing annotation-xml like mtext, however the real problem there is
that when using the html parsing rules any xml /> empty element syntax would
have parsed as a start tag rather than an empty tag, and this is much harder
for any script to correct than "just" being in the wrong namespace. Having the
default behaviour be to put an unusable annotation in the DOM seemed too
dangerous.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 23 August 2010 16:58:50 UTC