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.
bzimport set Reference to bz63590.
bzimport added a subscriber: Unknown Object (MLST).
Spage created this task.Apr 6 2014, 9:22 AM

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

Looks fixed to me.

Prtksxna moved this task from Backlog to Archive on the Page-Previews board.Dec 3 2014, 5:28 AM