Re: [SVGMobile12] Question on handling of <script> with xlink:href and child nodes

* Robin Berjon wrote:
>Here's a strawman:
>
>  - for scripting languages that do not match an XML media type, pass  
>the textContent. If people do stuff like alert("<bar>foo</bar>") they  
>may get unexpected results, but if they're using a text based syntax  
>in the first place they should be using CDATA sections.  

Conceptually the only reasonable behavior would be to clone the subtree,
remove all element children, and use the textContent of the subtree.
This is consistent with what the specification already says on elements
in foreign namespaces, with what numeruos implementations do, and what
you would except, e.g. in

  <script>
    <x:purpose>...</x:purpose>
    <svg:desc>...</svg:desc>
    ...
  </script>

or

  <script>
    <xhtml:noscript>...</xhtml:noscript>
    ...
  </script>

Indeed, I was under the impression the Working Group already resolved to
allow svg:desc, svg:title, etc. in <script>, but without a schema who
knows...
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Received on Thursday, 16 February 2006 21:40:46 UTC