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 Review URL: https://codereview.chromium.org/1637323002 Cr-Commit-Position: refs/heads/master@{#371774}
Showing
Please register or sign in to comment