How do I do OuterHTML in firefox?

cross-browser, dom, javascript

Solution

Figured it out!

child.getAttributeNode("OnClick").nodeValue;

getAttribute didn't work, but getAttributeNode worked great ;D

Problem

Part of my code I get the OuterHTML propery ``` "<LI onclick="TabClicked(this, 'SearchName', 'TabGroup1');">Name " ``` so I can do stuff involing parsing it. There is no OuterHTML property in javascript on firefox though and I can't find an alternative way to get this string. Ideas?

Original source

Related problems