DescriptionThrow DOMException when invoked Document::execCommand on non-{X,}HTML documents
Throw DOMException when invoked Document::execCommand on non-{X,}HTML documents as it may
lead to unexpected results. (e.g. InsertHTML execCommand running
HTML parser on top of XML document)
This change also aligns Blink better to other browsers and the
HTML Editing spec, which doesn't mention execCommand being applied
to non-HTML document:
https://dvcs.w3.org/hg/editing/raw-file/tip/editing.html
BUG=484974
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196652
Patch Set 1 #Patch Set 2 : add test #
Total comments: 2
Patch Set 3 : yosin review #Patch Set 4 : throw NotSupportedError #Patch Set 5 : fix test / change to InvalidStateError #Patch Set 6 : revert accidental edit #
Messages
Total messages: 41 (17 generated)
|