4 ms·
Thank you for feedback. HTML behavior is useful when authoring plain text <pre> foo </pre> But I write in browser, by content is DOM, HTML is
by sergeykish 6y ago
Thank you for feedback. HTML behavior is useful when authoring plain text
<pre>
foo
</pre>
But I write in browser, by content is DOM, HTML is a poor serialization format. Each time I save and reload it eats newline.
Other arguments - </script> inside <script>, </style> inside <style>, <ul> inside <p>. It just works in XHTML, as it would in JSON, EDN etc. HTML parser is a beast [1] [2], you would have much more problems.
World around us clearly states there is a need for a rich text format. Hardly anyone objects web browsers for document consumption.
uBlock Origin "Block element ..." is point and click.
[1] https://htmlparser.info/parser/ https://htmlparser.info/parser/
[2] https://www.w3.org/TR/html50/syntax.html https://www.w3.org/TR/html50/syntax.html