Over a million developers have joined DZone.

Object.innerText For IE And FF

·

function getInnerText(elt) {
	var _innerText = elt.innerText;
	if (_innerText == undefined) {
  		_innerText = elt.innerHTML.replace(/<[^>]+>/g,"");
	}
	return _innerText;
}

Then, replace:
var text = elt.innerText;
by:
var text = getInnerText(elt);
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}