+2006-08-29 Sam Weinig <sam.weinig@gmail.com>
+
+ Reviewed by Tim H.
+
+ - patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10628
+ Auto-generate the remaining Objective-C DOM bindings
+
+ Auto-generates DOMHTMLCollection, DOMHTMLElement, DOMHTMLFormElement,
+ and DOMHTMLOptionsCollection, and lays groundwork for the rest of the
+ HTML DOM bindings by adding/fixing the appropriate IDL's and updating
+ the CodeGeneratorObjC.pm build script.
+
+ * DerivedSources.make:
+ * WebCore.xcodeproj/project.pbxproj:
+ * bindings/objc/DOM.mm:
+ * bindings/objc/DOMExtensions.h:
+ * bindings/objc/DOMHTML.h:
+ * bindings/objc/DOMHTML.mm:
+ * bindings/objc/DOMHTMLInternal.h:
+ * bindings/scripts/CodeGeneratorObjC.pm:
+ * html/HTMLAnchorElement.idl:
+ * html/HTMLAreaElement.idl:
+ * html/HTMLBaseFontElement.idl:
+ * html/HTMLBodyElement.idl:
+ * html/HTMLButtonElement.idl:
+ * html/HTMLCollection.idl: Added.
+ * html/HTMLDocument.idl:
+ * html/HTMLElement.idl:
+ * html/HTMLFormElement.idl:
+ * html/HTMLFrameElement.idl: Added.
+ * html/HTMLFrameSetElement.idl: Added.
+ * html/HTMLIFrameElement.idl: Added.
+ * html/HTMLImageElement.idl:
+ * html/HTMLInputElement.idl:
+ * html/HTMLLabelElement.idl:
+ * html/HTMLLegendElement.idl:
+ * html/HTMLLinkElement.idl:
+ * html/HTMLMapElement.idl:
+ * html/HTMLObjectElement.idl: Added.
+ * html/HTMLOptionsCollection.idl:
+ * html/HTMLPreElement.idl:
+ * html/HTMLSelectElement.idl: Added.
+ * html/HTMLStyleElement.idl:
+ * html/HTMLTableCaptionElement.idl: Added.
+ * html/HTMLTableCellElement.idl: Added.
+ * html/HTMLTableColElement.idl: Added.
+ * html/HTMLTableElement.idl: Added.
+ * html/HTMLTableRowElement.idl: Added.
+ * html/HTMLTableSectionElement.idl: Added.
+ * html/HTMLTextAreaElement.idl:
+
2006-08-29 Nikolas Zimmermann <zimmermann@kde.org>
Reviewed and landed by ap.
DOMNotation.h \
DOMProcessingInstruction.h \
DOMText.h \
+ DOMHTMLCollection.h \
+ DOMHTMLElement.h \
+ DOMHTMLFormElement.h \
+ DOMHTMLOptionsCollection.h \
HTMLEntityNames.c \
JSAttr.h \
JSCSSPrimitiveValue.h \
85CA975D0A962E5400690CCF /* DOMDocumentType.mm in Sources */ = {isa = PBXBuildFile; fileRef = 85CA975B0A962E5400690CCF /* DOMDocumentType.mm */; };
85D389B20A991A7F00282145 /* DOMAttr.h in Headers */ = {isa = PBXBuildFile; fileRef = 85D389B00A991A7F00282145 /* DOMAttr.h */; settings = {ATTRIBUTES = (Private, ); }; };
85D389B30A991A7F00282145 /* DOMAttr.mm in Sources */ = {isa = PBXBuildFile; fileRef = 85D389B10A991A7F00282145 /* DOMAttr.mm */; };
+ 85DF2C5C0AA341F600AD64C5 /* DOMHTMLFormElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 85DF2C100AA341F600AD64C5 /* DOMHTMLFormElement.h */; settings = {ATTRIBUTES = (Private, ); }; };
+ 85DF2C5D0AA341F600AD64C5 /* DOMHTMLFormElement.mm in Sources */ = {isa = PBXBuildFile; fileRef = 85DF2C110AA341F600AD64C5 /* DOMHTMLFormElement.mm */; };
+ 85DF2EED0AA387CB00AD64C5 /* DOMHTMLElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 85DF2EEB0AA387CB00AD64C5 /* DOMHTMLElement.h */; settings = {ATTRIBUTES = (Private, ); }; };
+ 85DF2EEE0AA387CB00AD64C5 /* DOMHTMLElement.mm in Sources */ = {isa = PBXBuildFile; fileRef = 85DF2EEC0AA387CB00AD64C5 /* DOMHTMLElement.mm */; };
+ 85DF2F8E0AA3C88100AD64C5 /* DOMHTMLCollection.h in Headers */ = {isa = PBXBuildFile; fileRef = 85DF2F8C0AA3C88100AD64C5 /* DOMHTMLCollection.h */; settings = {ATTRIBUTES = (Private, ); }; };
+ 85DF2F8F0AA3C88100AD64C5 /* DOMHTMLCollection.mm in Sources */ = {isa = PBXBuildFile; fileRef = 85DF2F8D0AA3C88100AD64C5 /* DOMHTMLCollection.mm */; };
+ 85DF2F9B0AA3CAE500AD64C5 /* DOMHTMLOptionsCollection.h in Headers */ = {isa = PBXBuildFile; fileRef = 85DF2F990AA3CAE500AD64C5 /* DOMHTMLOptionsCollection.h */; settings = {ATTRIBUTES = (Private, ); }; };
+ 85DF2F9C0AA3CAE500AD64C5 /* DOMHTMLOptionsCollection.mm in Sources */ = {isa = PBXBuildFile; fileRef = 85DF2F9A0AA3CAE500AD64C5 /* DOMHTMLOptionsCollection.mm */; };
85EC9AFA0A71A2C600EEEAED /* FontData.h in Headers */ = {isa = PBXBuildFile; fileRef = 85EC9AF80A71A2C600EEEAED /* FontData.h */; };
85EC9AFB0A71A2C600EEEAED /* Language.h in Headers */ = {isa = PBXBuildFile; fileRef = 85EC9AF90A71A2C600EEEAED /* Language.h */; };
85F56A7A0A98CE3700ADB60A /* DOMProcessingInstruction.h in Headers */ = {isa = PBXBuildFile; fileRef = 85F56A780A98CE3700ADB60A /* DOMProcessingInstruction.h */; settings = {ATTRIBUTES = (Private, ); }; };
854FE72D0A2297BE0058D7AD /* Traversal.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = Traversal.h; sourceTree = "<group>"; };
854FE72E0A2297BE0058D7AD /* TreeWalker.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = TreeWalker.cpp; sourceTree = "<group>"; };
854FE72F0A2297BE0058D7AD /* TreeWalker.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = TreeWalker.h; sourceTree = "<group>"; };
+ 855542570AA48B1E00BA89F2 /* HTMLTableCaptionElement.idl */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = HTMLTableCaptionElement.idl; sourceTree = "<group>"; };
+ 855542580AA48B1E00BA89F2 /* HTMLTableCellElement.idl */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = HTMLTableCellElement.idl; sourceTree = "<group>"; };
+ 855542590AA48B1E00BA89F2 /* HTMLTableColElement.idl */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = HTMLTableColElement.idl; sourceTree = "<group>"; };
+ 8555425A0AA48B1E00BA89F2 /* HTMLTableElement.idl */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = HTMLTableElement.idl; sourceTree = "<group>"; };
+ 8555425B0AA48B1E00BA89F2 /* HTMLTableRowElement.idl */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = HTMLTableRowElement.idl; sourceTree = "<group>"; };
+ 8555425C0AA48B1E00BA89F2 /* HTMLTableSectionElement.idl */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = HTMLTableSectionElement.idl; sourceTree = "<group>"; };
+ 855542950AA4938800BA89F2 /* HTMLFrameElement.idl */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = HTMLFrameElement.idl; sourceTree = "<group>"; };
+ 855542960AA4938800BA89F2 /* HTMLFrameSetElement.idl */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = HTMLFrameSetElement.idl; sourceTree = "<group>"; };
+ 855542970AA4938800BA89F2 /* HTMLIFrameElement.idl */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = HTMLIFrameElement.idl; sourceTree = "<group>"; };
+ 855542980AA4938800BA89F2 /* HTMLObjectElement.idl */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = HTMLObjectElement.idl; sourceTree = "<group>"; };
+ 855542990AA4938800BA89F2 /* HTMLSelectElement.idl */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = HTMLSelectElement.idl; sourceTree = "<group>"; };
856C89FA0A90F068005C687B /* DOMNode.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DOMNode.h; sourceTree = "<group>"; };
856C89FB0A90F068005C687B /* DOMNode.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = DOMNode.mm; sourceTree = "<group>"; };
856C8AE20A912649005C687B /* DOMObject.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = DOMObject.h; sourceTree = "<group>"; };
85CA975B0A962E5400690CCF /* DOMDocumentType.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = DOMDocumentType.mm; sourceTree = "<group>"; };
85D389B00A991A7F00282145 /* DOMAttr.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = DOMAttr.h; sourceTree = "<group>"; };
85D389B10A991A7F00282145 /* DOMAttr.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = DOMAttr.mm; sourceTree = "<group>"; };
+ 85DF2C100AA341F600AD64C5 /* DOMHTMLFormElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = DOMHTMLFormElement.h; sourceTree = "<group>"; };
+ 85DF2C110AA341F600AD64C5 /* DOMHTMLFormElement.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = DOMHTMLFormElement.mm; sourceTree = "<group>"; };
+ 85DF2EEB0AA387CB00AD64C5 /* DOMHTMLElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = DOMHTMLElement.h; sourceTree = "<group>"; };
+ 85DF2EEC0AA387CB00AD64C5 /* DOMHTMLElement.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = DOMHTMLElement.mm; sourceTree = "<group>"; };
+ 85DF2F690AA3C74300AD64C5 /* HTMLCollection.idl */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = HTMLCollection.idl; sourceTree = "<group>"; };
+ 85DF2F8C0AA3C88100AD64C5 /* DOMHTMLCollection.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = DOMHTMLCollection.h; sourceTree = "<group>"; };
+ 85DF2F8D0AA3C88100AD64C5 /* DOMHTMLCollection.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = DOMHTMLCollection.mm; sourceTree = "<group>"; };
+ 85DF2F920AA3C9B600AD64C5 /* HTMLOptionsCollection.idl */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = HTMLOptionsCollection.idl; sourceTree = "<group>"; };
+ 85DF2F990AA3CAE500AD64C5 /* DOMHTMLOptionsCollection.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = DOMHTMLOptionsCollection.h; sourceTree = "<group>"; };
+ 85DF2F9A0AA3CAE500AD64C5 /* DOMHTMLOptionsCollection.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = DOMHTMLOptionsCollection.mm; sourceTree = "<group>"; };
85EC9AF80A71A2C600EEEAED /* FontData.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = FontData.h; sourceTree = "<group>"; };
85EC9AF90A71A2C600EEEAED /* Language.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = Language.h; sourceTree = "<group>"; };
85F56A780A98CE3700ADB60A /* DOMProcessingInstruction.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = DOMProcessingInstruction.h; sourceTree = "<group>"; };
85F56A790A98CE3700ADB60A /* DOMProcessingInstruction.mm */,
85ACA99A0A9B575900671E90 /* DOMText.h */,
85ACA99B0A9B575900671E90 /* DOMText.mm */,
+ 85DF2F8C0AA3C88100AD64C5 /* DOMHTMLCollection.h */,
+ 85DF2F8D0AA3C88100AD64C5 /* DOMHTMLCollection.mm */,
+ 85DF2EEB0AA387CB00AD64C5 /* DOMHTMLElement.h */,
+ 85DF2EEC0AA387CB00AD64C5 /* DOMHTMLElement.mm */,
+ 85DF2C100AA341F600AD64C5 /* DOMHTMLFormElement.h */,
+ 85DF2C110AA341F600AD64C5 /* DOMHTMLFormElement.mm */,
+ 85DF2F990AA3CAE500AD64C5 /* DOMHTMLOptionsCollection.h */,
+ 85DF2F9A0AA3CAE500AD64C5 /* DOMHTMLOptionsCollection.mm */,
);
name = "Derived Sources";
path = DerivedSources/WebCore;
938E662509F09956008A48EC /* HTMLCanvasElement.idl */,
A8DF3FC9097FA0FB0052981B /* HTMLCollection.cpp */,
A8DF3FC8097FA0FB0052981B /* HTMLCollection.h */,
+ 85DF2F690AA3C74300AD64C5 /* HTMLCollection.idl */,
A8EA79ED0A1916DF00A8EF5F /* HTMLDirectoryElement.cpp */,
A8EA79EE0A1916DF00A8EF5F /* HTMLDirectoryElement.h */,
1A85B1D90A1B23A400D8C87C /* HTMLDirectoryElement.idl */,
A8D064EF0A23BFEA005E7203 /* HTMLFormElement.idl */,
A871DE170A152AC800B12A68 /* HTMLFrameElement.cpp */,
A871DE1F0A152AC800B12A68 /* HTMLFrameElement.h */,
+ 855542950AA4938800BA89F2 /* HTMLFrameElement.idl */,
A871DE220A152AC800B12A68 /* HTMLFrameSetElement.cpp */,
A871DE1C0A152AC800B12A68 /* HTMLFrameSetElement.h */,
+ 855542960AA4938800BA89F2 /* HTMLFrameSetElement.idl */,
A81369B3097374F500D74463 /* HTMLGenericFormElement.cpp */,
A81369B2097374F500D74463 /* HTMLGenericFormElement.h */,
A871DE190A152AC800B12A68 /* HTMLHeadElement.cpp */,
1A85B17D0A1B183600D8C87C /* HTMLHtmlElement.idl */,
A871DE180A152AC800B12A68 /* HTMLIFrameElement.cpp */,
A871DE1E0A152AC800B12A68 /* HTMLIFrameElement.h */,
+ 855542970AA4938800BA89F2 /* HTMLIFrameElement.idl */,
A8EA7D290A19385500A8EF5F /* HTMLImageElement.cpp */,
A8EA7D250A19385500A8EF5F /* HTMLImageElement.h */,
1AE2AA790A1CDC6100B42B25 /* HTMLImageElement.idl */,
A8DF3FCC097FA0FB0052981B /* HTMLNameCollection.h */,
A871D4510A127CBC00B12A68 /* HTMLObjectElement.cpp */,
A871D4500A127CBC00B12A68 /* HTMLObjectElement.h */,
+ 855542980AA4938800BA89F2 /* HTMLObjectElement.idl */,
A8EA79EF0A1916DF00A8EF5F /* HTMLOListElement.cpp */,
A8EA79E50A1916DF00A8EF5F /* HTMLOListElement.h */,
1A85B1CB0A1B22DC00D8C87C /* HTMLOListElement.idl */,
A80E7E180A1A7CCB007FB8C5 /* HTMLOptionElement.idl */,
9327A94109968D1A0068A546 /* HTMLOptionsCollection.cpp */,
A81369BE097374F500D74463 /* HTMLOptionsCollection.h */,
+ 85DF2F920AA3C9B600AD64C5 /* HTMLOptionsCollection.idl */,
A8EA7CA40A192B9C00A8EF5F /* HTMLParagraphElement.cpp */,
A8EA7CA70A192B9C00A8EF5F /* HTMLParagraphElement.h */,
1AE2AB610A1CE7CA00B42B25 /* HTMLParagraphElement.idl */,
1AE2AB960A1CE88D00B42B25 /* HTMLScriptElement.idl */,
A81369BD097374F500D74463 /* HTMLSelectElement.cpp */,
A81369BC097374F500D74463 /* HTMLSelectElement.h */,
+ 855542990AA4938800BA89F2 /* HTMLSelectElement.idl */,
A871DC1A0A15205700B12A68 /* HTMLStyleElement.cpp */,
A871DC170A15205700B12A68 /* HTMLStyleElement.h */,
A80E7AB20A19D1F1007FB8C5 /* HTMLStyleElement.idl */,
A871DB240A150BD600B12A68 /* HTMLTableCaptionElement.cpp */,
A871DB1D0A150BD600B12A68 /* HTMLTableCaptionElement.h */,
+ 855542570AA48B1E00BA89F2 /* HTMLTableCaptionElement.idl */,
A871DB200A150BD600B12A68 /* HTMLTableCellElement.cpp */,
A871DB1C0A150BD600B12A68 /* HTMLTableCellElement.h */,
+ 855542580AA48B1E00BA89F2 /* HTMLTableCellElement.idl */,
A871DB1B0A150BD600B12A68 /* HTMLTableColElement.cpp */,
A871DB210A150BD600B12A68 /* HTMLTableColElement.h */,
+ 855542590AA48B1E00BA89F2 /* HTMLTableColElement.idl */,
A871DB1A0A150BD600B12A68 /* HTMLTableElement.cpp */,
A871DB190A150BD600B12A68 /* HTMLTableElement.h */,
+ 8555425A0AA48B1E00BA89F2 /* HTMLTableElement.idl */,
A871DB1F0A150BD600B12A68 /* HTMLTablePartElement.cpp */,
A871DB1E0A150BD600B12A68 /* HTMLTablePartElement.h */,
A871DB220A150BD600B12A68 /* HTMLTableRowElement.cpp */,
A871DB230A150BD600B12A68 /* HTMLTableRowElement.h */,
+ 8555425B0AA48B1E00BA89F2 /* HTMLTableRowElement.idl */,
A871DB180A150BD600B12A68 /* HTMLTableSectionElement.cpp */,
A871DB170A150BD600B12A68 /* HTMLTableSectionElement.h */,
+ 8555425C0AA48B1E00BA89F2 /* HTMLTableSectionElement.idl */,
A81369BB097374F500D74463 /* HTMLTextAreaElement.cpp */,
A81369BA097374F500D74463 /* HTMLTextAreaElement.h */,
A80E7E160A1A7CCB007FB8C5 /* HTMLTextAreaElement.idl */,
BC837CB60A9D10FE006B186A /* GraphicsContextPlatformPrivate.h in Headers */,
AA84FC860AA0FE08007699AF /* JSSVGMetadataElement.h in Headers */,
AAC8DAB20AA1002000DC0907 /* SVGMetadataElement.h in Headers */,
+ 85DF2C5C0AA341F600AD64C5 /* DOMHTMLFormElement.h in Headers */,
+ 85DF2EED0AA387CB00AD64C5 /* DOMHTMLElement.h in Headers */,
+ 85DF2F8E0AA3C88100AD64C5 /* DOMHTMLCollection.h in Headers */,
+ 85DF2F9B0AA3CAE500AD64C5 /* DOMHTMLOptionsCollection.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
BC837C7B0A9D0D1A006B186A /* PDFDocumentImage.cpp in Sources */,
AA84FC850AA0FE08007699AF /* JSSVGMetadataElement.cpp in Sources */,
AAC8DAB10AA1002000DC0907 /* SVGMetadataElement.cpp in Sources */,
+ 85DF2C5D0AA341F600AD64C5 /* DOMHTMLFormElement.mm in Sources */,
+ 85DF2EEE0AA387CB00AD64C5 /* DOMHTMLElement.mm in Sources */,
+ 85DF2F8F0AA3C88100AD64C5 /* DOMHTMLCollection.mm in Sources */,
+ 85DF2F9C0AA3CAE500AD64C5 /* DOMHTMLOptionsCollection.mm in Sources */,
1AE42F6A0AA4B8CB00C8612D /* StringCF.cpp in Sources */,
1AE42F6B0AA4B8CB00C8612D /* StringImplCF.cpp in Sources */,
);
#import "DOMProcessingInstruction.h"
#import "DOMText.h"
+// Generated Objective-C Bindings
+#import "DOMHTMLCollection.h"
+#import "DOMHTMLElement.h"
+#import "DOMHTMLFormElement.h"
+#import "DOMHTMLOptionsCollection.h"
+
#import <objc/objc-class.h>
using WebCore::AtomicString;
#import <WebCore/DOMNode.h>
#import <WebCore/DOMRange.h>
+#import <WebCore/DOMHTMLElement.h>
+
@class NSColor;
@class NSImage;
@class DOMHTMLCollection;
- (DOMDocumentFragment *)createDocumentFragmentWithText:(NSString *)text;
@end
-@interface DOMHTMLElement (DOMHTMLElementExtensions)
-- (NSString *)innerHTML;
-- (void)setInnerHTML:(NSString *)innerHTML;
-- (NSString *)innerText;
-- (void)setInnerText:(NSString *)innerText;
-- (NSString *)outerHTML;
-- (void)setOuterHTML:(NSString *)outerHTML;
-- (NSString *)outerText;
-- (void)setOuterText:(NSString *)outerText;
-- (DOMHTMLCollection *)children;
-- (NSString *)contentEditable;
-- (void)setContentEditable:(NSString *)contentEditable;
-- (BOOL)isContentEditable;
-- (NSString *)titleDisplayString;
+@interface DOMHTMLInputElement (DOMHTMLInputElementExtensions)
+- (NSString *)altDisplayString;
+- (NSURL *)absoluteImageURL;
+@end
+
+@interface DOMHTMLImageElement (DOMHTMLImageElementExtensions)
+- (NSString *)altDisplayString;
+- (NSURL *)absoluteImageURL;
+@end
+
+@interface DOMHTMLObjectElement (DOMHTMLObjectElementExtensions)
+- (NSURL *)absoluteImageURL;
+@end
+
+@interface DOMHTMLAnchorElement (DOMHTMLAnchorElementExtensions)
+- (NSURL *)absoluteLinkURL;
+@end
+
+@interface DOMHTMLAreaElement (DOMHTMLAreaElementExtensions)
+- (NSURL *)absoluteLinkURL;
+@end
+
+@interface DOMHTMLLinkElement (DOMHTMLLinkElementExtensions)
+- (NSURL *)absoluteLinkURL;
@end
@interface DOMHTMLEmbedElement : DOMHTMLElement
@interface DOMRange (DOMRangeExtensions)
- (NSString *)text;
@end
-
-@interface DOMHTMLInputElement (DOMHTMLInputElementExtensions)
-- (NSString *)altDisplayString;
-- (NSURL *)absoluteImageURL;
-@end
-
-@interface DOMHTMLImageElement (DOMHTMLImageElementExtensions)
-- (NSString *)altDisplayString;
-- (NSURL *)absoluteImageURL;
-@end
-
-@interface DOMHTMLObjectElement (DOMHTMLObjectElementExtensions)
-- (NSURL *)absoluteImageURL;
-@end
-
-@interface DOMHTMLAnchorElement (DOMHTMLAnchorElementExtensions)
-- (NSURL *)absoluteLinkURL;
-@end
-
-@interface DOMHTMLAreaElement (DOMHTMLAreaElementExtensions)
-- (NSURL *)absoluteLinkURL;
-@end
-
-@interface DOMHTMLLinkElement (DOMHTMLLinkElementExtensions)
-- (NSURL *)absoluteLinkURL;
-@end
#import <WebCore/DOMCore.h>
-@class DOMHTMLElement;
-@class DOMHTMLFormElement;
+#import <WebCore/DOMHTMLCollection.h>
+#import <WebCore/DOMHTMLElement.h>
+#import <WebCore/DOMHTMLFormElement.h>
+#import <WebCore/DOMHTMLOptionsCollection.h>
+
@class DOMHTMLTableCaptionElement;
@class DOMHTMLTableSectionElement;
-@interface DOMHTMLCollection : DOMObject
-- (unsigned)length;
-- (DOMNode *)item:(unsigned)index;
-- (DOMNode *)namedItem:(NSString *)name;
-@end
-
-@interface DOMHTMLOptionsCollection : DOMObject
-- (unsigned)length;
-- (void)setLength:(unsigned)length;
-- (DOMNode *)item:(unsigned)index;
-- (DOMNode *)namedItem:(NSString *)name;
-@end
-
@interface DOMHTMLDocument : DOMDocument
- (NSString *)title;
- (void)setTitle:(NSString *)title;
- (DOMNodeList *)getElementsByName:(NSString *)elementName;
@end
-@interface DOMHTMLElement : DOMElement
-- (NSString *)idName;
-- (void)setIdName:(NSString *)idName;
-- (NSString *)title;
-- (void)setTitle:(NSString *)title;
-- (NSString *)lang;
-- (void)setLang:(NSString *)lang;
-- (NSString *)dir;
-- (void)setDir:(NSString *)dir;
-- (NSString *)className;
-- (void)setClassName:(NSString *)className;
-@end
-
@interface DOMHTMLHtmlElement : DOMHTMLElement
- (NSString *)version;
- (void)setVersion:(NSString *)version;
- (void)setVLink:(NSString *)vLink;
@end
-@interface DOMHTMLFormElement : DOMHTMLElement
-- (DOMHTMLCollection *)elements;
-- (int)length;
-- (NSString *)name;
-- (void)setName:(NSString *)name;
-- (NSString *)acceptCharset;
-- (void)setAcceptCharset:(NSString *)acceptCharset;
-- (NSString *)action;
-- (void)setAction:(NSString *)action;
-- (NSString *)enctype;
-- (void)setEnctype:(NSString *)enctype;
-- (NSString *)method;
-- (void)setMethod:(NSString *)method;
-- (NSString *)target;
-- (void)setTarget:(NSString *)target;
-- (void)submit;
-- (void)reset;
-@end
-
@interface DOMHTMLSelectElement : DOMHTMLElement
- (NSString *)type;
- (int)selectedIndex;
// FIXME: This code should be using the impl methods instead of doing so many get/setAttribute calls.
// FIXME: This code should be generated.
-@interface DOMHTMLCollection (WebCoreInternal)
-+ (DOMHTMLCollection *)_collectionWith:(HTMLCollection *)impl;
-@end
-
-@interface DOMHTMLElement (WebCoreInternal)
-+ (DOMHTMLElement *)_elementWith:(HTMLElement *)impl;
-- (HTMLElement *)_HTMLElement;
-@end
-
-@interface DOMHTMLFormElement (WebCoreInternal)
-+ (DOMHTMLFormElement *)_formElementWith:(HTMLFormElement *)impl;
-@end
-
-@interface DOMHTMLTableCaptionElement (WebCoreInternal)
-+ (DOMHTMLTableCaptionElement *)_tableCaptionElementWith:(HTMLTableCaptionElement *)impl;
-- (HTMLTableCaptionElement *)_tableCaptionElement;
-@end
-
-@interface DOMHTMLTableSectionElement (WebCoreInternal)
-+ (DOMHTMLTableSectionElement *)_tableSectionElementWith:(HTMLTableSectionElement *)impl;
-- (HTMLTableSectionElement *)_tableSectionElement;
-@end
-
-@interface DOMHTMLTableElement (WebCoreInternal)
-+ (DOMHTMLTableElement *)_tableElementWith:(HTMLTableElement *)impl;
-- (HTMLTableElement *)_tableElement;
-@end
-
-@interface DOMHTMLTableCellElement (WebCoreInternal)
-+ (DOMHTMLTableCellElement *)_tableCellElementWith:(HTMLTableCellElement *)impl;
-- (HTMLTableCellElement *)_tableCellElement;
-@end
//------------------------------------------------------------------------------------------
-
-@implementation DOMHTMLCollection
-
-- (void)dealloc
-{
- if (_internal) {
- DOM_cast<HTMLCollection*>(_internal)->deref();
- }
- [super dealloc];
-}
-
-- (void)finalize
-{
- if (_internal) {
- DOM_cast<HTMLCollection*>(_internal)->deref();
- }
- [super finalize];
-}
-
-- (HTMLCollection *)_collection
-{
- return DOM_cast<HTMLCollection*>(_internal);
-}
-
-- (unsigned)length
-{
- return [self _collection]->length();
-}
-
-- (DOMNode *)item:(unsigned)index
-{
- return [DOMNode _nodeWith:[self _collection]->item(index)];
-}
-
-- (DOMNode *)namedItem:(NSString *)name
-{
- return [DOMNode _nodeWith:[self _collection]->namedItem(name)];
-}
-
-@end
+// DOMHTMLCollection
@implementation DOMHTMLCollection (WebCoreInternal)
@end
-@implementation DOMHTMLOptionsCollection
-- (void)dealloc
-{
- if (_internal) {
- DOM_cast<HTMLOptionsCollection*>(_internal)->deref();
- }
- [super dealloc];
-}
+//------------------------------------------------------------------------------------------
+// DOMHTMLOptionsCollection
-- (void)finalize
-{
- if (_internal) {
- DOM_cast<HTMLOptionsCollection*>(_internal)->deref();
- }
- [super finalize];
-}
+@implementation DOMHTMLOptionsCollection (WebCoreInternal)
- (id)_initWithOptionsCollection:(HTMLOptionsCollection *)impl
{
return [[[self alloc] _initWithOptionsCollection:impl] autorelease];
}
-- (HTMLOptionsCollection *)_optionsCollection
-{
- return DOM_cast<HTMLOptionsCollection*>(_internal);
-}
-
-- (unsigned)length
-{
- return [self _optionsCollection]->length();
-}
-
-- (void)setLength:(unsigned)length
-{
- ExceptionCode ec;
- [self _optionsCollection]->setLength(length, ec);
- raiseOnDOMError(ec);
-}
-
-- (DOMNode *)item:(unsigned)index
-{
- return [DOMNode _nodeWith:[self _optionsCollection]->item(index)];
-}
-
-- (DOMNode *)namedItem:(NSString *)name
-{
- return [DOMNode _nodeWith:[self _optionsCollection]->namedItem(name)];
-}
-
@end
-@implementation DOMHTMLElement
-
-- (NSString *)idName
-{
- return [self _HTMLElement]->getAttribute(idAttr);
-}
-- (void)setIdName:(NSString *)idName
-{
- [self _HTMLElement]->setAttribute(idAttr, idName);
-}
-
-- (NSString *)title
-{
- return [self _HTMLElement]->title();
-}
-
-- (void)setTitle:(NSString *)title
-{
- [self _HTMLElement]->setTitle(title);
-}
-
-- (NSString *)lang
-{
- return [self _HTMLElement]->lang();
-}
-
-- (void)setLang:(NSString *)lang
-{
- [self _HTMLElement]->setLang(lang);
-}
-
-- (NSString *)dir
-{
- return [self _HTMLElement]->dir();
-}
-
-- (void)setDir:(NSString *)dir
-{
- [self _HTMLElement]->setDir(dir);
-}
-
-- (NSString *)className
-{
- return [self _HTMLElement]->className();
-}
-
-- (void)setClassName:(NSString *)className
-{
- [self _HTMLElement]->setClassName(className);
-}
-
-@end
+//------------------------------------------------------------------------------------------
+// DOMHTMLElement
@implementation DOMHTMLElement (WebCoreInternal)
@end
-@implementation DOMHTMLElement (DOMHTMLElementExtensions)
-
-- (NSString *)titleDisplayString
-{
- return [self _HTMLElement]->title().replace('\\', [self _element]->document()->backslashAsCurrencySymbol());
-}
-
-- (NSString *)innerHTML
-{
- return [self _HTMLElement]->innerHTML();
-}
-- (void)setInnerHTML:(NSString *)innerHTML
-{
- int exception = 0;
- [self _HTMLElement]->setInnerHTML(innerHTML, exception);
- raiseOnDOMError(exception);
-}
-
-- (NSString *)outerHTML
-{
- return [self _HTMLElement]->outerHTML();
-}
-
-- (void)setOuterHTML:(NSString *)outerHTML
-{
- int exception = 0;
- [self _HTMLElement]->setOuterHTML(outerHTML, exception);
- raiseOnDOMError(exception);
-}
-
-- (NSString *)innerText
-{
- return [self _HTMLElement]->innerText();
-}
-
-- (void)setInnerText:(NSString *)innerText
-{
- int exception = 0;
- [self _HTMLElement]->setInnerText(innerText, exception);
- raiseOnDOMError(exception);
-}
-
-- (NSString *)outerText
-{
- return [self _HTMLElement]->outerText();
-}
-
-- (void)setOuterText:(NSString *)outerText
-{
- int exception = 0;
- [self _HTMLElement]->setOuterText(outerText, exception);
- raiseOnDOMError(exception);
-}
-
-- (DOMHTMLCollection *)children
-{
- HTMLCollection *collection = new HTMLCollection([self _HTMLElement], HTMLCollection::NodeChildren);
- return [DOMHTMLCollection _collectionWith:collection];
-}
-
-- (NSString *)contentEditable
-{
- return [self _HTMLElement]->contentEditable();
-}
-
-- (void)setContentEditable:(NSString *)contentEditable
-{
- [self _HTMLElement]->setContentEditable(contentEditable);
-}
-
-- (BOOL)isContentEditable
-{
- return [self _HTMLElement]->isContentEditable();
-}
-
-@end
+//------------------------------------------------------------------------------------------
+// DOMHTMLDocument
@implementation DOMHTMLDocument
@end
-@implementation DOMHTMLFormElement
-
-- (HTMLFormElement *)_formElement
-{
- return static_cast<HTMLFormElement*>(DOM_cast<Node*>(_internal));
-}
-
-- (DOMHTMLCollection *)elements
-{
- HTMLCollection *collection = new HTMLFormCollection([self _formElement]);
- return [DOMHTMLCollection _collectionWith:collection];
-}
-
-- (int)length
-{
- return [self _formElement]->length();
-}
-
-- (NSString *)name
-{
- return [self _formElement]->getAttribute(nameAttr);
-}
-
-- (void)setName:(NSString *)name
-{
- [self _formElement]->setAttribute(nameAttr, name);
-}
-- (NSString *)acceptCharset
-{
- return [self _formElement]->getAttribute(accept_charsetAttr);
-}
-
-- (void)setAcceptCharset:(NSString *)acceptCharset
-{
- [self _formElement]->setAttribute(accept_charsetAttr, acceptCharset);
-}
-
-- (NSString *)action
-{
- return [self _formElement]->getAttribute(actionAttr);
-}
-
-- (void)setAction:(NSString *)action
-{
- [self _formElement]->setAttribute(actionAttr, action);
-}
-
-- (NSString *)enctype
-{
- return [self _formElement]->getAttribute(enctypeAttr);
-}
-
-- (void)setEnctype:(NSString *)enctype
-{
- [self _formElement]->setAttribute(enctypeAttr, enctype);
-}
-
-- (NSString *)method
-{
- return [self _formElement]->getAttribute(methodAttr);
-}
-
-- (void)setMethod:(NSString *)method
-{
- [self _formElement]->setAttribute(methodAttr, method);
-}
-
-- (NSString *)target
-{
- return [self _formElement]->getAttribute(targetAttr);
-}
-
-- (void)setTarget:(NSString *)target
-{
- [self _formElement]->setAttribute(targetAttr, target);
-}
-
-- (void)submit
-{
- [self _formElement]->submit(false);
-}
-
-- (void)reset
-{
- [self _formElement]->reset();
-}
-
-@end
+//------------------------------------------------------------------------------------------
+// DOMHTMLFormElement
@implementation DOMHTMLFormElement (WebCoreInternal)
@end
+
+//------------------------------------------------------------------------------------------
+// DOMHTMLIsIndexElement
+
@implementation DOMHTMLIsIndexElement
- (HTMLIsIndexElement *)_isIndexElement
#import "DOMHTML.h"
+#import "DOMHTMLCollection.h"
+#import "DOMHTMLElement.h"
+#import "DOMHTMLFormElement.h"
+#import "DOMHTMLOptionsCollection.h"
+
namespace WebCore {
+ class HTMLCollection;
class HTMLDocument;
+ class HTMLElement;
+ class HTMLFormElement;
+ class HTMLImageElement;
+ class HTMLInputElement;
+ class HTMLObjectElement;
class HTMLOptionsCollection;
+ class HTMLTableCaptionElement;
+ class HTMLTableCellElement;
+ class HTMLTableElement;
+ class HTMLTableSectionElement;
}
@interface DOMHTMLOptionsCollection (WebCoreInternal)
@interface DOMHTMLDocument (WebCoreInternal)
+ (DOMHTMLDocument *)_HTMLDocumentWith:(WebCore::HTMLDocument *)impl;
@end
+
+@interface DOMHTMLCollection (WebCoreInternal)
++ (DOMHTMLCollection *)_collectionWith:(WebCore::HTMLCollection *)impl;
+@end
+
+@interface DOMHTMLElement (WebCoreInternal)
++ (DOMHTMLElement *)_elementWith:(WebCore::HTMLElement *)impl;
+- (WebCore::HTMLElement *)_HTMLElement;
+@end
+
+@interface DOMHTMLFormElement (WebCoreInternal)
++ (DOMHTMLFormElement *)_formElementWith:(WebCore::HTMLFormElement *)impl;
+@end
+
+@interface DOMHTMLTableCaptionElement (WebCoreInternal)
++ (DOMHTMLTableCaptionElement *)_tableCaptionElementWith:(WebCore::HTMLTableCaptionElement *)impl;
+- (WebCore::HTMLTableCaptionElement *)_tableCaptionElement;
+@end
+
+@interface DOMHTMLTableSectionElement (WebCoreInternal)
++ (DOMHTMLTableSectionElement *)_tableSectionElementWith:(WebCore::HTMLTableSectionElement *)impl;
+- (WebCore::HTMLTableSectionElement *)_tableSectionElement;
+@end
+
+@interface DOMHTMLTableElement (WebCoreInternal)
++ (DOMHTMLTableElement *)_tableElementWith:(WebCore::HTMLTableElement *)impl;
+- (WebCore::HTMLTableElement *)_tableElement;
+@end
+
+@interface DOMHTMLTableCellElement (WebCoreInternal)
++ (DOMHTMLTableCellElement *)_tableCellElementWith:(WebCore::HTMLTableCellElement *)impl;
+- (WebCore::HTMLTableCellElement *)_tableCellElement;
+@end
+
+@interface DOMHTMLImageElement (WebCoreInternal)
+- (WebCore::HTMLImageElement *)_HTMLImageElement;
+@end
+
+@interface DOMHTMLObjectElement (WebCoreInternal)
+- (WebCore::HTMLObjectElement *)_objectElement;
+@end
+
+@interface DOMHTMLInputElement (WebCoreInternal)
+- (WebCore::HTMLInputElement *)_HTMLInputElement;
+@end
# special cases
if ($parent eq "EventTargetNode") {
$parent = "Node";
+ } elsif ($parent eq "HTMLCollection") {
+ $parent = "Object";
}
return $parent;
$implIncludes{"DOMImplementationFront.h"} = 1;
}
+
+ # Add type specific internal types.
+ $implIncludes{"DOMHTMLInternal.h"} = 1 if ($type =~ /^HTML/);
+
# Default, include the same named file (the implementation) and the same name prefixed with "DOM".
$implIncludes{"$type.h"} = 1;
$implIncludes{"DOM$type.h"} = 1;
AddForwardDeclarationsForType($attribute->signature->type);
my $attributeName = $attribute->signature->name;
+ if ($attributeName eq "id") {
+ # Special case attribute id to be idName to avoid Obj-C nameing conflict.
+ $attributeName .= "Name";
+ } elsif ($attributeName eq "frame") {
+ # Special case attribute frame to be frameBorders.
+ $attributeName .= "Borders";
+ }
+
my $attributeType = GetObjCType($attribute->signature->type);
my $attributeIsReadonly = ($attribute->type =~ /^readonly/);
my $catagory = $attribute->signature->extendedAttributes->{"ObjCCatagory"};
my $attributeType = GetObjCType($attribute->signature->type);
my $attributeIsReadonly = ($attribute->type =~ /^readonly/);
+ my $interfaceName = $attributeName;
+ if ($attributeName eq "id") {
+ # Special case attribute id to be idName to avoid Obj-C nameing conflict.
+ $interfaceName .= "Name";
+ } elsif ($attributeName eq "frame") {
+ # Special case attribute frame to be frameBorders.
+ $interfaceName .= "Borders";
+ }
+
# - GETTER
- my $getterSig = "- ($attributeType)$attributeName\n";
+ my $getterSig = "- ($attributeType)$interfaceName\n";
# Exception handling
my $hasGetterException = @{$attribute->getterExceptions};
my $attributeTypeSansPtr = $attributeType;
$attributeTypeSansPtr =~ s/ \*$//; # Remove trailing " *" from pointer types.
my $typeMaker = GetObjCTypeMaker($attribute->signature->type);
+
+ # Special cases
if ($attributeTypeSansPtr eq "DOMImplementation") {
# FIXME: We have to special case DOMImplementation until DOMImplementationFront is removed
$getterContentHead = "[$attributeTypeSansPtr $typeMaker:implementationFront($implementation";
$getterContentTail .= "]";
+ } elsif ($attributeName =~ /(\w+)DisplayString$/) {
+ my $attributeToDisplay = $1;
+ $getterContentHead = "$implementation->$attributeToDisplay().replace(\'\\\\\', [self _element]->document()->backslashAsCurrencySymbol()";
+ $implIncludes{"Document.h"} = 1;
} elsif ($typeMaker ne "") {
# Surround getter with TypeMaker
$getterContentHead = "[$attributeTypeSansPtr $typeMaker:" . $getterContentHead;
}
if ($attribute->signature->extendedAttributes->{"UsesPassRefPtr"}) {
- $getterContentTail = ").get(" . $functionContentTail;
+ $getterContentTail = ").get(" . $getterContentTail;
}
my $getterContent;
# Exception handling
my $hasSetterException = @{$attribute->setterExceptions};
- my $setterName = "set" . ucfirst($attributeName);
- my $setterSig = "- (void)$setterName:($attributeType)$attributeName\n";
+ $attributeName = "set" . ucfirst($attributeName);
+ my $setterName = "set" . ucfirst($interfaceName);
+
+ my $setterSig = "- (void)$setterName:($attributeType)$interfaceName\n";
push(@implContent, $setterSig);
push(@implContent, "{\n");
if ($hasSetterException) {
# FIXME: asserts exsist in the exsisting bindings, but I am unsure why they are
# there in the first place;
- push(@implContent, " ASSERT($attributeName);\n\n");
+ push(@implContent, " ASSERT($interfaceName);\n\n");
push(@implContent, " $exceptionInit\n");
- push(@implContent, " $implementation->$setterName($attributeName, ec);\n");
+ push(@implContent, " $implementation->$attributeName($interfaceName, ec);\n");
push(@implContent, " $exceptionRaiseOnError\n");
} else {
- push(@implContent, " $implementation->$setterName($attributeName);\n");
+ push(@implContent, " $implementation->$attributeName($interfaceName);\n");
}
push(@implContent, "}\n\n");
/*
* Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
void focus();
// IE Extensions
- readonly attribute DOMString hash;
- readonly attribute DOMString host;
- readonly attribute DOMString hostname;
- readonly attribute DOMString pathname;
- readonly attribute DOMString port;
- readonly attribute DOMString protocol;
- readonly attribute DOMString search;
- readonly attribute DOMString text;
+ readonly attribute [Exclude=ObjC] DOMString hash;
+ readonly attribute [Exclude=ObjC] DOMString host;
+ readonly attribute [Exclude=ObjC] DOMString hostname;
+ readonly attribute [Exclude=ObjC] DOMString pathname;
+ readonly attribute [Exclude=ObjC] DOMString port;
+ readonly attribute [Exclude=ObjC] DOMString protocol;
+ readonly attribute [Exclude=ObjC] DOMString search;
+ readonly attribute [Exclude=ObjC] DOMString text;
};
}
/*
* Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
attribute DOMString target;
// IE Extensions
- readonly attribute DOMString hash;
- readonly attribute DOMString host;
- readonly attribute DOMString hostname;
- readonly attribute DOMString pathname;
- readonly attribute DOMString port;
- readonly attribute DOMString protocol;
- readonly attribute DOMString search;
+ readonly attribute [Exclude=ObjC] DOMString hash;
+ readonly attribute [Exclude=ObjC] DOMString host;
+ readonly attribute [Exclude=ObjC] DOMString hostname;
+ readonly attribute [Exclude=ObjC] DOMString pathname;
+ readonly attribute [Exclude=ObjC] DOMString port;
+ readonly attribute [Exclude=ObjC] DOMString protocol;
+ readonly attribute [Exclude=ObjC] DOMString search;
};
}
interface [LegacyParent=KJS::JSHTMLElement] HTMLBaseFontElement : HTMLElement {
attribute DOMString color;
attribute DOMString face;
- attribute long size;
+ attribute long size;
};
}
/*
* Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
attribute DOMString vLink;
// IE Extensions
- attribute long scrollLeft;
- attribute long scrollTop;
- readonly attribute long scrollWidth;
- readonly attribute long scrollHeight;
+ attribute [Exclude=ObjC] long scrollLeft;
+ attribute [Exclude=ObjC] long scrollTop;
+ readonly attribute [Exclude=ObjC] long scrollWidth;
+ readonly attribute [Exclude=ObjC] long scrollHeight;
};
}
/*
* Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
readonly attribute DOMString type;
attribute DOMString value;
- void click();
+ [Exclude=ObjC] void click();
};
--- /dev/null
+/*
+ * Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+module html {
+
+ interface HTMLCollection {
+ readonly attribute unsigned long length;
+ Node item(in unsigned long index);
+ Node namedItem(in DOMString name);
+ };
+
+}
/*
* Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
module html {
interface [LegacyParent=KJS::JSHTMLDocument, GenerateConstructor] HTMLDocument : Document {
+
+ attribute [Exclude=JS] DOMString title;
+ readonly attribute [Exclude=JS] DOMString referrer;
+ readonly attribute [Exclude=JS] DOMString domain;
+ readonly attribute [Exclude=JS] DOMString URL;
+
+ // FIXME: the DOM spec does NOT have this attribute
+ // raising an exception.
+ attribute [Exclude=JS] HTMLElement body
+ setter raises (DOMException);
+
+ readonly attribute [UsesPassRefPtr, Exclude=JS] HTMLCollection images;
+ readonly attribute [UsesPassRefPtr, Exclude=JS] HTMLCollection applets;
+ readonly attribute [UsesPassRefPtr, Exclude=JS] HTMLCollection links;
+ readonly attribute [UsesPassRefPtr, Exclude=JS] HTMLCollection forms;
+ readonly attribute [UsesPassRefPtr, Exclude=JS] HTMLCollection anchors;
+
+ // FIXME: the DOM spec states that this attribute can
+ // raise an exception on setting.
+ attribute [Exclude=JS] DOMString cookie
+ /*setter raises (DOMException)*/;
+
+ [Exclude=JS] void open();
+ [Exclude=JS] void close();
+ [Exclude=JS] void write(in DOMString text);
+ [Exclude=JS] void writeln(in DOMString text);
+ [Exclude=JS] NodeList getElementsByName(in DOMString elementName);
+
+ // non-standard
+
+ [Exclude=JS] Element getElementById(in DOMString elementId);
+
};
}
/*
* Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
module html {
interface [GenerateConstructor] HTMLElement : Element {
+
attribute DOMString title;
+ attribute [Exclude=JS] DOMString id;
+ attribute [Exclude=JS] DOMString lang;
+ attribute [Exclude=JS] DOMString dir;
+ attribute [Exclude=JS] DOMString className;
+
+ // extensions
+
+ attribute [ObjCCatagory=DOMHTMLElementExtensions, Exclude=JS] DOMString innerHTML
+ setter raises (DOMException);
+ attribute [ObjCCatagory=DOMHTMLElementExtensions, Exclude=JS] DOMString innerText
+ setter raises (DOMException);
+ attribute [ObjCCatagory=DOMHTMLElementExtensions, Exclude=JS] DOMString outerHTML
+ setter raises (DOMException);
+ attribute [ObjCCatagory=DOMHTMLElementExtensions, Exclude=JS] DOMString outerText
+ setter raises (DOMException);
+
+ readonly attribute [UsesPassRefPtr, ObjCCatagory=DOMHTMLElementExtensions, Exclude=JS] HTMLCollection children;
+
+ attribute [ObjCCatagory=DOMHTMLElementExtensions, Exclude=JS] DOMString contentEditable;
+ readonly attribute [ObjCCatagory=DOMHTMLElementExtensions, Exclude=JS] boolean isContentEditable;
+
+ readonly attribute [ObjCCatagory=DOMHTMLElementExtensions, Exclude=JS] DOMString titleDisplayString;
+
};
}
/*
* Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
module html {
interface [LegacyParent=KJS::JSHTMLElement, HasIndexGetter, HasOverridingNameGetter] HTMLFormElement : HTMLElement {
- readonly attribute HTMLCollection elements;
+ readonly attribute [UsesPassRefPtr] HTMLCollection elements;
readonly attribute long length;
attribute DOMString name;
attribute DOMString acceptCharset;
--- /dev/null
+/*
+ * Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+module html {
+
+ interface HTMLFrameElement : HTMLElement {
+
+ attribute DOMString frameBorder;
+ attribute DOMString longDesc;
+ attribute DOMString marginHeight;
+ attribute DOMString marginWidth;
+ attribute DOMString name;
+ attribute boolean noResize;
+ attribute DOMString scrolling;
+ attribute DOMString src;
+ // Introduced in DOM Level 2:
+ readonly attribute Document contentDocument;
+
+ };
+
+}
--- /dev/null
+/*
+ * Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+module html {
+
+ interface HTMLFrameSetElement : HTMLElement {
+
+ attribute DOMString cols;
+ attribute DOMString rows;
+
+ };
+
+}
--- /dev/null
+/*
+ * Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+module html {
+
+ interface HTMLIFrameElement : HTMLElement {
+
+ attribute DOMString align;
+ attribute DOMString frameBorder;
+ attribute DOMString height;
+ attribute DOMString longDesc;
+ attribute DOMString marginHeight;
+ attribute DOMString marginWidth;
+ attribute DOMString name;
+ attribute DOMString scrolling;
+ attribute DOMString src;
+ attribute DOMString width;
+ // Introduced in DOM Level 2:
+ readonly attribute Document contentDocument;
+
+ };
+
+}
/*
* Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
attribute long width;
// Extensions
- readonly attribute boolean complete;
- readonly attribute long x;
- readonly attribute long y;
+ readonly attribute [Exclude=ObjC] boolean complete;
+ readonly attribute [Exclude=ObjC] long x;
+ readonly attribute [Exclude=ObjC] long y;
};
}
/*
* Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
void select();
void click();
- attribute boolean indeterminate; // WinIE extension
+ attribute [Exclude=ObjC] boolean indeterminate; // WinIE extension
// WinIE & FireFox extension:
/*
* Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
readonly attribute HTMLFormElement form;
attribute DOMString accessKey;
attribute DOMString htmlFor;
- void focus();
+
+ [Exclude=ObjC] void focus();
};
}
/*
* Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
readonly attribute HTMLFormElement form;
attribute DOMString accessKey;
attribute DOMString align;
- void focus();
+
+ [Exclude=ObjC] void focus();
};
}
/*
* Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
attribute DOMString type;
// DOM Level 2 Style
- readonly attribute StyleSheet sheet;
+ readonly attribute [Exclude=ObjC] StyleSheet sheet;
};
}
/*
* Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
module html {
interface [LegacyParent=KJS::JSHTMLElement] HTMLMapElement : HTMLElement {
- readonly attribute HTMLCollection areas;
+ readonly attribute [UsesPassRefPtr] HTMLCollection areas;
attribute DOMString name;
};
}
--- /dev/null
+/*
+ * Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+module html {
+
+ interface HTMLObjectElement : HTMLElement {
+
+ readonly attribute HTMLFormElement form;
+ attribute DOMString code;
+ attribute DOMString align;
+ attribute DOMString archive;
+ attribute DOMString border;
+ attribute DOMString codeBase;
+ attribute DOMString codeType;
+ attribute DOMString data;
+ attribute boolean declare;
+ attribute DOMString height;
+ attribute long hspace;
+ attribute DOMString name;
+ attribute DOMString standby;
+ attribute long tabIndex;
+ attribute DOMString type;
+ attribute DOMString useMap;
+ attribute long vspace;
+ attribute DOMString width;
+ // Introduced in DOM Level 2:
+ readonly attribute Document contentDocument;
+
+ };
+
+}
/*
* Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
module html {
+ // FIXME: the spec say that HTMLOptionsCollection should not have a parent class
+
interface [LegacyParent=KJS::JSHTMLCollection, HasCustomIndexSetter] HTMLOptionsCollection : HTMLCollection {
- attribute long selectedIndex;
- attribute [Custom] long length
+ attribute [Exclude=ObjC] long selectedIndex;
+ attribute [Custom] long length
setter raises (DOMException);
- void add(in HTMLOptionElement option, in [Optional] unsigned long index)
+ [Exclude=ObjC] void add(in HTMLOptionElement option, in [Optional] unsigned long index)
raises (DOMException);
+
+ [Exclude=JS] Node item(in unsigned long index);
+ [Exclude=JS] Node namedItem(in DOMString name);
+
};
}
/*
* Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
attribute long width;
// Extensions
- attribute boolean wrap;
+ attribute [Exclude=ObjC] boolean wrap;
};
}
--- /dev/null
+/*
+ * Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+module html {
+
+ interface HTMLSelectElement : HTMLElement {
+
+ readonly attribute DOMString type;
+ attribute long selectedIndex;
+ attribute DOMString value;
+
+ // Modified in DOM Level 2:
+ // FIXME: the version of this attribute according to the
+ // dom spec is commented out below it.
+ readonly attribute long length;
+ /* attribute unsigned long length
+ setter raises (DOMException); */
+
+ readonly attribute HTMLFormElement form;
+
+ // Modified in DOM Level 2:
+ readonly attribute [UsesPassRefPtr] HTMLOptionsCollection options;
+
+ attribute boolean disabled;
+ attribute boolean multiple;
+ attribute DOMString name;
+ attribute long size;
+ attribute long tabIndex;
+
+ void add(in HTMLElement element,
+ in HTMLElement before)
+ raises(DOMException);
+ void remove(in long index);
+ void blur();
+ void focus();
+
+ };
+
+}
/*
* Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
attribute DOMString type;
// DOM Level 2 Style
- readonly attribute StyleSheet sheet;
+ readonly attribute [Exclude=ObjC] StyleSheet sheet;
};
}
--- /dev/null
+/*
+ * Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+module html {
+
+ interface HTMLTableCaptionElement : HTMLElement {
+
+ attribute DOMString align;
+
+ };
+
+}
--- /dev/null
+/*
+ * Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+module html {
+
+ interface HTMLTableCellElement : HTMLElement {
+
+ readonly attribute long cellIndex;
+ attribute DOMString abbr;
+ attribute DOMString align;
+ attribute DOMString axis;
+ attribute DOMString bgColor;
+ attribute DOMString ch;
+ attribute DOMString chOff;
+ attribute long colSpan;
+ attribute DOMString headers;
+ attribute DOMString height;
+ attribute boolean noWrap;
+ attribute long rowSpan;
+ attribute DOMString scope;
+ attribute DOMString vAlign;
+ attribute DOMString width;
+
+ };
+
+}
--- /dev/null
+/*
+ * Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+module html {
+
+ interface HTMLTableColElement : HTMLElement {
+
+ attribute DOMString align;
+ attribute DOMString ch;
+ attribute DOMString chOff;
+ attribute long span;
+ attribute DOMString vAlign;
+ attribute DOMString width;
+
+ };
+
+}
--- /dev/null
+/*
+ * Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+module html {
+
+ interface HTMLTableElement : HTMLElement {
+
+ // FIXME: the dom spec states that the following 3 attributes
+ // could raise excepetions on setting.
+ attribute HTMLTableCaptionElement caption
+ /*setter raises (DOMException)*/;
+ attribute HTMLTableSectionElement tHead
+ /*setter raises (DOMException)*/;
+ attribute HTMLTableSectionElement tFoot
+ /*setter raises (DOMException)*/;
+
+ readonly attribute [UsesPassRefPtr] HTMLCollection rows;
+ readonly attribute [UsesPassRefPtr] HTMLCollection tBodies;
+ attribute DOMString align;
+ attribute DOMString bgColor;
+ attribute DOMString border;
+ attribute DOMString cellPadding;
+ attribute DOMString cellSpacing;
+
+ // FIXME: the obj-c attribute is called frameBorders
+ attribute DOMString frame;
+
+ attribute DOMString rules;
+ attribute DOMString summary;
+ attribute DOMString width;
+
+ HTMLElement createTHead();
+ void deleteTHead();
+ HTMLElement createTFoot();
+ void deleteTFoot();
+ HTMLElement createCaption();
+ void deleteCaption();
+
+ HTMLElement insertRow(in long index)
+ raises (DOMException);
+
+ void deleteRow(in long index)
+ raises (DOMException);
+
+ };
+
+}
--- /dev/null
+/*
+ * Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+module html {
+
+ interface HTMLTableRowElement : HTMLElement {
+
+ readonly attribute long rowIndex;
+ readonly attribute long sectionRowIndex;
+ readonly attribute [UsesPassRefPtr] HTMLCollection cells;
+ attribute DOMString align;
+ attribute DOMString bgColor;
+ attribute DOMString ch;
+ attribute DOMString chOff;
+ attribute DOMString vAlign;
+
+ HTMLElement insertCell(in long index)
+ raises(DOMException);
+ void deleteCell(in long index)
+ raises(DOMException);
+
+ };
+
+}
--- /dev/null
+/*
+ * Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+module html {
+
+ interface HTMLTableSectionElement : HTMLElement {
+
+ attribute DOMString align;
+ attribute DOMString ch;
+ attribute DOMString chOff;
+ attribute DOMString vAlign;
+ readonly attribute [UsesPassRefPtr] HTMLCollection rows;
+
+ HTMLElement insertRow(in long index)
+ raises(DOMException);
+ void deleteRow(in long index)
+ raises(DOMException);
+
+ };
+
+}
/*
* Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
void select();
// WinIE & FireFox extension:
- attribute long selectionStart;
- attribute long selectionEnd;
- void setSelectionRange(in long start, in long end);
+ attribute [Exclude=ObjC] long selectionStart;
+ attribute [Exclude=ObjC] long selectionEnd;
+ [Exclude=ObjC] void setSelectionRange(in long start, in long end);
};
}
+2006-08-29 Sam Weinig <sam.weinig@gmail.com>
+
+ Reviewed by Tim H.
+
+ - patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10628
+ Auto-generate the remaining Objective-C DOM bindings
+
+ Auto-generates DOMHTMLCollection, DOMHTMLElement, DOMHTMLFormElement,
+ and DOMHTMLOptionsCollection.
+
+ * WebKit.xcodeproj/project.pbxproj:
+
2006-08-28 Brady Eidson <beidson@apple.com>
Reviewed by Darin
93AF52A508254D87005D0156 /* DOMEvents.h */,
93AF52A308254D81005D0156 /* DOMExtensions.h */,
93AF52A108254D7D005D0156 /* DOMHTML.h */,
+ 850E67DA0A951B4000EFB73A /* DOMHTMLCollection.h */,
+ 856E065F0A93985900A24739 /* DOMHTMLElement.h */,
+ 85DF2EA90AA3824700AD64C5 /* DOMHTMLFormElement.h */,
+ 850E67E00A951B7C00EFB73A /* DOMHTMLOptionsCollection.h */,
93AF529F08254D7A005D0156 /* DOMPrivate.h */,
93AF529D08254D76005D0156 /* DOMRange.h */,
93AF529B08254D62005D0156 /* DOMStylesheets.h */,
shellPath = /bin/sh;
shellScript = "mkdir -p \"$TARGET_BUILD_DIR/$PUBLIC_HEADERS_FOLDER_PATH\"\nsed -e s/WebCore/WebKit/ \"$WEBCORE_PRIVATE_HEADERS_DIR/DOMXPath.h\" > \"$TARGET_BUILD_DIR/$PUBLIC_HEADERS_FOLDER_PATH/DOMXPath.h\"";
};
+ 850E67DA0A951B4000EFB73A /* DOMHTMLCollection.h */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ "$(WEBCORE_PRIVATE_HEADERS_DIR)/DOMHTMLCollection.h",
+ );
+ name = DOMHTMLCollection.h;
+ outputPaths = (
+ "$(TARGET_BUILD_DIR)/$(PUBLIC_HEADERS_FOLDER_PATH)/DOMHTMLCollection.h",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "mkdir -p \"$TARGET_BUILD_DIR/$PUBLIC_HEADERS_FOLDER_PATH\"\nsed -e s/WebCore/WebKit/ \"$WEBCORE_PRIVATE_HEADERS_DIR/DOMHTMLCollection.h\" > \"$TARGET_BUILD_DIR/$PUBLIC_HEADERS_FOLDER_PATH/DOMHTMLCollection.h\"";
+ };
+ 850E67E00A951B7C00EFB73A /* DOMHTMLOptionsCollection.h */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ "$(WEBCORE_PRIVATE_HEADERS_DIR)/DOMHTMLOptionsCollection.h",
+ );
+ name = DOMHTMLOptionsCollection.h;
+ outputPaths = (
+ "$(TARGET_BUILD_DIR)/$(PUBLIC_HEADERS_FOLDER_PATH)/DOMHTMLOptionsCollection.h",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "mkdir -p \"$TARGET_BUILD_DIR/$PUBLIC_HEADERS_FOLDER_PATH\"\nsed -e s/WebCore/WebKit/ \"$WEBCORE_PRIVATE_HEADERS_DIR/DOMHTMLOptionsCollection.h\" > \"$TARGET_BUILD_DIR/$PUBLIC_HEADERS_FOLDER_PATH/DOMHTMLOptionsCollection.h\"";
+ };
8526D6410A8FDB84009234B1 /* DOMText.h */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
shellPath = /bin/sh;
shellScript = "mkdir -p \"$TARGET_BUILD_DIR/$PUBLIC_HEADERS_FOLDER_PATH\"\nsed -e s/WebCore/WebKit/ \"$WEBCORE_PRIVATE_HEADERS_DIR/DOMObject.h\" > \"$TARGET_BUILD_DIR/$PUBLIC_HEADERS_FOLDER_PATH/DOMObject.h\"";
};
+ 856E065F0A93985900A24739 /* DOMHTMLElement.h */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ "$(WEBCORE_PRIVATE_HEADERS_DIR)/DOMHTMLElement.h",
+ );
+ name = DOMHTMLElement.h;
+ outputPaths = (
+ "$(TARGET_BUILD_DIR)/$(PUBLIC_HEADERS_FOLDER_PATH)/DOMHTMLElement.h",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "mkdir -p \"$TARGET_BUILD_DIR/$PUBLIC_HEADERS_FOLDER_PATH\"\nsed -e s/WebCore/WebKit/ \"$WEBCORE_PRIVATE_HEADERS_DIR/DOMHTMLElement.h\" > \"$TARGET_BUILD_DIR/$PUBLIC_HEADERS_FOLDER_PATH/DOMHTMLElement.h\"";
+ };
85A5C5E10A9032B300F91F2C /* DOMElement.h */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
shellPath = /bin/sh;
shellScript = "mkdir -p \"$TARGET_BUILD_DIR/$PUBLIC_HEADERS_FOLDER_PATH\"\nsed -e s/WebCore/WebKit/ \"$WEBCORE_PRIVATE_HEADERS_DIR/DOMDocumentFragment.h\" > \"$TARGET_BUILD_DIR/$PUBLIC_HEADERS_FOLDER_PATH/DOMDocumentFragment.h\"";
};
+ 85DF2EA90AA3824700AD64C5 /* DOMHTMLFormElement.h */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ "$(WEBCORE_PRIVATE_HEADERS_DIR)/DOMHTMLFormElement.h",
+ );
+ name = DOMHTMLFormElement.h;
+ outputPaths = (
+ "$(TARGET_BUILD_DIR)/$(PUBLIC_HEADERS_FOLDER_PATH)/DOMHTMLFormElement.h",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "mkdir -p \"$TARGET_BUILD_DIR/$PUBLIC_HEADERS_FOLDER_PATH\"\nsed -e s/WebCore/WebKit/ \"$WEBCORE_PRIVATE_HEADERS_DIR/DOMHTMLFormElement.h\" > \"$TARGET_BUILD_DIR/$PUBLIC_HEADERS_FOLDER_PATH/DOMHTMLFormElement.h\"";
+ };
9339323E0825A64200AADA6B /* npruntime.h */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;