Page MenuHomePhabricator

Hovercards: "Unexpected value 200 parsing viewBox attribute." in console
Closed, ResolvedPublic

Description

In Firefox 28 roll over any link with an image, see

Unexpected value 200 parsing viewBox attribute.

in Browser console/Firebug. In Chromium developer console see

Warning: Problem parsing viewBox="200"

The logic in line 169 is faulty. As a result the viewBox is set to 200 (if the image is wide not tall) instead of a string of four numbers like "0 0 300 200", and the former is invalid SVG.


Version: master
Severity: normal

Details

Reference
bz63590

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:18 AM
bzimport added a project: Page-Previews.
bzimport set Reference to bz63590.
bzimport added a subscriber: Unknown Object (MLST).

Change 124296 had a related patch set uploaded by Prtksxna:
Remove viewBox from SVG, not needed.

https://gerrit.wikimedia.org/r/124296

Change 124296 merged by jenkins-bot:
Remove viewBox from SVG, not needed.

https://gerrit.wikimedia.org/r/124296