Re: Documentation and MathML in Firebug

Steven Roussey <[email protected]> Fri, 6 Nov 2009 15:03:32 -0800 (PST)
Newsgroups gmane.comp.mozilla.devel.mathml
Organization http://groups.google.com
Message-ID <d73bfcd4-ce26-4cbd-ab08-95d66b39f7a2@b25g2000prb.googlegroups.com>
On Nov 6, 2:46 pm, Frédéric Wang <[email protected]> wrote:
> Apparently, the MathML layout engine uses the following "private"
> attributes in order to apply specific CSS style to MathML elements.
>
> -moz-math-columnalign, -moz-math-columnline, -moz-math-font-size,
> -moz-math-font-style, -moz-math-rowalign, -moz-math-rowline
>
> However, they are treated as any other attribute so in particular are
> exposed to the DOM. I can't see an easy way to fix this but it would
> probably require modifying the code of Gecko...

Unfortunately, you can't set those attributes via the DOM. Nor does
the parser like adding them as actual attributes...

At the moment I convert them to style="-moz-math-font-style:italic"
attribute, at least for viewing. But can't think of any way to edit..