Opera getAttribute("action") bug - example

Problem:

Opera returns invalid value for the action attribute when using getAttribute. It always returns an absolute path.

It's like getAttribute href bug by Glenn Jones

Examples:

I am an empty form element and my action is foobar.php.

The action attribute reported by getAttribute is: Javascript is not enabled!

I am a div with a non-standard action attribute.

The action attribute reported by getAttribute is: Javascript is not enabled!

Solution:

Be careful! :)

Tested under:


Found and published by Wiktor Ihárosi on spacergif.net on 2006-07-13