From: <Mik...@su...> - 2002-10-10 22:36:12
|
Here's a much simpler page that causes the same exception. <html> <body> <form method="get" action="SiteMinderEmulator" name="form_main"> <input name="action" type="hidden"/> </form> </body> </html> It appears to have issue with the input element name 'action', likely because the enclosing form has an attribute by the same name. Thus it appears this is an issue with Rhino rather than HtmlUnit. |
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 |
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 |
From: Mike B. <mb...@Ga...> - 2002-10-10 23:25:29
|
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 |