# NativeMML doesn't handle \tag properly in Firefox #993

Closed
opened this issue Jan 5, 2015 · 9 comments

Projects
None yet
2 participants
Member

### dpvc commented Jan 5, 2015

 Now that Firefox doesn't process style attributes any longer, the current work-around for tags doesn't work. The  is not getting to be the correct width. Technically, this is a browser bug, since ... is supposed to operate exactly like ..., but it doesn't. The solution is either to not include the outer  when the content is table with width set, or to make a CSS class setting for width:100% and use that instead of explicit style.

Member

### pkra commented Jan 6, 2015

 Do you have a minimal example of the FF bug that we can use to file an upstream bug?

Member Author

### dpvc commented Jan 13, 2015

 OK, it turns out not to be the reason that I thought. The  with style is fine, it is the additional  element that is causing the problem. For example  x x  does not produce the same result as  x  though I believe it should. A work-around is to use style="width:100%" on the  element, as in  x x  though that should not be necessary. In any case, I can use this for now to get around the problem.

### dpvc pushed a commit to dpvc/MathJax that referenced this issue Jan 13, 2015

 Add width CSS to semantics annotation when needed by Firefox. Resolve… 
…s issue mathjax#993.
 cdff7d2 
Member Author

### dpvc commented Jan 13, 2015

 The work-around is in the issue993 branch of my fork of MathJax.

Member

### pkra commented Jan 14, 2015

 Thanks for the example. I've asked the MathWG to comment.

### dpvc pushed a commit to dpvc/MathJax that referenced this issue Jan 14, 2015

 Merge branch 'issue993' into develop. Issue mathjax#993. 
 b87f15f 
Member Author

### dpvc commented Jan 14, 2015

 ==> Merged

Member Author

### dpvc commented Jan 15, 2015

 My previous commit only fixed the problem for the situations generated by the TeX input jax. If the input is directly from MathML and output is NativeMML, this is still a problem. The NativeMML output jax should tweak the output in this case as well.

### dpvc pushed a commit to dpvc/MathJax that referenced this issue Jan 15, 2015

 Add test for full-width tables in NativeMML. Issue mathjax#993. 
 1b8811b 

### dpvc pushed a commit to dpvc/MathJax that referenced this issue Jan 15, 2015

 Merge branch 'issue993' into develop. Issue mathjax#993. 
 1332145 

### dpvc pushed a commit to mathjax/MathJax-test that referenced this issue Jan 15, 2015

 Add tests for Firefox ful-width table problem (mathjax/MathJax#993). 
 a9588f0 

Member Author

### dpvc commented Jan 15, 2015

 ==> In Testsuite MathMLToDisplay/Presentation/TablesAndMatrices/issue993-1a.html MathMLToDisplay/Presentation/TablesAndMatrices/issue993-1b.html MathMLToDisplay/Presentation/TablesAndMatrices/issue993-1c.html MathMLToDisplay/Presentation/TablesAndMatrices/issue993-1d.html MathMLToDisplay/Presentation/TablesAndMatrices/issue993-1e.html MathMLToDisplay/Presentation/TablesAndMatrices/issue993-2.html MathMLToDisplay/Presentation/TablesAndMatrices/issue993-3.html
Member

### pkra commented Jan 30, 2015

 I think this Gecko bug is a case of https://bugzilla.mozilla.org/show_bug.cgi?id=468059
Member

### pkra commented Jan 30, 2015

 Great.. the workaround renders very badly on WebKit... http://jsbin.com/gimevacori/1/edit