W3C home > Mailing lists > Public > www-math@w3.org > April 2010

Re: mathcolor/mathbackground on <math/> and <semantics/> elements?

From: David Carlisle <davidc@nag.co.uk>
Date: Wed, 21 Apr 2010 12:44:15 +0100
Message-ID: <4BCEE50F.7090700@nag.co.uk>
To: Frédéric WANG <fred.wang@free.fr>
Cc: "www-math@w3.org" <www-math@w3.org>
On 21/04/2010 11:27, Frédéric WANG wrote:

Thanks for the comments, the following is a personal reply, we'll get
group agreement before actually making any changes.

> Hello,
> The spec says that mathcolor/mathbackground are accepted on all MathML
> presentation elements:
> http://www.w3.org/TR/MathML3/chapter2.html#interf.toplevel.atts
> <math/> and <semantics/> are not listed among MathML presentation
> elements, so I think mathcolor/mathbackground should not be allowed on
> them, and this is confirmed by the RelaxNG schema.
> http://www.w3.org/TR/MathML3/chapter3.html#presm.summary
> However, the two sentences below could be interpreted as saying that
> <math/> accepts mathcolor/mathbackground attributes:
> "The math element accepts any of the attributes that can be set on
> Section 3.3.4 Style Change <mstyle>"
> "mstyle elements accept the attributes listed in Section 3.1.10
> Mathematics style attributes common to presentation elements. "

I think this is fairly explicit that math should really work (as far as 
its children are concerned) like an mstyle. If the schema doesn't have 
that attribute that's an error, sorry about that.

> and this one for <semantics/>:
> "semantics should be considered part of both presentation MathML and
> content MathML"

That's more of a general hint that for example "just do presentation 
mathml" systems just  should at least accept semantics to the point of 
rendering a presentation attribution or a first child if that's 
presentation. (and not raise an error on semantics as an unknown 
element) I don't think that this informal note should have any effect on 
the schema.


The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
Received on Wednesday, 21 April 2010 12:11:24 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:27:42 UTC