<div dir="ltr"><div style>I've recently come across some behavior where some of my jQuery #foo id selectors are failing to match.  It ends up that some sections of the vtiger codebase concatenate field label with a static string to create the element id [1] et al.  This is problematic when the label contains a space in it, as we now have an illegal HTML5 id [2].  The workaround is to use a jQuery attribute selector [id='foo bar'].  The fix is... to use fieldname?  Maybe module+fieldname to avoid collisions?  The blast radius of such a change is way outside my current scope of work, but definitely worth thinking about for vtiger 8.</div>
<div><br></div><div>[1] <a href="http://trac.vtiger.com/cgi-bin/trac.cgi/browser/vtigercrm/branches/6.0.0/Smarty/templates/DetailViewFields.tpl#L28">http://trac.vtiger.com/cgi-bin/trac.cgi/browser/vtigercrm/branches/6.0.0/Smarty/templates/DetailViewFields.tpl#L28<br>
</a>[2] <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#the-id-attribute">http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#the-id-attribute</a></div><div><br></div>
</div>