<?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>25143</bug_id>
          
          <creation_ts>2014-03-24 22:23:51 +0000</creation_ts>
          <short_desc>SVG 1.1 validation: Don&apos;t foreignObject tag contents</short_desc>
          <delta_ts>2014-03-24 23:10:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>Parser</component>
          <version>HEAD</version>
          <rep_platform>All</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>trlkly</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</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>102863</commentid>
    <comment_count>0</comment_count>
    <who name="">trlkly</who>
    <bug_when>2014-03-24 22:23:51 +0000</bug_when>
    <thetext>DESCRIPTION:

Per http://www.w3.org/TR/SVG11/extend.html, the contents of a foreignObject element are &quot;assumed to be from a different namespace.&quot; They thus should not be checked against the SVG DTD. Yet, if you attempt to validate a file of the following structure, every tag inside the foreignObject returns errors, one for the tag itself and one for each included attribute.


&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE svg PUBLIC &quot;-//W3C//DTD SVG 1.1//EN&quot; &quot;http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd&quot;&gt;
&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; height=&quot;1&quot; width=&quot;1&quot; version=&quot;1.1&quot;&gt;
  &lt;foreignObject width=&quot;0&quot; height=&quot;0&quot;&gt;
    &lt;newtag1 options=&quot;options&quot;&gt;
      &lt;newtag2 options=&quot;options&quot; /&gt;
    &lt;/newtag1&gt;
  &lt;/foreignObject&gt;
&lt;/svg&gt;


CURRENT BEHAVIOR:
Four errors.

DESIRED BEHAVIOR:
No errors. Anything inside a foreignObject block should only be tested for being valid XML, if at all. 

ADDITIONAL INFORMATION:

I tried to put this on the mailing list before filing a bug, to make sure I&apos;m not misunderstanding something, but it kept saying it was coming from my private personal email address instead of this public one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102865</commentid>
    <comment_count>1</comment_count>
    <who name="">trlkly</who>
    <bug_when>2014-03-24 23:10:23 +0000</bug_when>
    <thetext>Changing the structure to use switch statements as follows does not help, although it does limit the errors to one, refusing to continue parsing after encountering the newtag1 branch.

&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; height=&quot;1&quot; width=&quot;1&quot; version=&quot;1.1&quot;&gt;
&lt;switch&gt;
  &lt;foreignObject width=&quot;0&quot; height=&quot;0&quot;
               requiredExtensions=&quot;http://www.google.com&quot;&gt;
    &lt;newtag1 options=&quot;options&quot;&gt;
      &lt;newtag2 options=&quot;options&quot; /&gt;
    &lt;/newtag1&gt;
  &lt;/foreignObject&gt;

&lt;/switch&gt;
&lt;/svg&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>