<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>17031</bug_id>
          
          <creation_ts>2012-05-10 14:28:59 +0000</creation_ts>
          <short_desc>&lt;foreignObject&gt; is wrongly marked as invalid when outside &lt;switch&gt;</short_desc>
          <delta_ts>2012-05-10 14:28:59 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML Checker</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leif Halvard Silli">xn--mlform-iua</reporter>
          <assigned_to name="Michael[tm] Smith">mike+validator</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67556</commentid>
    <comment_count>0</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2012-05-10 14:28:59 +0000</bug_when>
    <thetext>Problem: The HTML5 validator stamps &lt;foreignOBJECT&gt; as invalid, unless is occurs as child of the &lt;switch&gt; element.  By contrast, W3&apos;s SVG specific validation service considers it as fully valid even without the &lt;switch&gt; element.

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

]] Usually, a &apos;foreignObject&apos; will be used in conjunction with the &apos;switch&apos; element and the &apos;requiredExtensions&apos; 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 &lt;switch&gt;, but there is no requirement to use &lt;switch&gt;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>