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

Side by Side Diff: Source/core/dom/Document.idl

Issue 392523002: Document.body should check interface type and be nullable (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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
« no previous file with comments | « LayoutTests/fast/dom/setter-type-enforcement-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org> 3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // Moved down from HTMLDocument 109 // Moved down from HTMLDocument
110 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin g dir; 110 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin g dir;
111 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin g designMode; 111 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin g designMode;
112 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin g title; 112 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin g title;
113 readonly attribute DOMString referrer; 113 readonly attribute DOMString referrer;
114 [TreatNullAs=NullString, RaisesException=Setter] attribute DOMStrin g domain; 114 [TreatNullAs=NullString, RaisesException=Setter] attribute DOMStrin g domain;
115 readonly attribute DOMString URL; 115 readonly attribute DOMString URL;
116 116
117 [TreatNullAs=NullString, RaisesException] attribute DOMString cooki e; 117 [TreatNullAs=NullString, RaisesException] attribute DOMString cooki e;
118 118
119 [RaisesException=Setter, CustomElementCallbacks, PerWorldBindings] attribute HTMLElement body; 119 [RaisesException=Setter, CustomElementCallbacks, PerWorldBindings, TypeCheck ing=Interface] attribute HTMLElement? body;
120 120
121 readonly attribute HTMLHeadElement head; 121 readonly attribute HTMLHeadElement head;
122 readonly attribute HTMLCollection images; 122 readonly attribute HTMLCollection images;
123 readonly attribute HTMLCollection applets; 123 readonly attribute HTMLCollection applets;
124 readonly attribute HTMLCollection embeds; 124 readonly attribute HTMLCollection embeds;
125 [ImplementedAs=embeds] readonly attribute HTMLCollection plugins; 125 [ImplementedAs=embeds] readonly attribute HTMLCollection plugins;
126 readonly attribute HTMLCollection links; 126 readonly attribute HTMLCollection links;
127 readonly attribute HTMLCollection forms; 127 readonly attribute HTMLCollection forms;
128 readonly attribute HTMLCollection scripts; 128 readonly attribute HTMLCollection scripts;
129 readonly attribute HTMLCollection anchors; 129 readonly attribute HTMLCollection anchors;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 // TODO(davidben): This is a property so attaching a deprecation warning res ults in false positives when outputting 216 // TODO(davidben): This is a property so attaching a deprecation warning res ults in false positives when outputting
217 // document in the console. It's possible http://crbug.com/43394 will resolv e this. 217 // document in the console. It's possible http://crbug.com/43394 will resolv e this.
218 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a ttribute DOMString webkitVisibilityState; 218 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a ttribute DOMString webkitVisibilityState;
219 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute boolean webkitHidden; 219 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute boolean webkitHidden;
220 220
221 readonly attribute HTMLScriptElement currentScript; 221 readonly attribute HTMLScriptElement currentScript;
222 }; 222 };
223 223
224 Document implements GlobalEventHandlers; 224 Document implements GlobalEventHandlers;
225 Document implements ParentNode; 225 Document implements ParentNode;
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/setter-type-enforcement-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698