This needs to be documented more places on the web. I’ve been working with the Prototype javascript framework and I must say it kicks ass. One issue i ran into is that document.viewport.getDimensions() was returning a value of 0 in IE. This was the same for document.viewport.getWidth() and document.viewport.getHeight().
My problem was that my html file did not declare a doctype. Prototype does not supports quirks mode, therefore IE needs a doctype declared like:
<!DOCTYPE html
PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
Trac ticket on enhancing documentation:
http://dev.rubyonrails.org/ticket/10908
Trac ticket on supposed “retuning 0″ bug:
http://dev.rubyonrails.org/ticket/11287
Trac ticket with a patch to support quicks mode:
http://dev.rubyonrails.org/ticket/9288
