<div dir="ltr"><span style="font-size:12.800000190734863px">You need to tell Ur/Web about the SVG and other tags through Ur/Web's FFI and a .urs file. (See Section 11.3 of the Ur/Web manual.) I did this once for simple SVG shapes in the past and am attaching the files. It's not complete, but you'll hopefully find it helpful as a baseline.</span><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">I eventually abandoned the SVG approach for what I was doing because it didn't play nicely with Ur/Web's <dyn/> tags, but I didn't properly investigate the issue.</div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 24, 2016 at 1:46 PM, Yves Cloutier <span dir="ltr"><<a href="mailto:yves.cloutier@gmail.com" target="_blank">yves.cloutier@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hello, <br><br></div>What would be the syntax for rendering SVG in urweb? I did a test using:<br><br>fun main () = return <xml><br>  <head><br>    <title>Pattern Maker</title><br>  </head><br><br>  <body><br>      <svg height="210" width="500"><br>        <line x1="0" y1="0" x2="200" y2="200" style="stroke:rgb(255,0,0);<wbr>stroke-width:2" /><br>      </svg><br>  </body><br><br><br></div>but this doesn't seem to work.<br><br><br></div>
<br>______________________________<wbr>_________________<br>
Ur mailing list<br>
<a href="mailto:Ur@impredicative.com">Ur@impredicative.com</a><br>
<a href="http://www.impredicative.com/cgi-bin/mailman/listinfo/ur" rel="noreferrer" target="_blank">http://www.impredicative.com/<wbr>cgi-bin/mailman/listinfo/ur</a><br>
<br></blockquote></div><br></div>