Closed Bug 170831 Opened 23 years ago Closed 23 years ago

Equation not displayed correct when using <apply>

Categories

(Core :: MathML, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: llj, Assigned: rbs)

References

()

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020613 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020613 I'm trying to mark up the equation "P + (a-b)(c-d)" with the following MathML code: <math xmlns="http://www.w3.org/1998/Math/MathML"> <apply> <plus/> <ci>P</ci> <apply> <times/> <apply><minus/><ci>a</ci><ci>b</ci></apply> <apply><minus/><ci>c</ci><ci>d</ci></apply> </apply> </apply> </math> Mozilla displays this as "P &#8722; a(c &#8722; d)". Reproducible: Always Steps to Reproduce:
The testcase works for me. You indeed need to use parallel markup with the <semantics> tag (bug 154931) or transform from content-markup to presentation-markup (either on server or on the client, using the UMSS as you did in the testcase): <?xml-stylesheet type="text/xsl" href="http://www.w3.org/Math/XSL/mathml.xsl"?> If you don't intent to do live computations on the markup, then there is no much point making your visitors pay the price of doing a transform in their browser, and so you could just prepare you document with presentation-markup and serve that.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.