W3C home > Mailing lists > Public > www-svg@w3.org > December 2007

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

From: <bugzilla@wiggum.w3.org>
Date: Mon, 10 Dec 2007 10:52:35 +0000
CC:
To: www-svg@w3.org
Message-Id: <E1J1gFX-0005bl-5P@wiggum.w3.org>

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 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:38 GMT