jmenglis/clamp-js-main

Ellipsis is included in html tag if clamp happens inside a html tag (on Firefox)

Opened this issue · 1 comments

Please try this codepen example with Firefox
https://codepen.io/haoruiqian/pen/pxROZp

Here is whole content to be clamped.
A Tried Triedd C B Tried to install MS Office 2010 professional. <strong>Asks for Windows</strong> CD which is not available

I set clamp to 2, and it clamped at Asks for Wi then wrapped them into the original html tag <strong>, but the appended ellipsis was included into the html tag.

screen shot 2018-10-10 at 21 27 30

I will be able to get to this over the weekend.