Index: core/html/HTMLDocument.idl |
diff --git a/core/html/HTMLDocument.idl b/core/html/HTMLDocument.idl |
index 764f1af8c62173e11eb88e114f80dde003647dac..84328c8565f1257694a9976120f0bbb097ae2607 100644 |
--- a/core/html/HTMLDocument.idl |
+++ b/core/html/HTMLDocument.idl |
@@ -21,11 +21,15 @@ |
interface HTMLDocument : Document { |
[Custom, CustomElementCallbacks] void open(); |
void close(); |
- [Custom, PerWorldBindings, ActivityLogging=AccessForIsolatedWorlds, CustomElementCallbacks] void write([Default=Undefined] optional DOMString text); |
- [Custom, PerWorldBindings, ActivityLogging=AccessForIsolatedWorlds, CustomElementCallbacks] void writeln([Default=Undefined] optional DOMString text); |
+ |
+ // 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, PerWorldBindings, ActivityLogging=ForIsolatedWorlds, CustomElementCallbacks] void write(DOMString... text); |
+ [CallWith=ActiveWindow, PerWorldBindings, ActivityLogging=ForIsolatedWorlds, CustomElementCallbacks] void writeln(DOMString... text); |
readonly attribute HTMLCollection embeds; |
- readonly attribute HTMLCollection plugins; |
+ [ImplementedAs=embeds] readonly attribute HTMLCollection plugins; |
readonly attribute HTMLCollection scripts; |
// Extensions |