From: <Mik...@su...> - 2002-10-11 14:10:44
|
Unfortunatley I have JavaScript code that does just that, form_main.action.value ="foo", and it works in IE 5.5 and Netscape 4.79. However, this experience has convinced me that naming an input element 'action' is probably not a great idea. Mike Bowler <mb...@Ga...> To: htm...@li... Sent by: cc: htm...@li...urc Subject: Re: [HtmlUnit] com.gargoylesoftware.htmlunit.ScriptException: Cannot eforge.net create property 10/10/2002 06:25 PM Hi Mike, > It appears to have issue with the input element name 'action', likely > because the enclosing form has an attribute by the same name. Strangely enough, I put a fix in for this bug this week. ;-) I'm not sure yet what the browsers do in this case but I've changed HtmlUnit so that it doesn't create a property with the name "action" (same behaviour with "id" btw). So you won't be able to do things like form_main.action.value="foo" but at least it doesn't blow up anymore. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ HtmlUnit-develop mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-develop |