[Bug 5311] 'foreignObject' as a child of any container element

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5311

           Summary: 'foreignObject' as a child of any container element
           Product: SVG
           Version: SVG 1.1 Full
          Platform: All
               URL: http://www.peepo.co.uk
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DTD
        AssignedTo: schepers@w3.org
        ReportedBy: j.chetwynd@btinternet.com
         QAContact: www-svg@w3.org
                CC: ed@opera.com, tor@acm.org


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:

  <switch>
<g systemLanguage="nl">
 <text x="130" y="65">radio</text>
  <foreignObject class="audio" width="1" height="1" >
    <object xmlns="http://www.w3.org/1999/xhtml" data="sound/nl/radio.mp3" />
  </foreignObject>
</g>
...
  </switch>

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

In SVGT12 'foreignObject' can be a child of any container element, which is
more useful and that is what Opera and Firefox allows.

Received on Monday, 10 December 2007 10:52:46 UTC