Opened 13 years ago

Closed 12 years ago

#871 closed defect (wontfix)

IE 5.5, dojo.xml.Parse.parseAttributes, and "expando" attributes

Reported by: anonymous Owned by: dylan
Priority: high Milestone: 0.9
Component: Widgets Version: 0.3
Keywords: Cc:
Blocked By: Blocking:

Description

According to http://msdn.microsoft.com/workshop/author/dhtml/reference/collections/attributes.asp, IE 5.5 does not include "expando" attributes (i.e. invalid/non-standard) in the NamedNodeMap? returned by domNode.attributes. Hence in IE 5.5, parseAttributes never returns these non-standard attribute values.

However, some of these attributes are required by Dojo's Widget system when using custom attributes with tags. Currently, custom attributes are not copied to the widget in IE 5.5.

A naive approach would be simply replacing the var atts = node.attributes; while(attnode=atts[i++]) loop with a for(name in node){ var attrnode = node.getAttributeNode(name); loop, but this has two problems:

  1. IE 5.5 does not support domNode.getAttributeNode, so the code within the loop would need to be re-written
  2. We actually want to omit some "expando" attributes in IE, such as innerHtml.

I'm at a loss for a solution that would include custom attributes, but omit IE-specific cruft, without having an attribute "exclusion" list.

Thanks,

Scott Severtson
Digital Measures LLC

Change History (4)

comment:1 Changed 13 years ago by dylan

Milestone: 0.4
Owner: changed from anonymous to dylan
Status: newassigned

comment:2 Changed 13 years ago by dylan

Milestone: 0.40.4.1

comment:3 Changed 13 years ago by bill

Milestone: 0.4.10.5

comment:4 Changed 12 years ago by bill

Resolution: wontfix
Status: assignedclosed

No longer valid w/dijit rearchitecture.

Note: See TracTickets for help on using tickets.