Some vertical record delimiting wonderment in HTML we just let pass through to the keeper, except to say that HTML rendering just about always works as intended, and yet back in the day you’d need to worry about whether your desktop C program, for instance, was written using (an underlying) Windows or Linux or Mac OS X (operating system). And then we stumbled upon javascript – Why carriage return not rendered as a line break when assigned to textContent although formatted using pre? – Stack Overflow‘s …
HTML when it normalizes newlines will convert all \r\n sequences to \n and then all remaining \r to \n, so effectively getting rid of all lonely \r characters. However, Node.textContent doesn’t call this normalize-newlines algorithm, so they’re not converted to \n and not interpreted as segment-break.
… which seemed to explain the process of vertical record delimiting HTML rendering rules so well. This resulted in us trying to prove this, and caused us to write a proof of concept cr_andor_lf.php web application that you can also try for yourself below …
… and we hope this is of some interest to you as well.
If this was interesting you may be interested in this too.