avsm changed the topic of #mirage to: mirage 2 released! party on!
brson has quit [Quit: leaving]
rgrinberg has quit [Ping timeout: 260 seconds]
ptrf has joined #mirage
srenatus[m] has joined #mirage
tekacs has joined #mirage
nullcat has joined #mirage
jermar has joined #mirage
nullcat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
noddy has quit [Ping timeout: 260 seconds]
noddy has joined #mirage
jermar has quit [Ping timeout: 265 seconds]
jermar has joined #mirage
jermar has quit [Ping timeout: 265 seconds]
_whitelogger has joined #mirage
demonimin has quit [Ping timeout: 256 seconds]
demonimin has joined #mirage
agarwal1975 has joined #mirage
copy` has joined #mirage
agarwal1975 has quit [Quit: agarwal1975]
nullcat has joined #mirage
nullcat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rgrinberg has joined #mirage
rgrinberg has quit [Remote host closed the connection]
rgrinberg has joined #mirage
rgrinberg has quit [Remote host closed the connection]
rgrinberg has joined #mirage
rgrinberg has quit [Remote host closed the connection]
rgrinberg has joined #mirage
rgrinberg has quit [Remote host closed the connection]
rgrinberg has joined #mirage
rgrinberg has quit [Remote host closed the connection]
rgrinberg has joined #mirage
mort___ has joined #mirage
<mort___> Drup: there? got another tyxml question…
<Drup> mort___: just ask :p
<mort___> ah was just filing issue :)
<mort___> i want to inline some javascript
<mort___> inside <script> tags
<mort___> which I think means i just put <![CDATA[ … ]]> around it
<mort___> but if i do that, chromium complains about an unexpected <
<mort___> so i then think i should // comment out the <![CDATA[ and ]]> lines
<mort___> but i can't see how
<mort___> any suggestions? :)
<mort___> Xml.comment and Html.cdata both take strings so can't be combined directly, i think
<Drup> not sure why you need the CDATA thingy
<mort___> because otherwise the script characters seem to get parsed
<mort___> and so < turns into &lt; and so on
<mort___> which doesn't make javascript happy
<mort___> sorry, that's not quite right
<mort___> i mean — how do i pass a string to `script`? it seems i need to convert to an elt via either pcdata (turns < into &lt; etc) or cdata (doesn't but triggers the unexpected < error)
<Drup> Html.Unsafe.data ? :p
<mort___> aha
<Drup> script elements are a bit weird, I don't remember if there is special handling for them
<mort___> whee that works
<mort___> thanks :)
<mort___> i think the usual idiom is either nothing (via unsafe as you just suggested) or to add script comments around the CDATA markers
<Drup> I see
rgrinberg has quit [Ping timeout: 260 seconds]