I want to discuss a particular code snippet :
HTML html = new HTML(" ");
if (" ".equals(html.getText))
{
Window.alert("Hello");
}
This condition holds true in Internet Explorer but fails in FireFox.
Also I am not able to identify what firefox returns for getText
method.
Anyone can verify this and please tell me why it is happening.
Thanks in advance,
neeraj Upreti
HTML html = new HTML(" ");
if (" ".equals(html.getHTML()))
{
Window.alert("Hello");
}
Hopefully, that's more consistent.
-krispy
getHTML gave correct result where that particular code snippet was
used ... " " was returned from the getHTML method and this
value was actually required (ie the value by which the HTML object was
initialized).
Best Regards,
Neeraj Upreti