rviscomi / trunk8

jQuery Truncation Plugin -- THIS PROJECT IS NO LONGER MAINTAINED
MIT License
703 stars 95 forks source link

Something broken? #27

Closed warbot closed 11 years ago

warbot commented 11 years ago

Can try this within console: document.body.innerHTML = "<div id='tst' style='max-width:40px; border: 1px solid red;'>more then 50px block; something more here</div>"; $('#tst').trunk8();

and... nothing happens

rviscomi commented 11 years ago

If you empty the HTML content of the document body, there will be no element to match the selector "#tst".

warbot commented 11 years ago

@rviscomi, i've update the text in my message above(html code was escaped); if that still is a bad example, could you, please, add your example including html to doc. Because now, at least for me, the behavior is unexpected. Thank you.

rviscomi commented 11 years ago

@ted-softserve I'm not able to reproduce the behavior you describe. If possible, could you create a page on http://jsfiddle.net/ and post it back here? Thanks

warbot commented 11 years ago

@rviscomi, here's a http://jsfiddle.net/rCDXN/2/