I've been toying aorund with the psp's browser trying to find out what it can and cant do. So far it seems to be a pretty capabale browser (css and jacascript wise) but there are certain things it cant do. I dont know if this is the right place to post this, but I figured id start here and keep people posted. All of the following applies to the browser included in the 2.0 update, I havent confirmed any of this on the wipeout pure browser.
When dealing with DOM methods on the psp, I've hit a few brick walls. The big one is createElement...it simply does not work at all. cloneNode doesnt work either. Havent tried walking the dom tree, aka appendChild, removeChild, parentNode, etc. I'll keep you posted on what I find.
innerHTML property is weird. I can set simple strings like counters (or the scoreboard elements in pspong) but when setting a string that contains html tags, it doesnt work. I tried producing a simple starfield scroller, and I was using about 30 2x2 pixel divs as stars. It absolutely will not work unless I specify all 30 divs in the html itself and animate them after the fact, but it is too slow. The ideal way is to create a string with all the divs and setting an elements innerHTML property, but that doesnt work.
some other notes:
input type="file" lets you browse files on your memory stick, but the browser refuses any access to the input field itself via code. No way, not gonna happen.
onmouseover/out/move/down/up events all work, on elements, and on the document object. mouse move events respond to the analog nub, down/up events occur when you tap the X button. To Sony: could we have a way to hide the browsers cursor? It's really annoying.
body.onload/onunload works as well. havent tried messing with browser history yet (aka preventing going back a page). window.location.href works as well. I might try setting some custom hrefs like file://, disk0://..see what comes up ;)
Most of the general css stuff works. I've done scrollable div's with overflow:auto, hidden, etc. background-image: url() works, but data:image/xxx encoded images dont work. Fonts are weird, seems the browser only supports a few fonts. Anyone know which ones? If you want a laugh, try the Acid2 test, the psp browser fails it something fierce. I dont think cursor: xxx works either, your stuck with that silly black arrow. absolute positiong works, havent tried relative tho.
xmlhttprequest (aka ajax, remote scripting, background transfers) is also a no go. This would have been a nice feature for sites that do remote sql and content lookups without reloading the page. Again to Sony: please, please PLEASE allow this...its not much to ask since your so goddamm anal about running homebrew apps..at least leave the html/js people out of your security measures. :mad:
timers work, see my pspong demo above.
Note about animation on the psp browser: it is godawful slow. I was thinking of writing some nice tilemap based games since im locked out of the homebrew scene (thanks to Sony), but turns out the psp is just not up to the task with js and full screen pages. Maybe with a smaller screen area, but so far performance is pretty dismal, and doesnt look like theres any support for sounds, unless someone knows how to do this?
One more thing. If you pull up the information page in the psp's shell, it shows a few splashscreens. One of them mentions the browser technology used. Its a browser designed by Access Co LTD in Japan called NetFront. I've seen this browser on PocketPC based pda's, and it supports Java and Flash. Yo, Sony, what gives. Gives us Flash and Java you greedy *******s. Want me to code a flash viewer for you? Ill gladly do it for free, as long as its made available to all psp 2.0 owners at no cost.
Edit: woops, thanks for catching that Neil..the pspong link works now