This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
http://www.peepo.com/index.svgz also reduced testcase [1] transient: http://www.peepo.com/dev.svg mime-type: image/svg+xml both pass with direct input but fail by URI with 1 error: Line 8, Column 54: SVG element foreignObject not allowed as child of SVG element svg in this context. (Suppressing further errors from this subtree.) <?xml version="1.0" encoding="utf-8" standalone="no"?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xhtml="http://www.w3.org/1999/xhtml" width="100" height="100" > <title>foreignObject</title> <foreignObject width="25" height="25" x="70" y="15" /> </svg>
As far I can tell, the SVG 1.1 spec does not allow foreignObject as a direct child of the svg element -- I think it has to have a "switch" element as its parent. To see, try running your doc the the SVG facet of the W3C validator: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.peepo.com%2Findex.svgz&charset=%28detect+automatically%29&doctype=SVG+1.1&group=0&ss=1
Mike, please provide evidence for your assertion, reading the SVG 1.1 spec says: 'Usually, a
(In reply to comment #2) > please provide evidence for your assertion, Run it through the SVG validator like I suggested: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.peepo.com%2Findex.svgz&charset=%28detect+automatically%29&doctype=SVG+1.1&group=0&ss=1 You will get this error: [[ Line 222, Column 62: document type does not allow element "foreignObject" here; assuming missing "switch" start-tag ]] I did not write that validator. It is a completely separate application from the validator.nu backend. And as far as I understand it, it's using a DTD provided by the SVG working group. Also, examine that SVG 1.1 relaxng schema provided by the SVG working group. It enforces that same constraint. That is the schema which the validator.nu backend uses. We have not invented or added any additional constraint about this to it in the copy we use for the validator.nu backend. > reading the SVG 1.1 spec says: > 'Usually, a
moved to SVG errata: http://www.w3.org/Bugs/Public/show_bug.cgi?id=14566
(In reply to comment #1) > As far I can tell, the SVG 1.1 spec does not allow foreignObject as a direct > child of the svg element -- I think it has to have a "switch" element as its > parent. > This used to be true but the restriction was removed in SVG 1.1 2nd Edition. http://www.w3.org/TR/2010/WD-SVG11-20100622/changes.html#WholeDocument
(In reply to comment #5) > This used to be true but the restriction was removed in SVG 1.1 2nd Edition. validator.w3.org is currently using the original SVG 1.1 DTDs. They have been already updated to 2nd edition in the development version (available for testing at http://qa-dev.w3.org/wmvs/HEAD/) and will be included in the next validator.w3.org update.