S
szimek
Hi,
I've got a div with very strange attribute value. Here it is:
menudef = "module_menu,,,,[object Object],[object Object],[object
Object],[object Object],[object Object],[object Object],[object
Object],[object Object],[object Object],[object Object],[object
Object],[object Object],[object Object],[object Object],[object
Object],[object Object],[object Object]"
Here's js code that fetches this attribute:
var md = menu.getAttribute("menudef"); // menu is a div element
In IE md[0] is "module_menu" and i.e. md[4] is an actual object (array-
like).
in FF3 md[0] is "m", md[1] is "o", md[2] is "d" and so on. So it
treats the whole thing as a string.
Not sure if it has any meaning, but:
- in IE I can view generated HTML using IE Developer Toolbar and I
can't see menudef attribute there (but I don't trust this tool).
However, it's displayed in element's attribute list window (that
window in the middle)
- in FF I can see the attribute directly in HTML code
How IE is able to figure out actual objects from this menudef string?!
Or is it only displayed as string in IE?
I've got a div with very strange attribute value. Here it is:
menudef = "module_menu,,,,[object Object],[object Object],[object
Object],[object Object],[object Object],[object Object],[object
Object],[object Object],[object Object],[object Object],[object
Object],[object Object],[object Object],[object Object],[object
Object],[object Object],[object Object]"
Here's js code that fetches this attribute:
var md = menu.getAttribute("menudef"); // menu is a div element
In IE md[0] is "module_menu" and i.e. md[4] is an actual object (array-
like).
in FF3 md[0] is "m", md[1] is "o", md[2] is "d" and so on. So it
treats the whole thing as a string.
Not sure if it has any meaning, but:
- in IE I can view generated HTML using IE Developer Toolbar and I
can't see menudef attribute there (but I don't trust this tool).
However, it's displayed in element's attribute list window (that
window in the middle)
- in FF I can see the attribute directly in HTML code
How IE is able to figure out actual objects from this menudef string?!
Or is it only displayed as string in IE?