Here's my code that works perfectly in 1.6.2 and fails in 1.7.2:
var crappyHtml =
" <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='<ArrayOfDictionaryEntry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><DictionaryEntry><Key xsi:type="xsd:string">Название</Key><Value xsi:type="xsd:string">020102-Цех 1 Новосибирск</Value></DictionaryEntry><DictionaryEntry><Key xsi:type="xsd:string">Код</Key><Value xsi:type="xsd:string">020102</Value></DictionaryEntry></ArrayOfDictionaryEntry>'></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.