[SVGMobile12] parseXML method needs clarification

Dear SVG Working Group,

It seems to me that the parseXML method on the SVGGlobal interface [1] is 
somewhat underdefined.  In particular, I have at least the following questions:

1)  Are scripts executed if an <svg:script> tag is parsed?
2)  Are scripts executed if an <xhtml:script> tag is parsed?
3)  If the answer to question #1 or #2 is "yes", what global object
     do they use?  What security context?  Does this depend on whether
     a contextDoc was passed in?
4)  Are stylesheets loaded if an appropriate XML Processing Instruction
     is parsed?  I'm including both CSS and XSLT stylesheets here.
5)  Are stylesheets loaded if an <svg:style> element is parsed?
6)  Are images loaded if an <svg:image> or <html:image> is parsed?
7)  Are subdocuments loaded if an <html:iframe> or equivalent is parsed?
8)  Do the answers to questions 4-7 depend on whether a contextDoc
     was passed in?

Note that I am NOT asking what happens once the nodes in question have been 
inserted into a currently-visible SVG document fragment.  I'm asking what the 
behavior is during parsing and possibly immediately after the parsed data is 
returned.

If the Working Group is interested, I can try to describe what the equivalents 
in Mozilla (DOMParser() and so forth) do as regards the questions above (though 
I should note that some of the behavior there is also underdefined and possibly 
subject to change).

Note that most of the questions above (with the exception of the ones related to 
CSS) are all effectively variants of questions 1-3 if one wishes to look at it 
that way, since SVG images and various sorts of subdocuments can execute scripts.

Thank you in advance,
-Boris

Received on Saturday, 28 January 2006 04:52:02 UTC