Re: Javascript alert
Russell Gold <[email protected]>
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mar 28, 2006, at 11:18 PM, Russell Gold wrote: > > On Mar 28, 2006, at 8:09 AM, Xu Jia wrote: > >> Hello, >> >> I have this code in html page >> <IMG SRC=javascript:alert(1111)> > > OK now that is strange. I have never seen that syntax, and I will > guarantee therefore that HttpUnit does not understand it. AFAIK > <img src=something> expects the "something" to be the address of an > image, not a javascript expression. Why would anyone write HTML > such as that? Which browsers recognize it? > > In any event, it would have to be an enhancement, and it sounds > pretty low priority to me at present. ON second thought, what you are doing is perfectly valid (just odd) and the problem is that HttpUnit does not automatically load images, so it is not processing the src URL here. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642