hello! i have a problem with the context-based selection of elements in a html-string in internet explorer 7. with the following code:
var htmltmp = '<div style="width: 1100px;"><img src="test.gif" width="300" id="testphoto" /></div>'; alert($('#testphoto', htmltmp).attr('width')); the internet explorer shows "0" and the firefox shows the right "300". has anybody a workaround or the solution why this doesn't work? i`m using jQuery 1.3.2 thanks for your attention. netCo