Page MenuHomePhabricator

texvc does not add <span class="texhtml"> to plain ASCII input in HTML output mode, if in "MathML if possible" mode
Closed, ResolvedPublic

Description

Author: ayg

Description:
See URL for examples.

Expected result: Any input to <math> gets italicized and put in a serif font, due to wrapping in <span class="texhtml">.

Actual result: Any input that uses no LaTeX commands and only uses ASCII characters is outputted with whitespace stripped but otherwise as-is, not wrapped in any HTML tag.


Version: unspecified
Severity: normal
URL: http://en.wikipedia.org/wiki/User:Simetrical/texhtml_bug

Details

Reference
bz10930

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:53 PM
bzimport added a project: Math.
bzimport set Reference to bz10930.
bzimport added a subscriber: Unknown Object (MLST).

ayg wrote:

This has nothing to do with CSS, it's a bug in texvc. Removing bug 12788 dependency.

conrad.irwin wrote:

All the examples on the given page are now italic, and wrapped with class="texhtml".

ayg wrote:

Okay, turns out it was due to the preference "MathML if possible (experimental)". It seems it works as expected in all other cases. Maybe this setting is buggy and should be removed? What is it actually expected to do, for text/html output?

Actually, in general, it seems like we could cut down on the options here a lot. "Leave it as TeX (for text browsers)" seems redundant to "Always render PNG", because of our use of alt text. "Recommended for modern browsers" needs to be either 1) removed, 2) renamed, or 3) set as the default, because presumably by the standards of whenever it was added, all browsers are modern by now . . . or if not, explain what "modern" means (not IE?). That's a separate bug, though.

nmichalo wrote:

I have tested this on a more recent mediawiki install then is being used on wikimedia wiki's and it no longer seems to be an issue. Though I am not sure in which revision it was fixed. Also I know that several depend on "Leave as TeX..." so that they can use mathjax as an alternate render, see [[w:Help_talk:Displaying_a_formula#Formulas_as_SVG.3F]] for more info. But the comments about Modern Browsers seem very appropriate.