I have the following code
HTML
<span id = 'testlabel'></span>
JS
var test = '<tr style="display:none" class="projinfo">test<br/>test</tr>' +
'<tr><td column="Type"><b>Project</b></td><tr>';
var dom = $(test).filter('.projinfo');
var content = dom.length > 0 ? dom[0].innerHTML:'No data';
$('#testlabel').text('Content is ' + content);
In Chrome, I am expecting the result of my jsfiddle to be
"Content is test
test"
instead I get
Content is
What am I missing here ?
In IE 9 I am getting the correct result ..