Issue Details (XML | Word | Printable)

Key: BEEHIVE-255
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Krista Baker
Reporter: Daryl Olander
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Beehive

Need to verify the support for JavaScript in Opera

Created: 09/Feb/05 04:10 AM   Updated: 10/Jan/06 02:15 AM
Return to search
Component/s: NetUI
Affects Version/s: V1Beta, v1m1, 1.0
Fix Version/s: 1.0.1

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works j255-patch.txt 2005-09-30 12:48 PM Carlin Rogers 1 kB

Resolution Date: 06/Oct/05 04:49 AM


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Daryl Olander added a comment - 18/Feb/05 05:28 AM
This is now fixed. I did the work because Opera is usually very close to the spec. The runAtClient tree now runs against Opera 8.0 (You must have that version).

Frankly, I'm not sure this bug needs a lot of regression work because Opera is really not a primary browser we are supporting. I just want to keep it working on Opera.

Alejandro Ramirez added a comment - 15/Mar/05 08:42 AM
Please Verify.

Krista Baker added a comment - 20/Apr/05 05:27 AM
RunAtClient only trees do now work properly in Opera 8.0. This CR is being re-opened because runAtClient with expandOnServer nodes do not work as expected in the Opera browser.

Descrip: When a node in a runAtClient tree which has the expandOnServer attribute set to true is chosen to be expanded, the node itself may collapse into it's parent node as well as any other nodes at the same treeLevel.

Workaround: refresh the page after choosing to expand a node that was expandOnServer.

Carlin Rogers added a comment - 30/Sep/05 12:48 PM
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.

Carlin Rogers added a comment - 30/Sep/05 12:50 PM
Assigning to Rich for review. Could also pass it along to Daryl. Thanks.

Rich Feit added a comment - 06/Oct/05 04:49 AM
Committed with revision 295094. Maybe the last patch I commit from Carlin. :)

Alejandro Ramirez added a comment - 14/Oct/05 07:11 AM
please verify

Krista Baker added a comment - 10/Jan/06 02:15 AM
Verified that runAtClient trees with expandOnServer nodes are now working properly in Opera. Also double-checked their functionality in Netscape, Firefox, Mozilla, and IE.