From 6d7f75fab880ab79735d70f8905d0f5c6f3f9d21 Mon Sep 17 00:00:00 2001 From: Danny Yoo Date: Thu, 1 Sep 2011 16:41:28 -0400 Subject: [PATCH] adding note on firefox weirdness --- scribblings/cs19.scrbl | 12 +++++++++++- web-world/examples/tick-tock-2/tick-tock-2.rkt | 3 ++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/scribblings/cs19.scrbl b/scribblings/cs19.scrbl index 3c48054..15060a3 100644 --- a/scribblings/cs19.scrbl +++ b/scribblings/cs19.scrbl @@ -54,6 +54,15 @@ Whenever we need to update whalesong, we should do the following }| +@subsection{Warning on Firefox} + +Firefox unfortunately has a +@link["https://bugzilla.mozilla.org/show_bug.cgi?id=676343"]{JavaScript +bug} that prevents it from reliably evaluating Whalesong programs. As +of this writing, I have not been able to find a workaround. You +should probably use Google Chrome instead when testing your programs; +Google Chrome should be in @filepath{/contrib/bin/google-chrome}. + @section{Usage} The @filepath{whalesong} launcher in the subdirectory will compile @@ -513,7 +522,8 @@ view. As an example where the UI is entirely in code: (xexp->dom `(p "hello, can you see this? " ,(number->string world))))) -(big-bang 0 (initial-view (xexp->dom '(html (head) (body (@ (id "body")))))) +(big-bang 0 (initial-view + (xexp->dom '(html (head) (body)))) (on-tick tick 1) (to-draw draw)) }| diff --git a/web-world/examples/tick-tock-2/tick-tock-2.rkt b/web-world/examples/tick-tock-2/tick-tock-2.rkt index af4875f..135d8c0 100644 --- a/web-world/examples/tick-tock-2/tick-tock-2.rkt +++ b/web-world/examples/tick-tock-2/tick-tock-2.rkt @@ -11,6 +11,7 @@ (xexp->dom `(p "hello, can you see this? " ,(number->string world))))) -(big-bang 0 (initial-view (xexp->dom '(html (head) (body (@ (id "body")))))) +(big-bang 0 (initial-view + (xexp->dom '(html (head) (body)))) (on-tick tick 1) (to-draw draw))