Closed
Bug 129440
Opened 22 years ago
Closed 22 years ago
MathML pages give "undefined entity" on the Mac
Categories
(Core :: MathML, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: paul, Assigned: rbs)
References
()
Details
Here's the error, this seems to have come recently: &alpha is not defined. using build 2002030508 of MacOSX trunk. XML Parsing Error: undefined entity Location: http://www.mozilla.org/projects/mathml/demo/texvsmml.xml Line Number 80, Column 62:<li>Here is how greek letters look like at scriptminsize: <i>α, β, γ ..., -------------------------------------------------------------^
Comment 1•22 years ago
|
||
Unable to reproduce on Build ID 2002030508 win2k. The page renders fine without errors.
Bug 122710 did some re-organizations for the Mac, so everything should be working in a similar XP now. Remember to shift + reload in case you are behind a proxy that is serving an old copy of that file.
The problem is just that MathML isn't enabled on the Mac and so MathML entities are not loaded. -> mathml.dtd is installed only when MathML is compiled -> when MathML is enabled, also update mozilla/xpinstall/packager/packages-mac to include: . ucvmath . mathml.css
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: MathML torture test gives "undefined entity" → MathML pages give "undefined entity"
*** Bug 130341 has been marked as a duplicate of this bug. ***
So what exactly makes this fail on Mac OS X? Is it CodeWarrior? I only ask because MathML builds just fine on Mach build... oh yea and it works (kinda... I suppose it would be better with the right fonts).
It works if your Mac build is MathML-enabled. Entities come from file called mathml.dtd that is only installed if MathML is _compiled_. It has nothing to do with CodeWarrior. To see what is missing on the Mac, see: http://www.mozilla.org/projects/mathml/enable.html
I suppose its better to ask my question this way... why isn't MathML compiled into the OSX builds. After reading http://www.mozilla.org/projects/mathml/enable.html i see that this bug depends on bug 74821 and bug 107146, and I have the feeling mozilla.org is waiting to enable MathML on OS X and OS 9 until both bugs are fixed. So may i suggest that that both bugs be added to the depends on fields... to make it clear what the problem is....
Reporter | ||
Comment 8•22 years ago
|
||
If the missing MathML is the problem then PLEASE make a better error ! I honestly thought it was a weirdo other bug. Paul
Comment 9•22 years ago
|
||
If we hit a parsing error, we could maybe check to see if there was a DOCTYPE that had an unrecognised FPI -- if there is, we should probably assume that might be why the parsing error occured and add a little explanatory text to the error message. (Obviously it can't really say "MathML not enabled in this build" since that would involve adding MathML knowledge to a non-MathML build.)
Reporter | ||
Comment 10•22 years ago
|
||
So the following proposal is too much future ?? That is sad because it would really make sense, not at all only for MathML, also SVG, missing Unicode fonts, missing SVG or Flash or... what do I know ?? Plug-in and extension makers should have a small module that runs "everywhere" and which should be built in all versions that don't have the extension: the small module should recognize that a given content is in the page but is not displayed because it is not installed. Doesn't this make sense ? I think it also exists for plug-ins. Now that we have the ability to have fancy extensions that do more than a plug-in, such a "fall-back module" really makes sense because a user has no way otherwise to know what's happening Think of a user that expects that Mozilla on Mac is the same as Mozilla on Win and Linux hence expects MathML, he'll get such a weirdo error and should conclude from there that MathML doesn't work on Mac. Paul
Summary: MathML pages give "undefined entity" → MathML pages give "undefined entity" on the Mac
Assignee | ||
Comment 11•22 years ago
|
||
In general, similar errors would happen if you try to load any XML document that has external entities. The problem goes back to bug 22942: Load external DTDs (local and remote) if a pref is set
Assignee | ||
Comment 12•22 years ago
|
||
Since this is a general problem that affects all XML documents (bug 22942), I am not clear why there should be a MathML-specific solution. There should be a general warning about external entities, no? (In fact, a MathML specific solution could be as easy as just adding mathml.dtd in all builds.)
Comment 13•22 years ago
|
||
rbs: My proposal (see comment 9) is basically that. We don't want to ship mathml.dtd on non-mathml builds though since that will just change the error from an error message to ugly layout, which is worse.
Assignee | ||
Comment 14•22 years ago
|
||
Fixed by bug 155703.
Status: NEW → RESOLVED
Closed: 22 years ago
OS: MacOS X → All
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•