Editing: Tidy up HTML document structure before execCommand().
A crash of crbug.com/537815 was due to an editable <p> as document.documentElement.
Supporting such invalid HTML structure is costly. So we correct such HTML structure
before executing execCommands.
- We show a console warning if the autocorrection happens.
- After the autocorrection, document.write() doesn't work because the document tree
is complete.
BUG=
537815
Committed:
https://crrev.com/18a1a860db010e852016004215f2fc854faf2135
Cr-Commit-Position: refs/heads/master@{#371774}