3 ms·
Probably need to do a pass to find all \r chars, check if the next char is \n and if so, discard it. Otherwise convert it to \n. edit: Yeah, does exactly that:
by eknkc 2y ago
Probably need to do a pass to find all \r chars, check if the next char is \n and if so, discard it. Otherwise convert it to \n.
edit: Yeah, does exactly that: https://chromium-review.googlesource.com/c/chromium/src/+/5538407/33/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc#836 https://chromium-review.googlesource.com/c/chromium/src/+/55...