https://bugs.documentfoundation.org/show_bug.cgi?id=152851

            Bug ID: 152851
           Summary: Mathml import should work even when no xmlns attribute
                    is present
           Product: LibreOffice
           Version: 7.4.3.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Formula Editor
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: beton.10.pjo...@neverbox.com

Description:
In Html5 <math> tags can be found without the attribute
xmlns="http://www.w3.org/1998/Math/MathML";. It would make sense if we could
import such mathml into LO ( At the moment it's not working at all). 

Steps to Reproduce:
Go to eg. https://developer.mozilla.org/en-US/docs/Web/MathML/Examples, select
an example (let say Pythagorean Theorem) and using you browser's "inspect"
contextual menu (in Firefox or Chromium/Chrome, at least), select a <math> tag
representing a formula and Copy it. It gives :
<math>
    <mrow>
      <msup>
        <mi>a</mi>
        <mn>2</mn>
      </msup>
      <mo>+</mo>
      <msup>
        <mi>b</mi>
        <mn>2</mn>
      </msup>
      <mo>=</mo>
      <msup>
        <mi>c</mi>
        <mn>2</mn>
      </msup>
    </mrow>
  </math>

 Then in LO formula editor try "Tools-> Import Mathml from clipboard"

Actual Results:
Nothing is pasted. Import from file would not work either.


Expected Results:
The selected tag has no xmlns attribute, yet it is perfectly valid Mathml (in
the context of html5 which is everywhere now) and should pose no problem of
interpretation.

The absence of xmlns attribute in <math> should not prevent import; Requiring
its presence seems an artificial limit, and I see no good reason for it.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.4.3.2 / LibreOffice Community
Build ID: 40(Build:2)
CPU threads: 4; OS: Linux 6.0; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Debian package version: 1:7.4.3-2
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to