Ticket #1182 (closed defect: fixed)

Opened 5 years ago

Last modified 3 years ago

0.95RC2 Equation plugin problem

Reported by: guest Owned by:
Priority: normal Milestone: 0.97
Component: Plugins Version: trunk
Severity: major Keywords: equation
Cc:

Description

When inserting a math expression changes the previous math expression into mathml like expression. ex.


<p> <span class="AM"><math title="lim_(x-&gt;oo)"><mstyle fontfamily="serif" displaystyle="true" mathcolor="black"><munder><mo>lim</mo><mrow><mi>x</mi><mo>→</mo><mo>∞</mo></mrow></munder></mstyle></math></span> </p>

<p> <span class="AM">dy/dx</span> </p>


the first <p> ***</p> supposed to look <p> <span class="AM">lim_(x-&gt;oo)</span> </p> But it changed as above when I inserted the second expression `dy/dx'

Change History

Changed 4 years ago by nicholasbs

  • milestone changed from 0.96 to 0.97

Changed 3 years ago by guest

Here's the fix for this issue. So far I've only tested it with Firefox 3.5.5 and with my patch for #1209 applied but it should work universally.

in xinha\plugins\Equation\equation.js replace line 176:

// var formula = node.getAttribute("title");

with this:

var formula = '`' + node.getElementsByTagName('math')[0].getAttribute('title') + '`';

Niraj Bhawnani
Research Assistant
University of New South Wales

Changed 3 years ago by gogo

  • status changed from new to closed
  • resolution set to fixed

Thank you for your submission, this is committed in changeset:1254

Note: See TracTickets for help on using tickets.