Index: core/html/HTMLDocument.idl |
diff --git a/core/html/HTMLDocument.idl b/core/html/HTMLDocument.idl |
index e166240d089267d56a6893a4d0de4a2074585a13..1b73bc81db7ae852ea5116c288e412b0bab7c450 100644 |
--- a/core/html/HTMLDocument.idl |
+++ b/core/html/HTMLDocument.idl |
@@ -18,32 +18,25 @@ |
* Boston, MA 02110-1301, USA. |
*/ |
-interface HTMLDocument : Document { |
- [Custom, CustomElementCallbacks] void open(); |
- [RaisesException] void close(); |
- |
- // We support multiple DOMString arguments to match FF / IE, e.g.: |
- // document.write("a", "b", "c") --> document.write("abc") |
- // document.write() --> document.write("") |
- [CallWith=ActiveWindow, CustomElementCallbacks, RaisesException] void write(DOMString... text); |
- [CallWith=ActiveWindow, CustomElementCallbacks, RaisesException] void writeln(DOMString... text); |
+// FIXME: "For historical reasons, Window objects must also have a |
+// writable, configurable, non-enumerable property named HTMLDocument |
+// whose value is the Document interface object." |
+// https://html.spec.whatwg.org/#the-window-object |
- // Extensions |
+interface HTMLDocument : Document { |
+ // https://html.spec.whatwg.org/#Document-partial |
- [Replaceable, ImplementedAs=allForBinding] readonly attribute HTMLAllCollection all; |
+ // FIXME: *Color should have [TreatNullAs=EmptyString]. |
+ [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString fgColor; |
+ [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString linkColor; |
+ [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString vlinkColor; |
+ [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString alinkColor; |
+ [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString bgColor; |
[MeasureAs=DocumentClear] void clear(); |
- |
[MeasureAs=DocumentCaptureEvents] void captureEvents(); |
[MeasureAs=DocumentReleaseEvents] void releaseEvents(); |
- readonly attribute DOMString compatMode; |
- |
- // Deprecated attributes |
- [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString bgColor; |
- [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString fgColor; |
- [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString alinkColor; |
- [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString linkColor; |
- [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString vlinkColor; |
+ // FIXME: all should not be [Replaceable]. |
+ [Replaceable, ImplementedAs=allForBinding] readonly attribute HTMLAllCollection all; |
}; |
- |