Closed Bug 273904 Opened 20 years ago Closed 20 years ago

JavaScript method getAttributeNode is not supported

Categories

(Rhino Graveyard :: Core, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: gavin.stevenson, Assigned: igor)

Details

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts-MyWay; SV1; .NET CLR 1.1.4322)
Build Identifier: 

I am developing a struts application, which uses Struts validation Javascript 
to validate form fields.
The Javascript created by Struts uses the Javascript method getAttributeNode. 
This work with out problem with Internet explorer.

To test my Struts Application, I am using HttpUnit, which uses Rhine to provide 
Javascript support. Unofortunaly Rhino does not seem to support 
getAttributeNode.  The following is the exception message that I receive.

com.meterware.httpunit.ScriptException: Event 'return validateEventTypeForm
(this);' failed: org.mozilla.javascript.EcmaError: TypeError: getAttributeNode 
is not a function.

For the time being, I am disabling the JavaScript support in HttpUnit. However, 
I am required to test the javascript validation, therefore I would like to know 
if support for getAttributeNode is to be implemented so I can decided on other 
possible solutions.  

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Rhino is just an engine implementing ECMAScript standard and its core host
objects. Support for DOM API is beyond the scope of Rhino and should be provided
by application code. 

Please report this to HttpUnit developers.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.