3 ms·
innerHTML is an easy one, try setting an attribute -- you have to create a new attribute node, set its value and then add that to the element..
by aaronblohowiak 14y ago
innerHTML is an easy one, try setting an attribute -- you have to create a new attribute node, set its value and then add that to the element..
- mibbitier 14y agosetAttribute()?
- aaronblohowiak 14y agoIE8 =(
- masklinn 14y ago> you have to create a new attribute node, set its value and then add that to the element.. Erm... no you don't: http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-F68F082 http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-F68F082
- aaronblohowiak 14y agoIE8 =(
- gildas 14y agoYou should set the node property instead (e.g. standard textContent or innerText). It will work everywhere.