NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 462 - Getting error for valid preserveAspectRatio value
Getting error for valid preserveAspectRatio value
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: SVG 1.1 schema
HEAD
All All
: P2 normal
Assigned To: Henri Sivonen
http://realtech.burningbird.net
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-29 20:48 CEST by Shelley Powers
Modified: 2009-04-09 15:55 CEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shelley Powers 2009-03-29 20:48:25 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
Comment 1 Nicolas Raoul 2009-04-06 12:40:58 CEST
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
Comment 2 Shelley Powers 2009-04-06 15:40:02 CEST
Sorry, had changed SVG image in page and removed preserveAspectRatio. Added attribute back in until you have a chance to fix. 
Comment 3 Henri Sivonen 2009-04-09 15:55:31 CEST
A bogus regexp lacked parentheses. Good catch. Thanks.

I'll push the fix to deployment shortly.