Bug solved in Opera 7.60 beta.
getAttribute() method allows you to read out any attribute
from any tag. Except in Opera, which refuses existing attributes on the wrong tag.
When using custom attributes to trigger scripts I prefer to use existing attributes, even
script I wanted to use a
src attribute to point to the image that should replace
a header. Unfortunately Opera could not find this
src attribute, so I was forced
replace (first version, now offline) or a simple
id (current version).
replace attribute: it does not exist at all, and therefore Opera accepts
it anywhere. Odd but true.
The test paragraph below has a
rel attribute, as do the
<a> inside it. Try reading them out:
This is the test paragraph. It contains a bold bit of text and a link.
If you use Opera 7.54 or below you'll see that it cannot detect the