Slashdot Mirror


Firefox Is the First Browser To Pass the MathML Acid2 Test

An anonymous reader writes "Frédéric Wang, an engineer at the MathJax project, reports that the latest nightly build of Firefox now passes the MathML Acid2 test. Screenshots in his post show a comparison with the latest nightly Chrome Canary, and it's not pretty. He writes 'Google developers forked Webkit and decided to remove from Blink all the code (including MathML) on which they don't plan to work in the short term.'"

21 of 134 comments (clear)

  1. chrome fails MathML acid1 by johnjones · · Score: 4, Funny

    I simply cant believe this...

    MathML is a pretty important to allowing papers to be...

    1. Re:chrome fails MathML acid1 by Anonymous Coward · · Score: 4, Informative

      Personally I browse pages that use MathML every single day (literally), opengl.org ref pages, have MathML scattered throughout - I've never bothered installing chrome on a workstation once due to lack of MathML support, and don't ever plan on doing so until it can (among many other missing features).

    2. Re:chrome fails MathML acid1 by dgatwood · · Score: 4, Informative

      Chrome stable passed it just fine.

      Are you looking at the same MathML Acid tests that I am? These are not the same tests as the original Acid and Acid 2 tests.

      Chrome Stable, at least on OS X, fails MathML Acid 1 miserably, as does Chrome Canary. All the fractions are shown as the left part followed by a space followed by the right part instead of as a fraction. Safari on OS X is basically correct for MathML Acid 1 (albeit with the ugliest parentheses I've ever seen), but if you reload the page, the curly braces disappear, as do the comma inside the curly braces and the plus sign.

      And the MathML Acid 2 test looks like a freaking Picasso on all three browsers.

      --

      Check out my sci-fi/humor trilogy at PatriotsBooks.

    3. Re:chrome fails MathML acid1 by narcc · · Score: 3, Insightful

      It's a real shame -- MathML is abysmal.

      A few zillion years ago, we had the math tag, which was similar to TeX. It died on the vine, but would have been MUCH better than the cruel joke that is MathML.

    4. Re:chrome fails MathML acid1 by dgatwood · · Score: 5, Interesting

      The reason to improve MathML support isn't browsers. It's eBook readers that share the underlying rendering engines. Lots of textbook publishers want to use MathML, but without robust, reliable, visually appealing support, everybody has to do awful hacks with inline images or (hopefully) SVG instead.

      --

      Check out my sci-fi/humor trilogy at PatriotsBooks.

    5. Re:chrome fails MathML acid1 by tyrione · · Score: 4, Informative

      The reason to improve MathML support isn't browsers. It's eBook readers that share the underlying rendering engines. Lots of textbook publishers want to use MathML, but without robust, reliable, visually appealing support, everybody has to do awful hacks with inline images or (hopefully) SVG instead.

      Spot on. EPub 3.x with MathML 3.0 is vital to work in digital publishing for iOS, Android, etc.

    6. Re:chrome fails MathML acid1 by TheRaven64 · · Score: 3, Informative

      MathML attempts to separate the content and presentation. This is fine if you have a tool that properly supports both (I've never used one, maybe Mathematica or similar does?), but it sucks for most editors. The idea is that you can have a single format that describes both how to lay out equations and their semantics. In practice, pretty much everyone who generates MathML does it from the TeX equivalent and so only ever gets the presentation form. The other advantage of MathML is that each individual element is exposed via the DOM, so it's easy to manipulate equations from JavaScript, although I don't think I've ever seen that done either.

      Part of the problem with a format that is basically impossible for humans to write is that it also ends up being difficult to produce tools that can write and display it, which is why it's taken 10 years or so for MathML to get even a token amount of support in mainstream browsers...

      --
      I am TheRaven on Soylent News
    7. Re:chrome fails MathML acid1 by maxwell+demon · · Score: 2

      MathML is a static content description language like (pure) HTML, not a programming language like JavaScript. Moreover, it should use the same parser used for all other XML based content (like XHTML), which is most likely even the same parser which is used to parse HTML. So I cannot see how MathML could be used for an exploit which is not possible for HTML (unless you did a really crappy implementation).

      --
      The Tao of math: The numbers you can count are not the real numbers.
    8. Re:chrome fails MathML acid1 by femtobyte · · Score: 2

      Real-time processing speed is still a concern. Even with *way* more computing power than available decades ago, it still takes a noticeably nonzero amount of time to render a several page LaTeX document. For live document editing, or even re-flowing a webpage when your window size changes, you need a much faster (and consequently cruder-looking) layout algorithm. Now, most document preparation would be much better served by a model like LyX: fast approximate on-screen rendering for editing, with a slow "final polished form" output. However, this means you lose WYSIWYG control over the final output; for the (much rarer than most people seem to think) cases where you actually want this, you're stuck trading off layout quality for computer speed.

    9. Re:chrome fails MathML acid1 by hairyfeet · · Score: 2

      Yeah i think old billy got his ACID tests mixed up, which is why i think its stupid to call this ACID instead of something like ML-Test or Math Tester. But I ran the test on both Comodo Dragon (Based on Chromium stable) and Pale Moon and it was a total mess and considering how long it took IE to get ACID support I'm seriously doubting he got IE 8 to pass, nor do i believe that FF ESR passed as that is a couple of years old.

      But again I really don't see a point in the MathML tests, the vast majority won't ever be going to a site that depends on MathML so saying its not supporting MathML means squat, like saying a CPU should be judged strictly by how well it runs Folding At Home. Hell Folding is a hell of a lot bigger niche than MathML, can anybody even name a popular site in the top 20 page ranking that uses it? Top 50? So far web designers can't even get HTML V5 up and running without it sucking cycles like a drunk sucking down free drinks so MathML should rightly be at the bottom of the "to do" list.

      --
      ACs don't waste your time replying, your posts are never seen by me.
    10. Re:chrome fails MathML acid1 by Billly+Gates · · Score: 2

      Yeah i think old billy got his ACID tests mixed up, which is why i think its stupid to call this ACID instead of something like ML-Test or Math Tester. But I ran the test on both Comodo Dragon (Based on Chromium stable) and Pale Moon and it was a total mess and considering how long it took IE to get ACID support I'm seriously doubting he got IE 8 to pass, nor do i believe that FF ESR passed as that is a couple of years old.

      But again I really don't see a point in the MathML tests, the vast majority won't ever be going to a site that depends on MathML so saying its not supporting MathML means squat, like saying a CPU should be judged strictly by how well it runs Folding At Home. Hell Folding is a hell of a lot bigger niche than MathML, can anybody even name a popular site in the top 20 page ranking that uses it? Top 50? So far web designers can't even get HTML V5 up and running without it sucking cycles like a drunk sucking down free drinks so MathML should rightly be at the bottom of the "to do" list.

      Yeah I had 3 rum and cokes when I typed that.

      The reason HTML 5 is not getting off is because of ... you guessed it... IE support. Make that old IE support. IE 6 you can safely ignore outside of China thankfully, but IE 8 is HUGE and with grannies and the corps not leaving XP anytime soon it will stick a long long time. Remember not every business has its own I.T. department or with with small shops like your own who tell them to leave. Most are small to medium sized business that have some old app that uses IE 6 like a POS system in a cash register or DOS based app. No one really wants to take time out of the day to explain how to setup virtilization when the owner thinks spending money to replace soemthing that works fine already.

      I still use IE 8 at work and some of my coworkers do use IE 9 but I know some of our portal pages do not work and I do nto want to bother to change it as I need to find odd apps on it for users who call with needing Tidcore or spotfire which is hidden in that monstrosity that predates sharepoint. But I never go outside of technet, microsoft, and gmail so I do nto care. I am overworked in the office at this point. I can imagine that is the typical IE 8 user that you see in logs.

      Point being I will not upgrade nor will the Indian I.T. team bother with a SCCM update until websites switch to HTML 5. Sites wont switch to HTML 5 because they have no reason to upgrade from IE 8. Until that changes no one will budge and time will freeze on inovation except on our phones which will sadly have a richer browsing experience.

      Worse, with desktops being just good enough they are turning into mainframes that only get updated once per decade running even older apps. This slows down innovation even further.

  2. Re:When you have money, by Anonymous Coward · · Score: 4, Funny

    I suspect they were using Chrome in a Google Spreadsheet when calculating their bid for Motorola Mobility.

  3. Re:I for one am glad they left out Blink. by corychristison · · Score: 4, Informative

    My many web design/development clients would disagree with you. I don't even want to recall the times I've had to tell them No for blinking things.

    Unfortunately they think blinking == attention getting, whereas we think blinking == f*cking irritating.

  4. Re:Who cares? by Billly+Gates · · Score: 5, Insightful

    Ask a web developer what they think about Chrome?

    It is not all positive. It is buggy and has proprietary extensions similiar to something that sounded familiar in the past? Its javascript sometimes does not load on sites and its version of HTML 5 is differnent from others. HTML5test.com tests things that W3C implements a little differently or not at all.

    Remember IE 6 was lean mean and standards compliant compared to the god awefull netscape 10 years ago too. Hard to believe in a place like slashdot to admit but if you go read slashdot history on the most discussed stories of all time "What keeps you on Windows from 2002" IE 6 is mentioned!

    The switch to a new rendering engine is going to cause issues soon and many corporate oriented SVs and site makers will not be pleased.

  5. You're thinking of Chrome and Safari by Anonymous Coward · · Score: 4, Insightful
  6. Re:Math symbols are so archaic so who gives a F by Anonymous Coward · · Score: 2, Insightful

    Mathematics is one of those fields that could use some ISO standards.

    There are critics of C++ that say the language is just pieces and parts hacked together. Even if that is true, mathematics takes the undisputed crown of bizarre hacked together symbols.

    The symbols used in mathematics are unintelligible, inconsistent, don't even use a standard language character set and cannot be represented in a programming language.

    These mathematical symbols either need to be modernized to come to a standardization or die.

    What the hell? I can believe how incredibly ignorant is this comment. Do you even work with mathematics? The symbols used in mathematics are jargon to be sure, but every (non-trivial) field of endeavours has its jargon. And that jargon makes mathematics significantly easier to work with day-to-day for its practitioners.

    You make it sound like mathematics deliberately chose symbols and syntax that was difficult to implement in a programming language, as if that's the pinnacle of the written form. Of course, mathematics predates programming languages by centuries if not millenia. And the symbol it uses are part of a standard language character set, just not those that has yet been popular in the (relative) young computer world. You're comparing mathematics to a single programming language. You should instead compare mathematics to every programming language combined.

    Your comment makes as much sense as suggesting we should make all computer languages like COBOL. Sure, it makes the actual words more readable and standardised, but it doesn't help the layperson because the average person isn't going to read any computer languages anyway. And it hinders any computer programmer by making it more difficult and wordy to express complicated concepts.

  7. Re:Math symbols are so archaic so who gives a F by chithanh · · Score: 2, Interesting

    What the hell? I can believe how incredibly ignorant is this comment. Do you even work with mathematics? The symbols used in mathematics are jargon to be sure, but every (non-trivial) field of endeavours has its jargon. And that jargon makes mathematics significantly easier to work with day-to-day for its practitioners.

    You make it sound like mathematics deliberately chose symbols and syntax that was difficult to implement in a programming language, as if that's the pinnacle of the written form. Of course, mathematics predates programming languages by centuries if not millenia.

    The problem is that these symbols are no longer suitable for the modern world. They were fine at the time when they were conceived, but technology has moved on and requires something better.

    And the symbol it uses are part of a standard language character set, just not those that has yet been popular in the (relative) young computer world. You're comparing mathematics to a single programming language. You should instead compare mathematics to every programming language combined.

    The criticism was not that the symbols are undisplayable, it is that their use is not consistent and not possible as part of a computer program, aside from very special languages which specifically cater for Math. A few attempts have been made to reconcile these (for example RPN and stack-based languages like Forth) but have not seen widespread adoption so far.

    With regards to the GP, I think that the inconsistency is especially bad. For example, whether N is meant to include 0 or not often depends on whether the author thinks that the natural numbers include 0 or not (which are two totally different things). Then many authors use trigonometric functions like operators to avoid writing parentheses, but without formally specifying the binding/precedence level. So when one reads "sin^2 x*y" does that mean "(sin(x)^2)y" or "sin(x*y)^2" or "sin(sin(x))*y" or "sin(sin(x*y))"? The list goes on.

  8. Re:Math symbols are so archaic so who gives a F by Samantha+Wright · · Score: 2

    Just a note—sin^2(x) cannot be sin(sin(x)) because that is a datatype error. The input is an angle, the output is a ratio. They don't have the same domain, and hence the function cannot be iterated. Because of its utility in trig proofs, sin^2(x) was introduced as a form of syntactic sugar, much like Python's slice operators or C's array subscripts. (Although to be fair the formal notion of functions wasn't well-standardized at the time, and it actually was a unary operator when introduced.) It helps to regard sin^2 as a discrete trigonometric function and not simply a sine function being squared.

    --
    Bio questions? Ask me to start a Q&A journal. Computer analogies available for most topics!
  9. if you want MathMl enabled in Chrome by Chrisq · · Score: 2

    if you want MathMl enabled in Chrome click the star in Issue 152430 to register interest

  10. Re:IE doesn't support MathML by maxwell+demon · · Score: 2

    MathML is supported in IE natively (at least it is for IE 10). What makes you say otherwise? Just head on over to http://www.mathjax.org/demos/mathml-samples/ and see for yourself.

    I don't have IE10 and therefore cannot tell whether it does or does not support MathML, however I just want to make sure you've seen that this page by default does not render MathML, but builds the formulas with HTML+CSS. You have to explicitly select "MathML" with the dropdown selector to see what it looks like rendered using MathML.

    --
    The Tao of math: The numbers you can count are not the real numbers.
  11. Re:Math symbols are so archaic so who gives a F by maxwell+demon · · Score: 5, Informative

    Just a note—sin^2(x) cannot be sin(sin(x)) because that is a datatype error.

    You just showed that you don't know enough mathematics.

    The input to the sine function is not an angle, it is a real or complex number. If real, this number often (but not always!) describes some angle. If complex, it obviously won't describe an angle.

    The sine function is defined as

    sin x = (exp(i x) - exp(-i x)) / (2i)

    where i is the imaginary number, and exp(x) is defined by the series

    exp x = 1 + x + x^2/2 + ... + x^n/n! + ...

    Note that, since the convergence radius of the exponential series is infinite, and the sine is just a linear combination of exponentials, the sine is defined on all complex numbers. Since it is complex-valued, sin sin x is indeed well defined for all complex numbers x.

    Moreover, if you restrict the sine to real numbers (that is, only accept real numbers), you still have a well defined sin sin x, because the real sine function is also real-valued (more exactly, its values are restricted to the interval [-1,1]).

    Also, the output is in general not a rational number (the only thing you could have meant with "ratio" that makes sense in this context).

    --
    The Tao of math: The numbers you can count are not the real numbers.