- From: <bugzilla@jessica.w3.org>
- Date: Fri, 25 May 2012 21:12:48 +0000
- To: www-validator-cvs@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=17197
Summary: svg style validating should not treat type as required
attribute
Product: Validator (Nu)
Version: unspecified
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: General
AssignedTo: mike+validator@w3.org
ReportedBy: xinyang_qiu@yahoo.com
QAContact: www-validator-cvs@w3.org
svg style validating should not treat type as required attribute
Validate the following:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>SVG 1.1, 2nd Edition</title>
</head>
<body>
<svg version="1.1" baseProfile="full" id="svg-root" width="100%"
height="100%" viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="test-body-content">
<style id="test"></style>
</g>
</svg>
</body>
</html>
Actual:
3.Error: Element style is missing required attribute type.
>From line 9, column 9; to line 9, column 25
>? <style id="test"></styl
Expected:
No error
As stated in
http://www.w3.org/TR/SVG/styling.html#StyleElement
type = content-type
This attribute specifies the style sheet language of the element's contents.
The style sheet language is specified as a content type (e.g., "text/css"), as
per MIME Part Two: Media Types [RFC2046]. If a ‘type’ is not provided, the
value of ‘contentStyleType’ on the ‘svg’ element shall be used, which in turn
defaults to "text/css" [RFC2046]. If a ‘style’ element falls outside of the
outermost svg element and the ‘type’ is not provided, the ‘type’ must default
to "text/css" [RFC2046].
Animatable: no.
It implies that type can be missing from style tag, should be optional.
--
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Friday, 25 May 2012 21:12:51 UTC