Detecting Rendered Line Breaks In A Text Node In JavaScript

You fell victim to one of the classic blunders—the most famous of which is, "Never get involved in a land war in Asia" — but only slightly less well-known is this: "Never go against a Sicilian when death is on the line"! Ha ha ha ha ha ha ha! Ha ha ha ha ha ha ha!