<?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>5311</bug_id>
          
          <creation_ts>2007-12-10 10:52:34 +0000</creation_ts>
          <short_desc>&apos;foreignObject&apos; as a child of any container element</short_desc>
          <delta_ts>2009-05-31 20:08:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>SVG</product>
          <component>DTD</component>
          <version>SVG 1.1 Full</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.peepo.co.uk</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Test Suite</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="j.chetwynd">jay</reporter>
          <assigned_to name="Doug Schepers">schepers</assigned_to>
          <cc>cam</cc>
    
    <cc>ed</cc>
    
    <cc>tor</cc>
          
          <qa_contact name="SVG Public List">www-svg</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>18020</commentid>
    <comment_count>0</comment_count>
    <who name="j.chetwynd">jay</who>
    <bug_when>2007-12-10 10:52:34 +0000</bug_when>
    <thetext>there are clear practical reasons why it is sensible to use switch as little as necessary.
in this case to play a sound file and present text in a single language:

  &lt;switch&gt;
&lt;g systemLanguage=&quot;nl&quot;&gt;
 &lt;text x=&quot;130&quot; y=&quot;65&quot;&gt;radio&lt;/text&gt;
  &lt;foreignObject class=&quot;audio&quot; width=&quot;1&quot; height=&quot;1&quot; &gt;
    &lt;object xmlns=&quot;http://www.w3.org/1999/xhtml&quot; data=&quot;sound/nl/radio.mp3&quot; /&gt;
  &lt;/foreignObject&gt;
&lt;/g&gt;
...
  &lt;/switch&gt;

This could be separated as two separate switches, but that makes for harder maintenance and poor code.

In SVGT12 &apos;foreignObject&apos; can be a child of any container element, which is more useful and that is what Opera and Firefox allows.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25376</commentid>
    <comment_count>1</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2009-05-30 12:21:46 +0000</bug_when>
    <thetext>Hi Jonathan.

Indeed it shouldn&apos;t be necessary to use a &lt;switch&gt; in such cases.  This has been fixed in a recently published erratum (http://www.w3.org/2003/01/REC-SVG11-20030114-errata#allow-foreignobject-outside-switch) and has been folded in to the Editor&apos;s Draft of SVG 1.1 Second Edition (http://dev.w3.org/SVG/profiles/1.1F2/).

Doug, can you mark this bug resolved?

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25381</commentid>
    <comment_count>2</comment_count>
    <who name="j.chetwynd">jay</who>
    <bug_when>2009-05-31 07:35:13 +0000</bug_when>
    <thetext>http://www.w3.org/TR/SMIL3/smil-content.html#adef-allowReorder
allowReorder=&quot;yes&quot;

http://lists.w3.org/Archives/Public/www-archive/2009Mar/0065.html
On being humane

for reasons of accessibility does it not remain correct to state that switch should be used, else the suthors order of languages will be preferred over the users?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25382</commentid>
    <comment_count>3</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2009-05-31 08:36:48 +0000</bug_when>
    <thetext>Hi Jonathan.

(In reply to comment #2)
&gt; http://www.w3.org/TR/SMIL3/smil-content.html#adef-allowReorder
&gt; allowReorder=&quot;yes&quot;
&gt; 
&gt; http://lists.w3.org/Archives/Public/www-archive/2009Mar/0065.html
&gt; On being humane
&gt; 
&gt; for reasons of accessibility does it not remain correct to state that switch
&gt; should be used, else the suthors order of languages will be preferred over the
&gt; users?

I don&apos;t think that is correct.  Without &lt;switch&gt;, there is no selection among a set of languages.  You can only state that a subtree will not be processed if a given language is not one of the user&apos;s preferred languages.

The issue of allowReorder=&quot;&quot; in SVG seems to me to be a separate one from this bug, which is about where &lt;foreignObject&gt; is allowed by the DTD.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25383</commentid>
    <comment_count>4</comment_count>
    <who name="j.chetwynd">jay</who>
    <bug_when>2009-05-31 10:00:01 +0000</bug_when>
    <thetext>#3 Cameron,

I remain confused doesn&apos;t this:

&quot;You can only state that a subtree will not be processed if a
given language is not one of the user&apos;s preferred languages.&quot;

mean that the user gets &apos;no&apos; default information in this case?
that being the reason for using a switch...

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25384</commentid>
    <comment_count>5</comment_count>
    <who name="Doug Schepers">schepers</who>
    <bug_when>2009-05-31 17:25:13 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; #3 Cameron,
&gt; 
&gt; I remain confused doesn&apos;t this:
&gt; 
&gt; &quot;You can only state that a subtree will not be processed if a
&gt; given language is not one of the user&apos;s preferred languages.&quot;
&gt; 
&gt; mean that the user gets &apos;no&apos; default information in this case?
&gt; that being the reason for using a switch...

This bug was about allowing &lt;foreignObject&gt; as a child of any container element.  That has been resolved, and you can use &lt;foreignObject&gt; anywhere you can use any graphical element, not just as a child of &lt;switch&gt;.  Therefore, questions or comments about &lt;switch&gt; are orthogonal.

If you have questions about the functionality of &lt;switch&gt;, you should be asking them on the mailing lists, not in a bug report.  I gather that you are suggesting a Best Practice, which is another matter entirely.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25385</commentid>
    <comment_count>6</comment_count>
    <who name="j.chetwynd">jay</who>
    <bug_when>2009-05-31 20:08:20 +0000</bug_when>
    <thetext>#5 Doug, should you feel so disposed, you are encouraged to take the issues raised forward elsewhere.
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>