Bugzilla – Bug 462
Getting error for valid preserveAspectRatio value
Last modified: 2009-04-09 15:55:31 CEST
I set preserveAspectRatio="none" on inline SVG in the URL listed. The validator is returning an error: 1. Error: Bad value none for attribute preserveAspectRatio on SVG element svg.From line 634, column 1; to line 636, column 24 ompass" >↩<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"↩ viewBox="0 0 309.136 312.484" preserveAspectRatio="none" style="enable-background:new 0 0 309.136 312.484;"↩ xml:space="preserve">↩<path A value of "none" is valid for this attribute
Just in case it can help, I just wrote a small test case in XHTML 5: http://nicolas.raoul.free.fr/lab/testcase-validator.nu-bug462.xml Cheers, Nicolas Raoul
Sorry, had changed SVG image in page and removed preserveAspectRatio. Added attribute back in until you have a chance to fix.
A bogus regexp lacked parentheses. Good catch. Thanks. I'll push the fix to deployment shortly.