Firefox seemed to be the only browser that would remove the content for title elements that were wrapped in H2.
To fix the issue we just altered the offset and then the problem was fixed. Its a quick hack but maybe someone else experiencing the problem can benefit from the work around.
// Iterate until wrapper element height is less than or equal to the original container element
// height plus possible wrapperOffset.
- while (wrapperElement.innerHeight() > containerElementHeight + wrapperOffset) {
+ while (wrapperElement.innerHeight() > containerElementHeight + (wrapperOffset + 1)) {
// Apply ellipsis on last text node, by removing one word.
ellipsisApplied = ellipsisOnLastTextNode(selectedElement);
Firefox seemed to be the only browser that would remove the content for title elements that were wrapped in H2.
To fix the issue we just altered the offset and then the problem was fixed. Its a quick hack but maybe someone else experiencing the problem can benefit from the work around.