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.

Event Timeline

Helland created this task.Oct 31 2018, 10:46 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 31 2018, 10:46 PM

Hi @Helland, thanks for taking the time to report this! Is this any different from T181987 ?

Hi @Aklapper this is the same.