From: <Mik...@su...> - 2002-10-11 15:24:10
|
I looked at your code to see if I could make it work like IE, but it wasn't clear to me where the action attribute gets defined. I see where it defines the form element properties in Form.initialize, but not the form attributes. Are they defined through some sort of reflection mechanism during the call to makeJavaScriptObject? Mike Mike Bowler <gar...@ya...> To: htm...@li... Sent by: cc: htm...@li...urc Subject: Re: [HtmlUnit] com.gargoylesoftware.htmlunit.ScriptException: Cannot eforge.net create property 10/11/2002 09:55 AM Please respond to mbowler > 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. Interesting. I assume then that if you have an input called "action" then you will have no access to the action attribute of the form itself. It seems bizarre but if this is the way the browsers implement it then I'll change HtmlUnit to do the same. I'll have to experiment to see if this holds true for all attributes on form (action, id, enctype, method etc) in the various browsers. > However, this experience has convinced me that naming an > input element 'action' is probably not a great idea. :-D -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca ------------------------------------------------------- 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 |