[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit ParsedHTML.java,1.61,1.62
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2004-12-02 00:55:08
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22819/src/com/meterware/httpunit Modified Files: ParsedHTML.java Log Message: bug #1074232 buttons outside of forms are now recognized even if defined with <input> tag Index: ParsedHTML.java =================================================================== RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/ParsedHTML.java,v retrieving revision 1.61 retrieving revision 1.62 diff -u -r1.61 -r1.62 --- ParsedHTML.java 14 Oct 2004 22:03:22 -0000 1.61 +++ ParsedHTML.java 2 Dec 2004 00:54:59 -0000 1.62 @@ -597,7 +597,7 @@ } private HTMLElement newControlWithoutForm( ParsedHTML parsedHTML, Element element ) { - if (element.getNodeName().equalsIgnoreCase( "button" ) && + if ((element.getNodeName().equalsIgnoreCase( "button" ) || element.getNodeName().equalsIgnoreCase( "input" )) && isValidNonFormButtonType( NodeUtils.getNodeAttribute( element, "type" ) )) { return parsedHTML.toButtonWithoutForm( element ); } else { |