SVGWeb harness sample for 1.1 test suite

Hello public-svg-wg,

 I modified one of the svg 1.1 harness files to enable svgweb. It just required adding one script element at the start, 

<script src="../../src/svg.js" data-path="../../src"></script>

and then duplicating the object element, wrapping each copy in conditional comments (ugh) and renaming two attributes on the iE-specific part.

 <!--[if IE]>
    <object src="../svggen/animate-elem-02-t.svg" width="480" height="360" classid="image/svg+xml"><p style="font-size:300%;color:red">FAIL</p>
    <![endif]-->
     <!--[if !IE]>-->
    <object data="../svggen/animate-elem-02-t.svg" width="480" height="360" type="image/svg+xml"><p style="font-size:300%;color:red">FAIL</p>
    <!--<![endif]-->
 </object>

worked fine in IE7.

I just spoke to Anthony and he sees no problem with making another harness (like the object and embed harnesses) so that we can run SVGWeb through the SVG 1.1 testsuite.

I will check svgweb into the appropriate place under 1.1F2/test so that the harness will work once generated.

-- 
 Chris Lilley                    mailto:chris@w3.org
 Technical Director, Interaction Domain
 W3C Graphics Activity Lead
 Co-Chair, W3C Hypertext CG

Received on Friday, 2 October 2009 21:50:04 UTC