[ http://issues.apache.org/jira/browse/BEEHIVE-255?page=all ]
Carlin Rogers updated BEEHIVE-255:
----------------------------------
Attachment: j255-patch.txt
Here's a patch with a change for the netui-tree.js to manage the namespace
handling and solve an issue with getting and removing an attribute from a link
object. The problem is that Opra supports namespace URI with the
node.getAttributeNS() method but IE doesn't. So we already have a custom
routine, netUIGetAttribute(), to get attributes from a node. When we have a
link object in the DOM we try to get the "netui:treeAnchorInit" attribute and
if that does not return the value (as in Opra) we try "treeAnchorInit".
However, when we remove the attribute we don't handle both cases. We just call
node.removeAttribute("netui:treeAnchorInit"). So in Opra the attribute we get
has not been removed. Then the next time we goe through the tree routines we do
the initialization of the node again, calling the collapse routines.
I've added a new method, netUIRemoveAttribute(), to manage the namespace
handling.
To test, use Opra and manually run the J519 test...
coreWeb/bugs/j519/Controller.jpf. Expand all the tree nodes and you should see
that it does not collapse the tree.
> Need to verify the support for JavaScript in Opera
> --------------------------------------------------
>
> Key: BEEHIVE-255
> URL: http://issues.apache.org/jira/browse/BEEHIVE-255
> Project: Beehive
> Type: Bug
> Components: NetUI
> Versions: V1Beta
> Reporter: Daryl Olander
> Assignee: Carlin Rogers
> Priority: Trivial
> Fix For: TBD
> Attachments: j255-patch.txt
>
> There is a known issue where the JavaScript for the NetUI tree doesn't work
> in Opera. We should verify the behavior for Opera. This is a very low
> priority because Opera is not a high priority browser to support.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira