Something screwd up between 1.6.2 and 1.7.2

Something screwd up between 1.6.2 and 1.7.2

Here's my code that works perfectly in 1.6.2 and fails in 1.7.2:
 
var crappyHtml = "&#160;<span id='span__bk8100030023000300130003002300' isContentType='true' tabindex='-1' class='ms-entity-resolved' onmouseover='this.contentEditable=false;' onmouseout='this.contentEditable=true;' contentEditable='true' title=''><div style='display:none;' id='divEntityData' key='__bk8100030023000300130003002300' displaytext='020102-Цех 1 Новосибирск' isresolved='True' description=''><div data='&lt;ArrayOfDictionaryEntry xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;&lt;DictionaryEntry&gt;&lt;Key xsi:type=&quot;xsd:string&quot;&gt;Название&lt;/Key&gt;&lt;Value xsi:type=&quot;xsd:string&quot;&gt;020102-Цех 1 Новосибирск&lt;/Value&gt;&lt;/DictionaryEntry&gt;&lt;DictionaryEntry&gt;&lt;Key xsi:type=&quot;xsd:string&quot;&gt;Код&lt;/Key&gt;&lt;Value xsi:type=&quot;xsd:string&quot;&gt;020102&lt;/Value&gt;&lt;/DictionaryEntry&gt;&lt;/ArrayOfDictionaryEntry&gt;'></div></div><span id='content' tabindex='-1' contenteditable onmousedown='onMouse

DownRw(event);' onContextMenu='onContextMenuSpnRw(event,ctx);' >

020102-Цех 1 Новосибирск

</span></span>

";

var

divEntityData1 = $(crappyHtml).find("#divEntityData");

var isresolved=divEntityData1.attr("isresolved");

var MVZname = "";

if (isresolved)

{

            alert('RESOLVED')

;

}

I wonder why it fails to show me alert in 1.7.2 but works perfectly in 1.6.2.