[Webkit-unassigned] [Bug 8961] Result page does not have the edited text from the prompt dialog

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Wed May 17 13:36:23 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=8961





------- Comment #2 from krishnamurty.podipireddy at nokia.com  2006-05-17 13:36 PDT -------
(In reply to comment #1)
> Created an attachment (id=8372)
 --> (http://bugzilla.opendarwin.org/attachment.cgi?id=8372&action=view) [edit]
> prompt dialog test case
> This test page is same as the given test source in the description.

The browser expects the close html tag, after the document writes are complete.
The behaviour is same on both safari and S60 Web Browser. The follwoing
function works ok. But can we expect the content author to write this kind of
javascript function?

function message(){
var name = prompt("Please enter your name","John Wayne")
alert(name);
if (name != null && name != "")
{
document.write("Hello " + name);
document.write("</body></html>");
}
}


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list