Page MenuHomePhabricator

srcset attribute output should not be dependent of underlying OS locale
Closed, DuplicatePublic

Description

My Ubuntu server is set with locale nb_NO.UTF-8. This has , as separator in floating point numbers. This is illegal in HTML specifications for the SRCSET attribute in IMG tag. (see https://w3c.github.io/html/semantics-embedded-content.html#element-attrdef-img-srcset and https://w3c.github.io/html/infrastructure.html#valid-floating-point-number ) Mediawiki should always write the pixel density descriptor with the full stop as the separator.