W3C home > Mailing lists > Public > www-validator-cvs@w3.org > May 2012

[Bug 17197] New: svg style validating should not treat type as required attribute

From: <bugzilla@jessica.w3.org>
Date: Fri, 25 May 2012 21:12:48 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-17197-169@http.www.w3.org/Bugs/Public/>

           Summary: svg style validating should not treat type as required
           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">
    <title>SVG 1.1, 2nd Edition</title>
    <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"
      <g id="test-body-content">
        <style id="test"></style>

3.Error: Element style is missing required attribute type.

>From line 9, column 9; to line 9, column 25

>?        <style id="test"></styl

No error

As stated in 

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:55 UTC