Hacker News new | ask | show | jobs
by dreamcompiler 1148 days ago
It also seems to be full of nbsp characters*, which create random extra space between some words.

* I'm not certain because I'm on mobile now and cannot easily check the source.

2 comments

I just checked the source and it's not that. It's not a bad decision with regards to text justification as far as I can see, either. Might just be some broken kerning in the font it's serving up, this page is a dense thicket of machine-generated markup and I really do not want to investigate any further:

<p id="viewer-9ptf9" class="mm8Nw _1j-51 WkT0MK _1FoOD _3M0Fe T3Ond1 WkT0MK public-DraftStyleDefault-block-depth0 fixed-tab-size public-DraftStyleDefault-text-ltr">

<span class="_2PHJq public-DraftStyleDefault-ltr">

<span>When a user moves their mouse from the middle of the page toward the navigation bar — presumably to abandon the page — there are technologies which can track this behavior and trigger a “mouse-out” alert. While this UX element (from companies such as Crazy Egg and Rooster) has great potential, I’ve found it far too common that websites use this to overlay huge pop-ups across the entire screen as a last-ditch effort to convert users.</span>

</span>

</p>

what is this garbage, why does a paragraph need its text inside a span inside another span, what generated this trash?

<meta name="generator" content="Wix.com Website Builder"/>

ah, gotcha

You'll see that type of output from most WYSYWIG editors. Some are better than others and they've improved over time, but a lot are still garbage. Both Redactor and TinyMCE would have produced something like this at points in the past (been a while since I used them, so that may not be the case now). Pasting from MS Word will also produce some gnarly HTML in most editors.
It's actually random double spaces scattered in the text and "white-space: pre-wrap" CSS property.