W3C home > Mailing lists > Public > www-svg@w3.org > February 2006

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

From: Doug Schepers <doug.schepers@vectoreal.com>
Date: Wed, 15 Feb 2006 04:09:26 -0500
To: "'Boris Zbarsky'" <bzbarsky@mit.edu>, <www-svg@w3.org>
Message-Id: <20060215090929.6DD68109EAE@pilfer.dreamhost.com>

Hi, Boris-

Thanks for your post.

Boris Zbarsky wrote:
| If a <script> element [1] has both an xlink:href attribute 
| and child Text nodes, 
| what should happen?  Should both scripts run?  Or only one?  
| Which one?
| I would much appreciate a clarification of the behavior here,

Interesting question!

In the first paragraph of 15.2 [1], "A script element may *either* contain
or point to executable content" (emphasis added). To me, this indicates that
you can have only one (aan external reference or child content), and I
believe that that is reinforced by the <choice> block in the schema
definition. Any child content should be ignored (for purposes of execution)
if an external reference is specified. Futher, a document with both script
resources on the same element would seem to have unsupported content, but I
think it would go too far to stop rendering or script execution.

I tested the equivalent behavior in HTML [2] in all browsers I had ready
access to [2a], and they all ignored the content when an external reference
was specified, so I think that this behavior is right in line with the
defacto standard and expected behavior. It behaves the same way in all the
SVG UAs I tested, as well [3][3a].

I don't necessarily think that this needs to be clarified any further in the
Spec, but if you feel strongly about it, please feel free to propose some
wording that would satisfy you.

I hope that this examination clarifies this issue for you. If not, please
let us  
know within two weeks.

[2] http://vectoreal.com/w3c/scriptTest/internal-external-test.html
[2a] Firefox 1.5 (Win/Mac), IE 6 (Win)/ 5.2 (Mac), Opera 9 (Win/Mac), Safari
(Mac), AOL (Win... a friend uses AOL, not me!)
[3] http://vectoreal.com/w3c/scriptTest/internal-external-test.svg
[3a] Firefox 1.5, ASV3, Opera 9, Batik

Doug, on behalf of the SVG WG

www.vectoreal.com ...for scalable solutions.
Received on Wednesday, 15 February 2006 09:09:38 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:07 UTC