This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21799 - SVG does not require a !DOCTYPE delcaration
Summary: SVG does not require a !DOCTYPE delcaration
Status: NEW
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: HEAD
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL: http://www.plam.cantech.bg
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-23 18:03 UTC by trlkly
Modified: 2015-02-16 00:35 UTC (History)
1 user (show)

See Also:


Attachments

Description trlkly 2013-04-23 18:03:14 UTC
The validator claims that, to be valid SVG, one must declare a !DOCTYPE. While such is allowed in the SVG spec, it is not only not required, but is even actively discouraged in the current spec: http://www.w3.org/TR/SVG/intro.html#NamespaceAndDTDIdentifiers

I realized that the SVG parser is essentially in beta, as the warnings always state. But that's all the more reason to report a bug. The SVG tag with its namespace and version declarations should be sufficient to identify the document as SVG 1.1 for the purpose of validation.