From: <mbr...@vi...> - 2004-06-14 20:11:27
|
The function com.gargoylesoftware.htmlunit.html.HtmlCheckBoxInput.click() does not handle the onclick event handler correctly. When a onclick handler is specified on a HTML checkbox that causes a new page to be displayed, the function HtmlCheckBoxInput.click() does not return the new page. Rather it returns the original page. Note that the actual function is on the base class ClickableElement. The attached patch fixes the problem. Note that the patch may break code that is relying on ClickableElement.click() to return the return value of doClickAction(). However, I could not think of senario where one would want that behavior. Perhaps someone with more experience with the code can spot a problem. Mike Bresnahan |