diff options
Diffstat (limited to 'Source/WebCore/dom/DOMImplementation.idl')
-rw-r--r-- | Source/WebCore/dom/DOMImplementation.idl | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/Source/WebCore/dom/DOMImplementation.idl b/Source/WebCore/dom/DOMImplementation.idl index 3d0a33d39..f5b40e917 100644 --- a/Source/WebCore/dom/DOMImplementation.idl +++ b/Source/WebCore/dom/DOMImplementation.idl @@ -19,31 +19,16 @@ */ [ + ExportToWrappedFunction, GenerateIsReachable=ImplDocument, ImplementationLacksVTable, ] interface DOMImplementation { + [NewObject, MayThrowException] DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId, DOMString systemId); + [NewObject, MayThrowException] XMLDocument createDocument(DOMString? namespaceURI, [TreatNullAs=EmptyString] DOMString qualifiedName, optional DocumentType? doctype = null); + [NewObject] HTMLDocument createHTMLDocument(optional DOMString title); - // DOM Level 1 + boolean hasFeature(); - [ObjCLegacyUnnamedParameters] boolean hasFeature([Default=Undefined] optional DOMString feature, - [TreatNullAs=NullString, Default=Undefined] optional DOMString version); - - // DOM Level 2 - - [ObjCLegacyUnnamedParameters, RaisesException] DocumentType createDocumentType([TreatNullAs=NullString, TreatUndefinedAs=NullString, Default=Undefined] optional DOMString qualifiedName, - [TreatNullAs=NullString, TreatUndefinedAs=NullString, Default=Undefined] optional DOMString publicId, - [TreatNullAs=NullString, TreatUndefinedAs=NullString, Default=Undefined] optional DOMString systemId); - [ObjCLegacyUnnamedParameters, RaisesException] Document createDocument([TreatNullAs=NullString, Default=Undefined] optional DOMString namespaceURI, - [TreatNullAs=NullString, Default=Undefined] optional DOMString qualifiedName, - [TreatNullAs=NullString, Default=Undefined] optional DocumentType doctype); - - // DOMImplementationCSS interface from DOM Level 2 CSS - - [ObjCLegacyUnnamedParameters, RaisesException] CSSStyleSheet createCSSStyleSheet([Default=Undefined] optional DOMString title, - [Default=Undefined] optional DOMString media); - - // HTMLDOMImplementation interface from DOM Level 2 HTML - - HTMLDocument createHTMLDocument([Default=NullString] optional DOMString title); + // FIXME: Using "undefined" as default parameter value is wrong. + CSSStyleSheet createCSSStyleSheet(optional DOMString title = "undefined", optional DOMString media = "undefined"); }; - |