W3C home > Mailing lists > Public > www-math@w3.org > May 2012

Re: unrecognized actiontype in maction

From: Frédéric WANG <fred.wang@free.fr>
Date: Fri, 01 Jun 2012 00:14:29 +0200
Message-ID: <4FC7ED45.8020202@free.fr>
To: www-math@w3.org
While we are on maction, we have another question about maction with 
actiontype=toggle. When the user clicks on the maction, we must change 
the visible child. In Mozilla, this is implemented by modifying the 
selection attribute in the DOM i.e. it is equivalent to do 
mactionNode.setAttribute("selection", newSelection) in javascript. In 
particular, this selection attribute is present when the document is 
serialized (when you save the page or show the source for example). That 
seems weird to me, but apparently it is the expected effect:

"If a MathML application responds to a user command to copy a MathML 
sub-expression to the environment's "clipboard" (see Section 6.3 
Transferring MathML), any maction elements present in what is copied 
should be given selection values that correspond to their selection 
state in the MathML rendering at the time of the copy command."

Another situation where this is problematic: in the test case, this 
behavior prevents mstyle@selected to apply on a descendant <maction> 
when it is set via javascript after the user clicked on the <maction>.


Can you confirm it is the intended behavior? Or should implementers 
store the selection value in a "private" variable i.e. which is not 
accessible via the DOM but still present when the user copies the MathML 
sub-expression (in that case, that's likely to be more difficult to 

Frédéric Wang
Received on Thursday, 31 May 2012 22:13:24 UTC

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