User talk:Rdm: Difference between revisions

Line 320:
 
:: Given that the redundant injection of flanking white space around Latex content in <math> tags changes the code generated by the Wiki preprocessing software in this way, and has the effect of preventing the display of formulae on the main browsers used on two large platforms (99% of iOS browser usage and 90% of OS X browser usage – see http://www.zdnet.com/article/which-browser-is-most-popular-on-each-major-operating-system/) I recommend that the use of these spaces is explicitly discouraged in the Rosetta code editing guidelines. The practice adds no value for users, but does entail costs. [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 21:40, 16 September 2016 (UTC)
 
::: Ah - getting clearer now, on closer reading of the diff.
::: It looks as if the injection of the fallback '''alttext''' attribute is prompted by some kind of error condition, and is not itself the source of a failure to display.
::: The deeper problem is that when the redundant flanking spaces are introduced into the math tag by a human editor, a bug in the wiki preprocessor generates some '''ill-formed code''', dropping a semicolon at the end of a vertical-align attribute and concatenating the alignment value straight into the name of the following height attribute, so that we get something like: '''vertical-align:-2.671ex;height''' where there should be a semi-colon between the digit 1 and the letter e.
::: Restoring the missing semi-colon between the '''vertical-align''' and '''height attributes''' proves sufficient to restore the lost visibility on the main iOS and OSX browsers
::: In short - there is a bug in the wiki pre-processor. Adding the redundant spaces to a math tag leads to the generation of an ill-formed fall-back image metatag, with a corrupted pair of placement attributes. Not a bad reason for scrupulously avoiding the injection of redundant space into <math> tags, and clearly no fault of the browsers. Bug report, some one ? [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 22:39, 16 September 2016 (UTC)
 
== Sieve of Eratosthenes ==
9,655

edits