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

Unified Diff: Source/core/html/HTMLTableElement.idl

Issue 1031473002: Sync HTML element interfaces S-V with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: link to col element too Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLTableColElement.idl ('k') | Source/core/html/HTMLTableRowElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLTableElement.idl
diff --git a/Source/core/html/HTMLTableElement.idl b/Source/core/html/HTMLTableElement.idl
index 69d364f45e24317aa15f520546e1ad1494ebd414..8a1b29ff4cddf5e8b830388a764f4cc46368818d 100644
--- a/Source/core/html/HTMLTableElement.idl
+++ b/Source/core/html/HTMLTableElement.idl
@@ -18,33 +18,38 @@
* Boston, MA 02110-1301, USA.
*/
-interface HTMLTableElement : HTMLElement {
- [RaisesException=Setter] attribute HTMLTableCaptionElement caption;
- [RaisesException=Setter] attribute HTMLTableSectionElement tHead;
- [RaisesException=Setter] attribute HTMLTableSectionElement tFoot;
+// https://html.spec.whatwg.org/#the-table-element
- readonly attribute HTMLCollection rows;
+interface HTMLTableElement : HTMLElement {
+ // TODO(philipj): The caption, tHead and tFoot setters should never throw.
+ [RaisesException=Setter] attribute HTMLTableCaptionElement? caption;
+ HTMLElement createCaption();
+ void deleteCaption();
+ [RaisesException=Setter] attribute HTMLTableSectionElement? tHead;
+ HTMLElement createTHead();
+ void deleteTHead();
+ [RaisesException=Setter] attribute HTMLTableSectionElement? tFoot;
+ HTMLElement createTFoot();
+ void deleteTFoot();
readonly attribute HTMLCollection tBodies;
+ HTMLElement createTBody();
+ readonly attribute HTMLCollection rows;
+ [RaisesException] HTMLElement insertRow(optional long index = -1);
+ // TODO(philipj): The index argument should not be optional.
+ [RaisesException] void deleteRow([Default=Undefined] optional long index);
+ // attribute boolean sortable;
+ // void stopSorting();
+
+ // obsolete members
+ // https://html.spec.whatwg.org/#HTMLTableElement-partial
[Reflect] attribute DOMString align;
- [Reflect, TreatNullAs=EmptyString] attribute DOMString bgColor;
[Reflect] attribute DOMString border;
- [Reflect, TreatNullAs=EmptyString] attribute DOMString cellPadding;
- [Reflect, TreatNullAs=EmptyString] attribute DOMString cellSpacing;
-
[Reflect] attribute DOMString frame;
-
[Reflect] attribute DOMString rules;
[Reflect] attribute DOMString summary;
[Reflect] attribute DOMString width;
- HTMLElement createTHead();
- void deleteTHead();
- HTMLElement createTFoot();
- void deleteTFoot();
- HTMLElement createTBody();
- HTMLElement createCaption();
- void deleteCaption();
-
- [RaisesException] HTMLElement insertRow(optional long index = -1);
- [RaisesException] void deleteRow([Default=Undefined] optional long index);
+ [Reflect, TreatNullAs=EmptyString] attribute DOMString bgColor;
+ [Reflect, TreatNullAs=EmptyString] attribute DOMString cellPadding;
+ [Reflect, TreatNullAs=EmptyString] attribute DOMString cellSpacing;
};
« no previous file with comments | « Source/core/html/HTMLTableColElement.idl ('k') | Source/core/html/HTMLTableRowElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698