Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(605)

Side by Side Diff: LayoutTests/editing/execCommand/non-html-document.html

Issue 1155353002: Throw DOMException when invoked Document::execCommand on non-{X,}HTML documents (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add test Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/non-html-document-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src='../../resources/js-test.js'></script>
3 <script>
4 description("Non HTMLDocument such as XMLDocument shouldn't support execCommand" );
5
6 var xmldoc = window.document.implementation.createDocument('http://www.w3.org/19 99/xlink', 'html', null);
7 shouldBeFalse("xmldoc.execCommand('bold, false, null')");
yosin_UTC9 2015/05/27 06:57:44 nit: you don't need to specify |false, null| for |
kouhei (in TOK) 2015/05/27 07:04:19 Done.
8 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/non-html-document-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698