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

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: revert accidental edit Created 5 years, 6 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 shouldThrow("xmldoc.execCommand('bold')");
8 shouldThrow("xmldoc.queryCommandEnabled('bold')");
9 shouldThrow("xmldoc.queryCommandIndeterm('bold')");
10 shouldThrow("xmldoc.queryCommandState('bold')");
11 shouldThrow("xmldoc.queryCommandSupported('bold')");
12 shouldThrow("xmldoc.queryCommandValue('bold')");
13 </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