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

[Bug 17031] New: <foreignObject> is wrongly marked as invalid when outside <switch>

From: <bugzilla@jessica.w3.org>
Date: Thu, 10 May 2012 14:28:59 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-17031-169@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=17031

           Summary: <foreignObject> is wrongly marked as invalid when
                    outside <switch>
           Product: Validator (Nu)
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: General
        AssignedTo: mike+validator@w3.org
        ReportedBy: xn--mlform-iua@xn--mlform-iua.no
         QAContact: www-validator-cvs@w3.org


Problem: The HTML5 validator stamps <foreignOBJECT> as invalid, unless is
occurs as child of the <switch> element.  By contrast, W3's SVG specific
validation service considers it as fully valid even without the <switch>
element.

What does the spec say?  Well, according to HTML5, then HTML5 supports
SVGTiny12. And SVG Tiny 1.2 says:

]] Usually, a 'foreignObject' will be used in conjunction with the 'switch'
element and the 'requiredExtensions' attribute to provide proper checking for
user agent support and provide an alternate rendering in case user agent
support is not available. [[
See: http://www.w3.org/TR/SVGTiny12/extend.html#ForeignObjectElement

Thus, according to the spec, there is perhaps a  recommendation to use
<switch>, but there is no requirement to use <switch>.

-- 
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 Thursday, 10 May 2012 14:29:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 10 May 2012 14:29:12 GMT