Opened 15 years ago
Closed 14 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:
- IE 5.5 does not support domNode.getAttributeNode, so the code within the loop would need to be re-written
- 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 15 years ago by
Milestone: | → 0.4 |
---|---|
Owner: | changed from anonymous to dylan |
Status: | new → assigned |
comment:2 Changed 14 years ago by
Milestone: | 0.4 → 0.4.1 |
---|
comment:3 Changed 14 years ago by
Milestone: | 0.4.1 → 0.5 |
---|
comment:4 Changed 14 years ago by
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
No longer valid w/dijit rearchitecture.