MikaelMayer/Editor

Inconsistent HTML parsing

Closed this issue · 3 comments

According to HTML tests, a blockquote inside a paragraph automatically stops it

Therefore, the following example is not updated consistently (create a file test.leo with the following content and open it with Editor)

<html><head></head><body>
<p>Hello world
<blockquote>this is a quote</blockquote>
and this is in the paragraph
</p>
</body></html>

After update, it will return:

<html><head></head><body>
<p>Hello world
</p><blockquote>this is a quote</blockquote>
and this is still in the paragraph
<p></p>
</body></html>

which can lead to unexpected results. Editor should either disable the integration of blockquote directly under

or parse it as the above.

Actually, it's not just blockquote, it's the same for divs.

and h1's

Fixed in last version