[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

darin darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 08:37:33 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit f34aa17d1c90a8183c03d4598e86d60b1b25d49f
Author: darin <darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Apr 28 18:12:01 2004 +0000

            Reviewed by Chris.
    
            - fixed reinterpret_cast mistakes and some style issues in DOM implementation
    
            * kwq/DOM-CSS.mm:
            (-[DOMCSSStyleRule _styleRuleImpl]): Fix broken reinterpret_cast; you must reinterpret_cast back
            to the class you reinterpret_casted from, not to a derived class.
            (-[DOMCSSMediaRule _mediaRuleImpl]): Ditto.
            (-[DOMCSSFontFaceRule _fontFaceRuleImpl]): Ditto.
            (-[DOMCSSPageRule _pageRuleImpl]): Ditto.
            (-[DOMCSSImportRule _importRuleImpl]): Ditto.
            (-[DOMCSSCharsetRule _importRuleImpl]): Ditto.
            * kwq/DOMHTML.mm:
            (-[DOMHTMLOptionsCollection length]): Put in an "unimplemented" version instead of leaving out
            the class implementation altogether.
            (-[DOMHTMLOptionsCollection setLength:]): Ditto.
            (-[DOMHTMLOptionsCollection item:]): Ditto.
            (-[DOMHTMLOptionsCollection namedItem:]): Ditto.
            (+[DOMHTMLElement _elementWithImpl:]): Corrected this implementation. The wrapper must use a
            standard node wrapper, since this is a subclass of DOMNode. Also moved into a separate category
            so it gets checked against the declarations above.
            (-[DOMHTMLElement _HTMLElementImpl]): Fix broken reinterpret_cast.
            (-[DOMHTMLHtmlElement _HTMLHtmlElementImpl]): Ditto.
            (-[DOMHTMLHeadElement _headElementImpl]): Ditto.
            (-[DOMHTMLLinkElement _linkElementImpl]): Ditto.
            (-[DOMHTMLTitleElement _titleElementImpl]): Ditto.
            (-[DOMHTMLMetaElement _metaElementImpl]): Ditto.
            (-[DOMHTMLBaseElement _baseElementImpl]): Ditto.
            (-[DOMHTMLStyleElement _styleElementImpl]): Ditto.
            (-[DOMHTMLBodyElement _bodyElementImpl]): Ditto.
            (-[DOMHTMLFormElement _formElementImpl]): Ditto.
            (+[DOMHTMLFormElement _formElementWithImpl:]): Another DOMNode subclass wrapper fix.
            (-[DOMHTMLIsIndexElement _isIndexElementImpl]): Fix broken reinterpret_cast.
            (-[DOMHTMLSelectElement _selectElementImpl]): Ditto.
            (-[DOMHTMLOptGroupElement _optGroupElementImpl]): Ditto.
            (-[DOMHTMLOptionElement _optionElementImpl]): Ditto.
            (-[DOMHTMLInputElement _inputElementImpl]): Ditto.
            (-[DOMHTMLTextAreaElement _textAreaElementImpl]): Ditto.
            (-[DOMHTMLButtonElement _buttonElementImpl]): Ditto.
            (-[DOMHTMLLabelElement _labelElementImpl]): Ditto.
            (-[DOMHTMLFieldSetElement _fieldSetElementImpl]): Ditto.
            (-[DOMHTMLLegendElement _legendElementImpl]): Ditto.
            (-[DOMHTMLUListElement _uListElementImpl]): Ditto.
            (-[DOMHTMLOListElement _oListElementImpl]): Ditto.
            (-[DOMHTMLDListElement _dListElementImpl]): Ditto.
            (-[DOMHTMLDirectoryElement _directoryListElementImpl]): Ditto.
            (-[DOMHTMLMenuElement _menuListElementImpl]): Ditto.
            (-[DOMHTMLLIElement _liElementImpl]): Ditto.
            (-[DOMHTMLQuoteElement _quoteElementImpl]): Ditto.
            (-[DOMHTMLDivElement _divElementImpl]): Ditto.
            (-[DOMHTMLParagraphElement _paragraphElementImpl]): Ditto.
            (-[DOMHTMLHeadingElement _headingElementImpl]): Ditto.
            (-[DOMHTMLPreElement _preElementImpl]): Ditto.
            (-[DOMHTMLBRElement _BRElementImpl]): Ditto.
            (-[DOMHTMLBaseFontElement _baseFontElementImpl]): Ditto.
            (-[DOMHTMLFontElement _fontElementImpl]): Ditto.
            (-[DOMHTMLHRElement _HRElementImpl]): Ditto.
            (-[DOMHTMLModElement _modElementImpl]): Ditto.
            (-[DOMHTMLAnchorElement _anchorElementImpl]): Ditto.
            (-[DOMHTMLImageElement _imageElementImpl]): Ditto.
            (-[DOMHTMLObjectElement _objectElementImpl]): Ditto.
            (-[DOMHTMLParamElement _paramElementImpl]): Ditto.
            (-[DOMHTMLAppletElement _appletElementImpl]): Ditto.
            (-[DOMHTMLMapElement _mapElementImpl]): Ditto.
            (-[DOMHTMLAreaElement _areaElementImpl]): Ditto.
            (-[DOMHTMLScriptElement _scriptElementImpl]): Ditto.
            (+[DOMHTMLTableCaptionElement _tableCaptionElementWithImpl:]): Another DOMNode subclass wrapper fix.
            (-[DOMHTMLTableCaptionElement _tableCaptionElementImpl]): Fix broken reinterpret_cast.
            (+[DOMHTMLTableSectionElement _tableSectionElementWithImpl:]): Another DOMNode subclass wrapper fix.
            (-[DOMHTMLTableSectionElement _tableSectionElementImpl]): Fix broken reinterpret_cast.
            (+[DOMHTMLTableElement _tableElementWithImpl:]): Another DOMNode subclass wrapper fix.
            (-[DOMHTMLTableElement _tableElementImpl]): Fix broken reinterpret_cast.
            (-[DOMHTMLTableColElement _tableColElementImpl]): Ditto.
            (-[DOMHTMLTableRowElement _tableRowElementImpl]): Ditto.
            (+[DOMHTMLTableCellElement _tableCellElementWithImpl:]): Another DOMNode subclass wrapper fix.
            (-[DOMHTMLTableCellElement _tableCellElementImpl]): Fix broken reinterpret_cast.
            (-[DOMHTMLFrameSetElement _frameSetElementImpl]): Ditto.
            (-[DOMHTMLFrameElement _frameElementImpl]): Ditto.
            (-[DOMHTMLIFrameElement _IFrameElementImpl]): Ditto.
            (-[DOMHTMLEmbedElement _embedElementImpl]): Ditto.
    
            * kwq/HTMLDOM.mm: Removed.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6503 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index b9630e1..9303d60 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,3 +1,88 @@
+2004-04-28  Darin Adler  <darin at apple.com>
+
+        Reviewed by Chris.
+
+        - fixed reinterpret_cast mistakes and some style issues in DOM implementation
+
+        * kwq/DOM-CSS.mm:
+        (-[DOMCSSStyleRule _styleRuleImpl]): Fix broken reinterpret_cast; you must reinterpret_cast back
+        to the class you reinterpret_casted from, not to a derived class.
+        (-[DOMCSSMediaRule _mediaRuleImpl]): Ditto.
+        (-[DOMCSSFontFaceRule _fontFaceRuleImpl]): Ditto.
+        (-[DOMCSSPageRule _pageRuleImpl]): Ditto.
+        (-[DOMCSSImportRule _importRuleImpl]): Ditto.
+        (-[DOMCSSCharsetRule _importRuleImpl]): Ditto.
+        * kwq/DOMHTML.mm:
+        (-[DOMHTMLOptionsCollection length]): Put in an "unimplemented" version instead of leaving out
+        the class implementation altogether.
+        (-[DOMHTMLOptionsCollection setLength:]): Ditto.
+        (-[DOMHTMLOptionsCollection item:]): Ditto.
+        (-[DOMHTMLOptionsCollection namedItem:]): Ditto.
+        (+[DOMHTMLElement _elementWithImpl:]): Corrected this implementation. The wrapper must use a
+        standard node wrapper, since this is a subclass of DOMNode. Also moved into a separate category
+        so it gets checked against the declarations above.
+        (-[DOMHTMLElement _HTMLElementImpl]): Fix broken reinterpret_cast.
+        (-[DOMHTMLHtmlElement _HTMLHtmlElementImpl]): Ditto.
+        (-[DOMHTMLHeadElement _headElementImpl]): Ditto.
+        (-[DOMHTMLLinkElement _linkElementImpl]): Ditto.
+        (-[DOMHTMLTitleElement _titleElementImpl]): Ditto.
+        (-[DOMHTMLMetaElement _metaElementImpl]): Ditto.
+        (-[DOMHTMLBaseElement _baseElementImpl]): Ditto.
+        (-[DOMHTMLStyleElement _styleElementImpl]): Ditto.
+        (-[DOMHTMLBodyElement _bodyElementImpl]): Ditto.
+        (-[DOMHTMLFormElement _formElementImpl]): Ditto.
+        (+[DOMHTMLFormElement _formElementWithImpl:]): Another DOMNode subclass wrapper fix.
+        (-[DOMHTMLIsIndexElement _isIndexElementImpl]): Fix broken reinterpret_cast.
+        (-[DOMHTMLSelectElement _selectElementImpl]): Ditto.
+        (-[DOMHTMLOptGroupElement _optGroupElementImpl]): Ditto.
+        (-[DOMHTMLOptionElement _optionElementImpl]): Ditto.
+        (-[DOMHTMLInputElement _inputElementImpl]): Ditto.
+        (-[DOMHTMLTextAreaElement _textAreaElementImpl]): Ditto.
+        (-[DOMHTMLButtonElement _buttonElementImpl]): Ditto.
+        (-[DOMHTMLLabelElement _labelElementImpl]): Ditto.
+        (-[DOMHTMLFieldSetElement _fieldSetElementImpl]): Ditto.
+        (-[DOMHTMLLegendElement _legendElementImpl]): Ditto.
+        (-[DOMHTMLUListElement _uListElementImpl]): Ditto.
+        (-[DOMHTMLOListElement _oListElementImpl]): Ditto.
+        (-[DOMHTMLDListElement _dListElementImpl]): Ditto.
+        (-[DOMHTMLDirectoryElement _directoryListElementImpl]): Ditto.
+        (-[DOMHTMLMenuElement _menuListElementImpl]): Ditto.
+        (-[DOMHTMLLIElement _liElementImpl]): Ditto.
+        (-[DOMHTMLQuoteElement _quoteElementImpl]): Ditto.
+        (-[DOMHTMLDivElement _divElementImpl]): Ditto.
+        (-[DOMHTMLParagraphElement _paragraphElementImpl]): Ditto.
+        (-[DOMHTMLHeadingElement _headingElementImpl]): Ditto.
+        (-[DOMHTMLPreElement _preElementImpl]): Ditto.
+        (-[DOMHTMLBRElement _BRElementImpl]): Ditto.
+        (-[DOMHTMLBaseFontElement _baseFontElementImpl]): Ditto.
+        (-[DOMHTMLFontElement _fontElementImpl]): Ditto.
+        (-[DOMHTMLHRElement _HRElementImpl]): Ditto.
+        (-[DOMHTMLModElement _modElementImpl]): Ditto.
+        (-[DOMHTMLAnchorElement _anchorElementImpl]): Ditto.
+        (-[DOMHTMLImageElement _imageElementImpl]): Ditto.
+        (-[DOMHTMLObjectElement _objectElementImpl]): Ditto.
+        (-[DOMHTMLParamElement _paramElementImpl]): Ditto.
+        (-[DOMHTMLAppletElement _appletElementImpl]): Ditto.
+        (-[DOMHTMLMapElement _mapElementImpl]): Ditto.
+        (-[DOMHTMLAreaElement _areaElementImpl]): Ditto.
+        (-[DOMHTMLScriptElement _scriptElementImpl]): Ditto.
+        (+[DOMHTMLTableCaptionElement _tableCaptionElementWithImpl:]): Another DOMNode subclass wrapper fix.
+        (-[DOMHTMLTableCaptionElement _tableCaptionElementImpl]): Fix broken reinterpret_cast.
+        (+[DOMHTMLTableSectionElement _tableSectionElementWithImpl:]): Another DOMNode subclass wrapper fix.
+        (-[DOMHTMLTableSectionElement _tableSectionElementImpl]): Fix broken reinterpret_cast.
+        (+[DOMHTMLTableElement _tableElementWithImpl:]): Another DOMNode subclass wrapper fix.
+        (-[DOMHTMLTableElement _tableElementImpl]): Fix broken reinterpret_cast.
+        (-[DOMHTMLTableColElement _tableColElementImpl]): Ditto.
+        (-[DOMHTMLTableRowElement _tableRowElementImpl]): Ditto.
+        (+[DOMHTMLTableCellElement _tableCellElementWithImpl:]): Another DOMNode subclass wrapper fix.
+        (-[DOMHTMLTableCellElement _tableCellElementImpl]): Fix broken reinterpret_cast.
+        (-[DOMHTMLFrameSetElement _frameSetElementImpl]): Ditto.
+        (-[DOMHTMLFrameElement _frameElementImpl]): Ditto.
+        (-[DOMHTMLIFrameElement _IFrameElementImpl]): Ditto.
+        (-[DOMHTMLEmbedElement _embedElementImpl]): Ditto.
+
+        * kwq/HTMLDOM.mm: Removed.
+
 2004-04-28  Ken Kocienda  <kocienda at apple.com>
 
         Reviewed by Darin
@@ -853,7 +938,7 @@
         * khtml/xml/dom_nodeimpl.cpp:
         (NodeImpl::recursive_toHTMLWithOptions): indent tweak
         * kwq/DOMHTML.mm:
-        (-[DOMHTMLLinkElement _linkElementImpl]): C++ casting voodoo to make methods like rel and href work correctly
+        (-[DOMHTMLLinkElement _linkElementImpl]): C+casting voodoo to make methods like rel and href work correctly
 
 2004-04-16  Ken Kocienda  <kocienda at apple.com>
 
@@ -3829,7 +3914,7 @@
         3) Make DOMObject refuse to init, which might prevent
         problems where people get confused and think they can
         subclass or instantiate it or its subclasses.
-        4) Use some C++ mojo to replace NSStringToDOMString and
+        4) Use some C+mojo to replace NSStringToDOMString and
         DOMStringToNSString with type conversions built into the
         DOMString class.
         5) Removed NSError out parameters from the API. Methods
@@ -5248,10 +5333,10 @@
         - fixed some layout regressions from my last speedup due to text measurement inconsistencies
 
         * WebCorePrefix.h: Add a workaround for a bug in our system headers that prevents the <ctype.h>
-        macros from working right in C++ code that uses the <cctype> header.
+        macros from working right in C+code that uses the <cctype> header.
 
         * khtml/css/cssstyleselector.cpp:
-        (khtml::checkPseudoState): Use prepend instead of operator + here. Will probably be obviated if
+        (khtml::checkPseudoState): Use prepend instead of operator here. Will probably be obviated if
         someone fixes the checkPseudoState problem.
         (khtml::colorForCSSValue): Get rid of all the code that uses QPalette; it wasn't doing any good
         in Safari. Instead, hardcode the UI colors.
@@ -5530,7 +5615,7 @@
 	a text editor failed for reasons which could not have been
 	figured out ahead of time...like file permissions?).
 	If this does not work for the future, perhaps we can change 
-	some or all of the many asserts in the code to throw C++ 
+	some or all of the many asserts in the code to throw C+
 	exceptions instead, which can be caught and handled at a
 	suitable level.
 
@@ -8873,7 +8958,7 @@
         (DocumentImpl::createElementNS): Add exception code parameter. Propagate the exception
         codes that we get from createHTMLElement and setPrefix.
         (DocumentImpl::createHTMLElement): Add exception code parameter. Use an exception code
-        rather than a C++ exception for INVALID_CHARACTER_ERR.
+        rather than a C+exception for INVALID_CHARACTER_ERR.
 
         * khtml/xml/dom_elementimpl.cpp: (ElementImpl::cloneNode): Pass exception code parameter to
         createElement.
@@ -13029,7 +13114,7 @@ Added support for getting at Java object fields.
 
 	Improved exception blocking in the following ways:
 
-	- use C++ constructors and destructors so returning or breaking out of an exception block works
+	- use C+constructors and destructors so returning or breaking out of an exception block works
 	- Remove use of volatile
 	- Collapse the caught exception case into a single function call to reduce code size.
 
diff --git a/WebCore/kwq/DOM-CSS.mm b/WebCore/kwq/DOM-CSS.mm
index 40af954..56cc2e9 100644
--- a/WebCore/kwq/DOM-CSS.mm
+++ b/WebCore/kwq/DOM-CSS.mm
@@ -537,7 +537,7 @@ static inline int getPropertyID(NSString *string)
 
 - (CSSStyleRuleImpl *)_styleRuleImpl
 {
-    return reinterpret_cast<CSSStyleRuleImpl *>(_internal);
+    return static_cast<CSSStyleRuleImpl *>(reinterpret_cast<CSSRuleImpl *>(_internal));
 }
 
 - (NSString *)selectorText
@@ -564,7 +564,7 @@ static inline int getPropertyID(NSString *string)
 
 - (CSSMediaRuleImpl *)_mediaRuleImpl
 {
-    return reinterpret_cast<CSSMediaRuleImpl *>(_internal);
+    return static_cast<CSSMediaRuleImpl *>(reinterpret_cast<CSSRuleImpl *>(_internal));
 }
 
 - (DOMMediaList *)media
@@ -596,7 +596,7 @@ static inline int getPropertyID(NSString *string)
 
 - (CSSFontFaceRuleImpl *)_fontFaceRuleImpl
 {
-    return reinterpret_cast<CSSFontFaceRuleImpl *>(_internal);
+    return static_cast<CSSFontFaceRuleImpl *>(reinterpret_cast<CSSRuleImpl *>(_internal));
 }
 
 - (DOMCSSStyleDeclaration *)style
@@ -613,7 +613,7 @@ static inline int getPropertyID(NSString *string)
 
 - (CSSPageRuleImpl *)_pageRuleImpl
 {
-    return reinterpret_cast<CSSPageRuleImpl *>(_internal);
+    return static_cast<CSSPageRuleImpl *>(reinterpret_cast<CSSRuleImpl *>(_internal));
 }
 
 - (NSString *)selectorText
@@ -640,7 +640,7 @@ static inline int getPropertyID(NSString *string)
 
 - (CSSImportRuleImpl *)_importRuleImpl
 {
-    return reinterpret_cast<CSSImportRuleImpl *>(_internal);
+    return static_cast<CSSImportRuleImpl *>(reinterpret_cast<CSSRuleImpl *>(_internal));
 }
 
 - (DOMMediaList *)media
@@ -667,7 +667,7 @@ static inline int getPropertyID(NSString *string)
 
 - (CSSCharsetRuleImpl *)_importRuleImpl
 {
-    return reinterpret_cast<CSSCharsetRuleImpl *>(_internal);
+    return static_cast<CSSCharsetRuleImpl *>(reinterpret_cast<CSSRuleImpl *>(_internal));
 }
 
 - (NSString *)encoding
diff --git a/WebCore/kwq/DOMHTML.mm b/WebCore/kwq/DOMHTML.mm
index 3b870a4..0aa989b 100644
--- a/WebCore/kwq/DOMHTML.mm
+++ b/WebCore/kwq/DOMHTML.mm
@@ -112,23 +112,23 @@ using DOM::HTMLUListElementImpl;
 using DOM::NameNodeListImpl;
 using DOM::NodeImpl;
 
- at interface DOMHTMLCollection (HTMLCollectionInternal)
+ at interface DOMHTMLCollection (WebCoreInternal)
 + (DOMHTMLCollection *)_collectionWithImpl:(HTMLCollectionImpl *)impl;
- at end;
+ at end
 
- at interface DOMHTMLElement (HTMLElementInternal)
+ at interface DOMHTMLElement (WebCoreInternal)
 + (DOMHTMLElement *)_elementWithImpl:(HTMLElementImpl *)impl;
 - (HTMLElementImpl *)_HTMLElementImpl;
- at end;
+ at end
 
 @interface DOMHTMLFormElement (WebCoreInternal)
 + (DOMHTMLFormElement *)_formElementWithImpl:(HTMLFormElementImpl *)impl;
- at end;
+ at end
 
 @interface DOMHTMLTableCaptionElement (WebCoreInternal)
 + (DOMHTMLTableCaptionElement *)_tableCaptionElementWithImpl:(HTMLTableCaptionElementImpl *)impl;
 - (HTMLTableCaptionElementImpl *)_tableCaptionElementImpl;
- at end;
+ at end
 
 @interface DOMHTMLTableSectionElement (WebCoreInternal)
 + (DOMHTMLTableSectionElement *)_tableSectionElementWithImpl:(HTMLTableSectionElementImpl *)impl;
@@ -149,6 +149,30 @@ using DOM::NodeImpl;
 
 @implementation DOMHTMLCollection
 
+- (HTMLCollectionImpl *)_collectionImpl
+{
+    return reinterpret_cast<HTMLCollectionImpl *>(_internal);
+}
+
+- (unsigned long)length
+{
+    return [self _collectionImpl]->length();
+}
+
+- (DOMNode *)item:(unsigned long)index
+{
+    return [DOMNode _nodeWithImpl:[self _collectionImpl]->item(index)];
+}
+
+- (DOMNode *)namedItem:(NSString *)name
+{
+    return [DOMNode _nodeWithImpl:[self _collectionImpl]->namedItem(name)];
+}
+
+ at end
+
+ at implementation DOMHTMLCollection (WebCoreInternal)
+
 - (id)_initWithCollectionImpl:(HTMLCollectionImpl *)impl
 {
     ASSERT(impl);
@@ -173,34 +197,14 @@ using DOM::NodeImpl;
     return [[[self alloc] _initWithCollectionImpl:impl] autorelease];
 }
 
-- (HTMLCollectionImpl *)_collectionImpl
-{
-    return reinterpret_cast<HTMLCollectionImpl *>(_internal);
-}
-
-- (unsigned long)length
-{
-    return [self _collectionImpl]->length();
-}
-
-- (DOMNode *)item:(unsigned long)index
-{
-    return [DOMNode _nodeWithImpl:[self _collectionImpl]->item(index)];
-}
-
-- (DOMNode *)namedItem:(NSString *)name
-{
-    return [DOMNode _nodeWithImpl:[self _collectionImpl]->namedItem(name)];
-}
-
 @end
 
+ at implementation DOMHTMLOptionsCollection
+
 #if 0
 //
-// We need to implement a khtml element to back this object 
+// We need to implement a KHTML element to back this object 
 //
- at implementation DOMHTMLOptionsCollection
-
 - (id)_initWithOptionsCollectionImpl:(HTMLOptionsCollectionImpl *)impl
 {
     ASSERT(impl);
@@ -230,55 +234,38 @@ using DOM::NodeImpl;
     return reinterpret_cast<HTMLOptionsCollectionImpl *>(_internal);
 }
 
+#endif
+
 - (unsigned long)length
 {
-    return [self _optionsCollectionImpl]->length();
+    //return [self _optionsCollectionImpl]->length();
+    ERROR("unimplemented");
+    return 0;
+}
+
+- (void)setLength:(unsigned long)length
+{
+    ERROR("unimplemented");
 }
 
 - (DOMNode *)item:(unsigned long)index
 {
-    return [DOMNode _nodeWithImpl:[self _optionsCollectionImpl]->item(index)];
+    //return [DOMNode _nodeWithImpl:[self _optionsCollectionImpl]->item(index)];
+    ERROR("unimplemented");
+    return nil;
 }
 
 - (DOMNode *)namedItem:(NSString *)name
 {
-    return [DOMNode _nodeWithImpl:[self _optionsCollectionImpl]->namedItem(name)];
+    //return [DOMNode _nodeWithImpl:[self _optionsCollectionImpl]->namedItem(name)];
+    ERROR("unimplemented");
+    return nil;
 }
 
 @end
-#endif
 
 @implementation DOMHTMLElement
 
-- (id)_initWithElementImpl:(HTMLElementImpl *)impl
-{
-    ASSERT(impl);
-    
-    [super _init];
-    _internal = reinterpret_cast<DOMObjectInternal *>(impl);
-    impl->ref();
-    setDOMWrapperForImpl(self, impl);
-    return self;
-}
-
-+ (DOMHTMLElement *)_elementWithImpl:(HTMLElementImpl *)impl
-{
-    if (!impl)
-        return nil;
-    
-    id cachedInstance;
-    cachedInstance = getDOMWrapperForImpl(impl);
-    if (cachedInstance)
-        return [[cachedInstance retain] autorelease];
-    
-    return [[[self alloc] _initWithElementImpl:impl] autorelease];
-}
-
-- (HTMLElementImpl *)_HTMLElementImpl
-{
-    return reinterpret_cast<HTMLElementImpl *>(_internal);
-}
-
 - (NSString *)idName
 {
     return [self _HTMLElementImpl]->getAttribute(ATTR_ID);
@@ -331,6 +318,20 @@ using DOM::NodeImpl;
 
 @end
 
+ at implementation DOMHTMLElement (WebCoreInternal)
+
++ (DOMHTMLElement *)_elementWithImpl:(HTMLElementImpl *)impl
+{
+    return static_cast<DOMHTMLElement *>([DOMNode _nodeWithImpl:impl]);
+}
+
+- (HTMLElementImpl *)_HTMLElementImpl
+{
+    return static_cast<HTMLElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
+}
+
+ at end
+
 @implementation DOMHTMLDocument
 
 - (HTMLDocumentImpl *)_HTMLDocumentImpl
@@ -452,7 +453,7 @@ using DOM::NodeImpl;
 
 - (HTMLHtmlElementImpl *)_HTMLHtmlElementImpl
 {
-    return reinterpret_cast<HTMLHtmlElementImpl *>(_internal);
+    return static_cast<HTMLHtmlElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)version
@@ -471,7 +472,7 @@ using DOM::NodeImpl;
 
 - (HTMLHeadElementImpl *)_headElementImpl
 {
-    return reinterpret_cast<HTMLHeadElementImpl *>(_internal);
+    return static_cast<HTMLHeadElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)profile
@@ -490,7 +491,7 @@ using DOM::NodeImpl;
 
 - (HTMLLinkElementImpl *)_linkElementImpl
 {
-    return static_cast<HTMLLinkElementImpl *>(reinterpret_cast<HTMLElementImpl *>(_internal));
+    return static_cast<HTMLLinkElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (BOOL)disabled
@@ -595,7 +596,7 @@ using DOM::NodeImpl;
 
 - (HTMLTitleElementImpl *)_titleElementImpl
 {
-    return reinterpret_cast<HTMLTitleElementImpl *>(_internal);
+    return static_cast<HTMLTitleElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)text
@@ -614,7 +615,7 @@ using DOM::NodeImpl;
 
 - (HTMLMetaElementImpl *)_metaElementImpl
 {
-    return reinterpret_cast<HTMLMetaElementImpl *>(_internal);
+    return static_cast<HTMLMetaElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)content
@@ -663,7 +664,7 @@ using DOM::NodeImpl;
 
 - (HTMLBaseElementImpl *)_baseElementImpl
 {
-    return reinterpret_cast<HTMLBaseElementImpl *>(_internal);
+    return static_cast<HTMLBaseElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)href
@@ -697,7 +698,7 @@ using DOM::NodeImpl;
 
 - (HTMLStyleElementImpl *)_styleElementImpl
 {
-    return reinterpret_cast<HTMLStyleElementImpl *>(_internal);
+    return static_cast<HTMLStyleElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (BOOL)disabled
@@ -736,7 +737,7 @@ using DOM::NodeImpl;
 
 - (HTMLBodyElementImpl *)_bodyElementImpl
 {
-    return reinterpret_cast<HTMLBodyElementImpl *>(_internal);
+    return static_cast<HTMLBodyElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)aLink
@@ -803,33 +804,9 @@ using DOM::NodeImpl;
 
 @implementation DOMHTMLFormElement
 
-- (id)_initWithFormElementImpl:(HTMLElementImpl *)impl
-{
-    ASSERT(impl);
-    
-    [super _init];
-    _internal = reinterpret_cast<DOMObjectInternal *>(impl);
-    impl->ref();
-    setDOMWrapperForImpl(self, impl);
-    return self;
-}
-
-+ (DOMHTMLFormElement *)_formElementWithImpl:(HTMLFormElementImpl *)impl
-{
-    if (!impl)
-        return nil;
-    
-    id cachedInstance;
-    cachedInstance = getDOMWrapperForImpl(impl);
-    if (cachedInstance)
-        return [[cachedInstance retain] autorelease];
-    
-    return [[[self alloc] _initWithFormElementImpl:impl] autorelease];
-}
-
 - (HTMLFormElementImpl *)_formElementImpl
 {
-    return reinterpret_cast<HTMLFormElementImpl *>(_internal);
+    return static_cast<HTMLFormElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (DOMHTMLCollection *)elements
@@ -915,11 +892,20 @@ using DOM::NodeImpl;
 
 @end
 
+ at implementation DOMHTMLFormElement (WebCoreInternal)
+
++ (DOMHTMLFormElement *)_formElementWithImpl:(HTMLFormElementImpl *)impl
+{
+    return static_cast<DOMHTMLFormElement *>([DOMNode _nodeWithImpl:impl]);
+}
+
+ at end
+
 @implementation DOMHTMLIsIndexElement
 
 - (HTMLIsIndexElementImpl *)_isIndexElementImpl
 {
-    return reinterpret_cast<HTMLIsIndexElementImpl *>(_internal);
+    return static_cast<HTMLIsIndexElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (DOMHTMLFormElement *)form
@@ -943,7 +929,7 @@ using DOM::NodeImpl;
 
 - (HTMLSelectElementImpl *)_selectElementImpl
 {
-    return reinterpret_cast<HTMLSelectElementImpl *>(_internal);
+    return static_cast<HTMLSelectElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)type
@@ -1071,7 +1057,7 @@ using DOM::NodeImpl;
 
 - (HTMLOptGroupElementImpl *)_optGroupElementImpl
 {
-    return reinterpret_cast<HTMLOptGroupElementImpl *>(_internal);
+    return static_cast<HTMLOptGroupElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (BOOL)disabled
@@ -1100,7 +1086,7 @@ using DOM::NodeImpl;
 
 - (HTMLOptionElementImpl *)_optionElementImpl
 {
-    return reinterpret_cast<HTMLOptionElementImpl *>(_internal);
+    return static_cast<HTMLOptionElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (DOMHTMLFormElement *)form
@@ -1175,7 +1161,7 @@ using DOM::NodeImpl;
 
 - (HTMLInputElementImpl *)_inputElementImpl
 {
-    return reinterpret_cast<HTMLInputElementImpl *>(_internal);
+    return static_cast<HTMLInputElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)defaultValue
@@ -1385,7 +1371,7 @@ using DOM::NodeImpl;
 
 - (HTMLTextAreaElementImpl *)_textAreaElementImpl
 {
-    return reinterpret_cast<HTMLTextAreaElementImpl *>(_internal);
+    return static_cast<HTMLTextAreaElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)defaultValue
@@ -1516,7 +1502,7 @@ using DOM::NodeImpl;
 
 - (HTMLButtonElementImpl *)_buttonElementImpl
 {
-    return reinterpret_cast<HTMLButtonElementImpl *>(_internal);
+    return static_cast<HTMLButtonElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (DOMHTMLFormElement *)form
@@ -1585,7 +1571,7 @@ using DOM::NodeImpl;
 
 - (HTMLLabelElementImpl *)_labelElementImpl
 {
-    return reinterpret_cast<HTMLLabelElementImpl *>(_internal);
+    return static_cast<HTMLLabelElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (DOMHTMLFormElement *)form
@@ -1622,7 +1608,7 @@ using DOM::NodeImpl;
 
 - (HTMLFieldSetElementImpl *)_fieldSetElementImpl
 {
-    return reinterpret_cast<HTMLFieldSetElementImpl *>(_internal);
+    return static_cast<HTMLFieldSetElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (DOMHTMLFormElement *)form
@@ -1636,7 +1622,7 @@ using DOM::NodeImpl;
 
 - (HTMLLegendElementImpl *)_legendElementImpl
 {
-    return reinterpret_cast<HTMLLegendElementImpl *>(_internal);
+    return static_cast<HTMLLegendElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (DOMHTMLFormElement *)form
@@ -1670,7 +1656,7 @@ using DOM::NodeImpl;
 
 - (HTMLUListElementImpl *)_uListElementImpl
 {
-    return reinterpret_cast<HTMLUListElementImpl *>(_internal);
+    return static_cast<HTMLUListElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (BOOL)compact
@@ -1699,7 +1685,7 @@ using DOM::NodeImpl;
 
 - (HTMLOListElementImpl *)_oListElementImpl
 {
-    return reinterpret_cast<HTMLOListElementImpl *>(_internal);
+    return static_cast<HTMLOListElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (BOOL)compact
@@ -1739,7 +1725,7 @@ using DOM::NodeImpl;
 
 - (HTMLDListElementImpl *)_dListElementImpl
 {
-    return reinterpret_cast<HTMLDListElementImpl *>(_internal);
+    return static_cast<HTMLDListElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (BOOL)compact
@@ -1758,7 +1744,7 @@ using DOM::NodeImpl;
 
 - (HTMLDirectoryElementImpl *)_directoryListElementImpl
 {
-    return reinterpret_cast<HTMLDirectoryElementImpl *>(_internal);
+    return static_cast<HTMLDirectoryElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (BOOL)compact
@@ -1777,7 +1763,7 @@ using DOM::NodeImpl;
 
 - (HTMLMenuElementImpl *)_menuListElementImpl
 {
-    return reinterpret_cast<HTMLMenuElementImpl *>(_internal);
+    return static_cast<HTMLMenuElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (BOOL)compact
@@ -1796,7 +1782,7 @@ using DOM::NodeImpl;
 
 - (HTMLLIElementImpl *)_liElementImpl
 {
-    return reinterpret_cast<HTMLLIElementImpl *>(_internal);
+    return static_cast<HTMLLIElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)type
@@ -1826,7 +1812,7 @@ using DOM::NodeImpl;
 
 - (HTMLGenericElementImpl *)_quoteElementImpl
 {
-    return reinterpret_cast<HTMLGenericElementImpl *>(_internal);
+    return static_cast<HTMLGenericElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)cite
@@ -1845,7 +1831,7 @@ using DOM::NodeImpl;
 
 - (HTMLDivElementImpl *)_divElementImpl
 {
-    return reinterpret_cast<HTMLDivElementImpl *>(_internal);
+    return static_cast<HTMLDivElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)align
@@ -1864,7 +1850,7 @@ using DOM::NodeImpl;
 
 - (HTMLParagraphElementImpl *)_paragraphElementImpl
 {
-    return reinterpret_cast<HTMLParagraphElementImpl *>(_internal);
+    return static_cast<HTMLParagraphElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)align
@@ -1883,7 +1869,7 @@ using DOM::NodeImpl;
 
 - (HTMLHeadingElementImpl *)_headingElementImpl
 {
-    return reinterpret_cast<HTMLHeadingElementImpl *>(_internal);
+    return static_cast<HTMLHeadingElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)align
@@ -1902,7 +1888,7 @@ using DOM::NodeImpl;
 
 - (HTMLPreElementImpl *)_preElementImpl
 {
-    return reinterpret_cast<HTMLPreElementImpl *>(_internal);
+    return static_cast<HTMLPreElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (long)width
@@ -1922,7 +1908,7 @@ using DOM::NodeImpl;
 
 - (HTMLBRElementImpl *)_BRElementImpl
 {
-    return reinterpret_cast<HTMLBRElementImpl *>(_internal);
+    return static_cast<HTMLBRElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)clear
@@ -1941,7 +1927,7 @@ using DOM::NodeImpl;
 
 - (HTMLBaseFontElementImpl *)_baseFontElementImpl
 {
-    return reinterpret_cast<HTMLBaseFontElementImpl *>(_internal);
+    return static_cast<HTMLBaseFontElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)color
@@ -1980,7 +1966,7 @@ using DOM::NodeImpl;
 
 - (HTMLFontElementImpl *)_fontElementImpl
 {
-    return reinterpret_cast<HTMLFontElementImpl *>(_internal);
+    return static_cast<HTMLFontElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)color
@@ -2019,7 +2005,7 @@ using DOM::NodeImpl;
 
 - (HTMLHRElementImpl *)_HRElementImpl
 {
-    return reinterpret_cast<HTMLHRElementImpl *>(_internal);
+    return static_cast<HTMLHRElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)align
@@ -2068,7 +2054,7 @@ using DOM::NodeImpl;
 
 - (HTMLElementImpl *)_modElementImpl
 {
-    return reinterpret_cast<HTMLElementImpl *>(_internal);
+    return static_cast<HTMLElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)cite
@@ -2097,7 +2083,7 @@ using DOM::NodeImpl;
 
 - (HTMLAnchorElementImpl *)_anchorElementImpl
 {
-    return reinterpret_cast<HTMLAnchorElementImpl *>(_internal);
+    return static_cast<HTMLAnchorElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)accessKey
@@ -2245,7 +2231,7 @@ using DOM::NodeImpl;
 
 - (HTMLImageElementImpl *)_imageElementImpl
 {
-    return reinterpret_cast<HTMLImageElementImpl *>(_internal);
+    return static_cast<HTMLImageElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)name
@@ -2383,7 +2369,7 @@ using DOM::NodeImpl;
 
 - (HTMLObjectElementImpl *)_objectElementImpl
 {
-    return reinterpret_cast<HTMLObjectElementImpl *>(_internal);
+    return static_cast<HTMLObjectElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (DOMHTMLFormElement *)form
@@ -2575,7 +2561,7 @@ using DOM::NodeImpl;
 
 - (HTMLParamElementImpl *)_paramElementImpl
 {
-    return reinterpret_cast<HTMLParamElementImpl *>(_internal);
+    return static_cast<HTMLParamElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)name
@@ -2624,7 +2610,7 @@ using DOM::NodeImpl;
 
 - (HTMLAppletElementImpl *)_appletElementImpl
 {
-    return reinterpret_cast<HTMLAppletElementImpl *>(_internal);
+    return static_cast<HTMLAppletElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)align
@@ -2745,7 +2731,7 @@ using DOM::NodeImpl;
 
 - (HTMLMapElementImpl *)_mapElementImpl
 {
-    return reinterpret_cast<HTMLMapElementImpl *>(_internal);
+    return static_cast<HTMLMapElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (DOMHTMLCollection *)areas
@@ -2770,7 +2756,7 @@ using DOM::NodeImpl;
 
 - (HTMLAreaElementImpl *)_areaElementImpl
 {
-    return reinterpret_cast<HTMLAreaElementImpl *>(_internal);
+    return static_cast<HTMLAreaElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)accessKey
@@ -2865,7 +2851,7 @@ using DOM::NodeImpl;
 
 - (HTMLScriptElementImpl *)_scriptElementImpl
 {
-    return reinterpret_cast<HTMLScriptElementImpl *>(_internal);
+    return static_cast<HTMLScriptElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)text
@@ -2944,35 +2930,6 @@ using DOM::NodeImpl;
 
 @implementation DOMHTMLTableCaptionElement
 
-- (id)_initWithTableCaptionElement:(HTMLTableCaptionElementImpl *)impl
-{
-    ASSERT(impl);
-    
-    [super _init];
-    _internal = reinterpret_cast<DOMObjectInternal *>(impl);
-    impl->ref();
-    setDOMWrapperForImpl(self, impl);
-    return self;
-}
-
-+ (DOMHTMLTableCaptionElement *)_tableCaptionElementWithImpl:(HTMLTableCaptionElementImpl *)impl
-{
-    if (!impl)
-        return nil;
-    
-    id cachedInstance;
-    cachedInstance = getDOMWrapperForImpl(impl);
-    if (cachedInstance)
-        return [[cachedInstance retain] autorelease];
-    
-    return [[[self alloc] _initWithTableCaptionElement:impl] autorelease];
-}
-
-- (HTMLTableCaptionElementImpl *)_tableCaptionElementImpl
-{
-    return reinterpret_cast<HTMLTableCaptionElementImpl *>(_internal);
-}
-
 - (NSString *)align
 {
     return [self _tableCaptionElementImpl]->getAttribute(ATTR_ALIGN);
@@ -2985,36 +2942,21 @@ using DOM::NodeImpl;
 
 @end
 
- at implementation DOMHTMLTableSectionElement
+ at implementation DOMHTMLTableCaptionElement (WebCoreInternal)
 
-- (id)_initWithTableSectionElement:(HTMLTableSectionElementImpl *)impl
++ (DOMHTMLTableCaptionElement *)_tableCaptionElementWithImpl:(HTMLTableCaptionElementImpl *)impl
 {
-    ASSERT(impl);
-    
-    [super _init];
-    _internal = reinterpret_cast<DOMObjectInternal *>(impl);
-    impl->ref();
-    setDOMWrapperForImpl(self, impl);
-    return self;
+    return static_cast<DOMHTMLTableCaptionElement *>([DOMNode _nodeWithImpl:impl]);
 }
 
-+ (DOMHTMLTableSectionElement *)_tableSectionElementWithImpl:(HTMLTableSectionElementImpl *)impl
+- (HTMLTableCaptionElementImpl *)_tableCaptionElementImpl
 {
-    if (!impl)
-        return nil;
-    
-    id cachedInstance;
-    cachedInstance = getDOMWrapperForImpl(impl);
-    if (cachedInstance)
-        return [[cachedInstance retain] autorelease];
-    
-    return [[[self alloc] _initWithTableSectionElement:impl] autorelease];
+    return static_cast<HTMLTableCaptionElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
-- (HTMLTableSectionElementImpl *)_tableSectionElementImpl
-{
-    return reinterpret_cast<HTMLTableSectionElementImpl *>(_internal);
-}
+ at end
+
+ at implementation DOMHTMLTableSectionElement
 
 - (NSString *)align
 {
@@ -3079,36 +3021,21 @@ using DOM::NodeImpl;
 
 @end
 
- at implementation DOMHTMLTableElement
+ at implementation DOMHTMLTableSectionElement (WebCoreInternal)
 
-- (id)_initWithTableElement:(HTMLTableElementImpl *)impl
++ (DOMHTMLTableSectionElement *)_tableSectionElementWithImpl:(HTMLTableSectionElementImpl *)impl
 {
-    ASSERT(impl);
-    
-    [super _init];
-    _internal = reinterpret_cast<DOMObjectInternal *>(impl);
-    impl->ref();
-    setDOMWrapperForImpl(self, impl);
-    return self;
+    return static_cast<DOMHTMLTableSectionElement *>([DOMNode _nodeWithImpl:impl]);
 }
 
-+ (DOMHTMLTableElement *)_tableElementWithImpl:(HTMLTableElementImpl *)impl
+- (HTMLTableSectionElementImpl *)_tableSectionElementImpl
 {
-    if (!impl)
-        return nil;
-    
-    id cachedInstance;
-    cachedInstance = getDOMWrapperForImpl(impl);
-    if (cachedInstance)
-        return [[cachedInstance retain] autorelease];
-    
-    return [[[self alloc] _initWithTableElement:impl] autorelease];
+    return static_cast<HTMLTableSectionElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
-- (HTMLTableElementImpl *)_tableElementImpl
-{
-    return reinterpret_cast<HTMLTableElementImpl *>(_internal);
-}
+ at end
+
+ at implementation DOMHTMLTableElement
 
 - (DOMHTMLTableCaptionElement *)caption
 {
@@ -3292,11 +3219,25 @@ using DOM::NodeImpl;
 
 @end
 
+ at implementation DOMHTMLTableElement (WebCoreInternal)
+
++ (DOMHTMLTableElement *)_tableElementWithImpl:(HTMLTableElementImpl *)impl
+{
+    return static_cast<DOMHTMLTableElement *>([DOMNode _nodeWithImpl:impl]);
+}
+
+- (HTMLTableElementImpl *)_tableElementImpl
+{
+    return static_cast<HTMLTableElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
+}
+
+ at end
+
 @implementation DOMHTMLTableColElement
 
 - (HTMLTableColElementImpl *)_tableColElementImpl
 {
-    return reinterpret_cast<HTMLTableColElementImpl *>(_internal);
+    return static_cast<HTMLTableColElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)align
@@ -3366,7 +3307,7 @@ using DOM::NodeImpl;
 
 - (HTMLTableRowElementImpl *)_tableRowElementImpl
 {
-    return reinterpret_cast<HTMLTableRowElementImpl *>(_internal);
+    return static_cast<HTMLTableRowElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (long)rowIndex
@@ -3454,35 +3395,6 @@ using DOM::NodeImpl;
 
 @implementation DOMHTMLTableCellElement
 
-- (id)_initWithTableCellElement:(HTMLTableCellElementImpl *)impl
-{
-    ASSERT(impl);
-    
-    [super _init];
-    _internal = reinterpret_cast<DOMObjectInternal *>(impl);
-    impl->ref();
-    setDOMWrapperForImpl(self, impl);
-    return self;
-}
-
-+ (DOMHTMLTableCellElement *)_tableCellElementWithImpl:(HTMLTableCellElementImpl *)impl
-{
-    if (!impl)
-        return nil;
-    
-    id cachedInstance;
-    cachedInstance = getDOMWrapperForImpl(impl);
-    if (cachedInstance)
-        return [[cachedInstance retain] autorelease];
-    
-    return [[[self alloc] _initWithTableCellElement:impl] autorelease];
-}
-
-- (HTMLTableCellElementImpl *)_tableCellElementImpl
-{
-    return reinterpret_cast<HTMLTableCellElementImpl *>(_internal);
-}
-
 - (long)cellIndex
 {
     return [self _tableCellElementImpl]->cellIndex();
@@ -3632,11 +3544,25 @@ using DOM::NodeImpl;
 
 @end
 
+ at implementation DOMHTMLTableCellElement (WebCoreInternal)
+
++ (DOMHTMLTableCellElement *)_tableCellElementWithImpl:(HTMLTableCellElementImpl *)impl
+{
+    return static_cast<DOMHTMLTableCellElement *>([DOMNode _nodeWithImpl:impl]);
+}
+
+- (HTMLTableCellElementImpl *)_tableCellElementImpl
+{
+    return static_cast<HTMLTableCellElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
+}
+
+ at end
+
 @implementation DOMHTMLFrameSetElement
 
 - (HTMLFrameSetElementImpl *)_frameSetElementImpl
 {
-    return reinterpret_cast<HTMLFrameSetElementImpl *>(_internal);
+    return static_cast<HTMLFrameSetElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)rows
@@ -3665,10 +3591,9 @@ using DOM::NodeImpl;
 
 - (HTMLFrameElementImpl *)_frameElementImpl
 {
-    return reinterpret_cast<HTMLFrameElementImpl *>(_internal);
+    return static_cast<HTMLFrameElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
-
 - (NSString *)frameBorder
 {
     return [self _frameElementImpl]->getAttribute(ATTR_FRAMEBORDER);
@@ -3760,7 +3685,7 @@ using DOM::NodeImpl;
 
 - (HTMLIFrameElementImpl *)_IFrameElementImpl
 {
-    return reinterpret_cast<HTMLIFrameElementImpl *>(_internal);
+    return static_cast<HTMLIFrameElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)align
@@ -3886,7 +3811,7 @@ using DOM::NodeImpl;
 
 - (HTMLEmbedElementImpl *)_embedElementImpl
 {
-    return reinterpret_cast<HTMLEmbedElementImpl *>(_internal);
+    return static_cast<HTMLEmbedElementImpl *>(reinterpret_cast<NodeImpl *>(_internal));
 }
 
 - (NSString *)align
diff --git a/WebCore/kwq/HTMLDOM.mm b/WebCore/kwq/HTMLDOM.mm
deleted file mode 100644
index 7184e2b..0000000
--- a/WebCore/kwq/HTMLDOM.mm
+++ /dev/null
@@ -1,3878 +0,0 @@
-/*
- * Copyright (C) 2004 Apple Computer, Inc.  All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
- */
-
-#import "DOMHTML.h"
-
-#import <dom/dom_doc.h>
-#import <dom/dom_string.h>
-#import <dom/html_element.h>
-#import <dom/html_misc.h>
-#import <html/html_baseimpl.h>
-#import <html/html_blockimpl.h>
-#import <html/html_documentimpl.h>
-#import <html/html_elementimpl.h>
-#import <html/html_formimpl.h>
-#import <html/html_headimpl.h>
-#import <html/html_imageimpl.h>
-#import <html/html_inlineimpl.h>
-#import <html/html_listimpl.h>
-#import <html/html_miscimpl.h>
-#import <html/html_objectimpl.h>
-#import <html/html_tableimpl.h>
-#import <misc/htmlattrs.h>
-#import <xml/dom_elementimpl.h>
-#import <xml/dom_nodeimpl.h>
-
-#import "DOMInternal.h"
-#import "KWQAssertions.h"
-
-using DOM::Document;
-using DOM::DOMString;
-using DOM::ElementImpl;
-using DOM::HTMLAnchorElementImpl;
-using DOM::HTMLAppletElementImpl;
-using DOM::HTMLAreaElementImpl;
-using DOM::HTMLBaseElementImpl;
-using DOM::HTMLBaseFontElementImpl;
-using DOM::HTMLBodyElementImpl;
-using DOM::HTMLBRElementImpl;
-using DOM::HTMLButtonElementImpl;
-using DOM::HTMLCollectionImpl;
-using DOM::HTMLDirectoryElementImpl;
-using DOM::HTMLDivElementImpl;
-using DOM::HTMLDListElementImpl;
-using DOM::HTMLDocumentImpl;
-using DOM::HTMLElementImpl;
-using DOM::HTMLFieldSetElementImpl;
-using DOM::HTMLFontElementImpl;
-using DOM::HTMLFormCollectionImpl;
-using DOM::HTMLFormElementImpl;
-using DOM::HTMLFrameElementImpl;
-using DOM::HTMLFrameSetElementImpl;
-using DOM::HTMLGenericElementImpl;
-using DOM::HTMLGenericFormElementImpl;
-using DOM::HTMLHeadElementImpl;
-using DOM::HTMLHeadingElementImpl;
-using DOM::HTMLHRElementImpl;
-using DOM::HTMLHtmlElementImpl;
-using DOM::HTMLIFrameElementImpl;
-using DOM::HTMLImageElementImpl;
-using DOM::HTMLInputElementImpl;
-using DOM::HTMLIsIndexElementImpl;
-using DOM::HTMLLabelElementImpl;
-using DOM::HTMLLegendElementImpl;
-using DOM::HTMLLIElementImpl;
-using DOM::HTMLLinkElementImpl;
-using DOM::HTMLMapElementImpl;
-using DOM::HTMLMenuElementImpl;
-using DOM::HTMLMetaElementImpl;
-using DOM::HTMLObjectElementImpl;
-using DOM::HTMLOListElementImpl;
-using DOM::HTMLOptGroupElementImpl;
-using DOM::HTMLOptionElementImpl;
-using DOM::HTMLParagraphElementImpl;
-using DOM::HTMLParamElementImpl;
-using DOM::HTMLPreElementImpl;
-using DOM::HTMLScriptElementImpl;
-using DOM::HTMLSelectElementImpl;
-using DOM::HTMLStyleElementImpl;
-using DOM::HTMLTableElementImpl;
-using DOM::HTMLTableCaptionElementImpl;
-using DOM::HTMLTableCellElementImpl;
-using DOM::HTMLTableColElementImpl;
-using DOM::HTMLTableRowElementImpl;
-using DOM::HTMLTableSectionElementImpl;
-using DOM::HTMLTextAreaElementImpl;
-using DOM::HTMLTitleElementImpl;
-using DOM::HTMLUListElementImpl;
-using DOM::NameNodeListImpl;
-using DOM::NodeImpl;
-
- at interface DOMHTMLCollection (HTMLCollectionInternal)
-+ (DOMHTMLCollection *)_collectionWithImpl:(HTMLCollectionImpl *)impl;
- at end;
-
- at interface DOMHTMLElement (HTMLElementInternal)
-+ (DOMHTMLElement *)_elementWithImpl:(HTMLElementImpl *)impl;
-- (HTMLElementImpl *)_HTMLElementImpl;
- at end;
-
- at interface DOMHTMLFormElement (WebCoreInternal)
-+ (DOMHTMLFormElement *)_formElementWithImpl:(HTMLFormElementImpl *)impl;
- at end;
-
- at interface DOMHTMLTableCaptionElement (WebCoreInternal)
-+ (DOMHTMLTableCaptionElement *)_tableCaptionElementWithImpl:(HTMLTableCaptionElementImpl *)impl;
-- (HTMLTableCaptionElementImpl *)_tableCaptionElementImpl;
- at end;
-
- at interface DOMHTMLTableSectionElement (WebCoreInternal)
-+ (DOMHTMLTableSectionElement *)_tableSectionElementWithImpl:(HTMLTableSectionElementImpl *)impl;
-- (HTMLTableSectionElementImpl *)_tableSectionElementImpl;
- at end
-
- at interface DOMHTMLTableElement (WebCoreInternal)
-+ (DOMHTMLTableElement *)_tableElementWithImpl:(HTMLTableElementImpl *)impl;
-- (HTMLTableElementImpl *)_tableElementImpl;
- at end
-
- at interface DOMHTMLTableCellElement (WebCoreInternal)
-+ (DOMHTMLTableCellElement *)_tableCellElementWithImpl:(HTMLTableCellElementImpl *)impl;
- at end
-
-//------------------------------------------------------------------------------------------
-
- at implementation DOMHTMLCollection
-
-- (id)_initWithCollectionImpl:(HTMLCollectionImpl *)impl
-{
-    ASSERT(impl);
-    
-    [super _init];
-    _internal = reinterpret_cast<DOMObjectInternal *>(impl);
-    impl->ref();
-    setDOMWrapperForImpl(self, impl);
-    return self;
-}
-
-+ (DOMHTMLCollection *)_collectionWithImpl:(HTMLCollectionImpl *)impl
-{
-    if (!impl)
-        return nil;
-    
-    id cachedInstance;
-    cachedInstance = getDOMWrapperForImpl(impl);
-    if (cachedInstance)
-        return [[cachedInstance retain] autorelease];
-    
-    return [[[self alloc] _initWithCollectionImpl:impl] autorelease];
-}
-
-- (HTMLCollectionImpl *)_collectionImpl
-{
-    return reinterpret_cast<HTMLCollectionImpl *>(_internal);
-}
-
-- (unsigned long)length
-{
-    return [self _collectionImpl]->length();
-}
-
-- (DOMNode *)item:(unsigned long)index
-{
-    return [DOMNode _nodeWithImpl:[self _collectionImpl]->item(index)];
-}
-
-- (DOMNode *)namedItem:(NSString *)name
-{
-    return [DOMNode _nodeWithImpl:[self _collectionImpl]->namedItem(name)];
-}
-
- at end
-
-#if 0
-//
-// We need to implement a khtml element to back this object 
-//
- at implementation DOMHTMLOptionsCollection
-
-- (id)_initWithOptionsCollectionImpl:(HTMLOptionsCollectionImpl *)impl
-{
-    ASSERT(impl);
-    
-    [super _init];
-    _internal = reinterpret_cast<DOMObjectInternal *>(impl);
-    impl->ref();
-    setDOMWrapperForImpl(self, impl);
-    return self;
-}
-
-+ (HTMLOptionsCollection *)_optionsCollectionWithImpl:(HTMLOptionsCollectionImpl *)impl
-{
-    if (!impl)
-        return nil;
-    
-    id cachedInstance;
-    cachedInstance = getDOMWrapperForImpl(impl);
-    if (cachedInstance)
-        return [[cachedInstance retain] autorelease];
-    
-    return [[[self alloc] _initWithOptionsCollectionImpl:impl] autorelease];
-}
-
-- (HTMLOptionsCollectionImpl *)_optionsCollectionImpl
-{
-    return reinterpret_cast<HTMLOptionsCollectionImpl *>(_internal);
-}
-
-- (unsigned long)length
-{
-    return [self _optionsCollectionImpl]->length();
-}
-
-- (DOMNode *)item:(unsigned long)index
-{
-    return [DOMNode _nodeWithImpl:[self _optionsCollectionImpl]->item(index)];
-}
-
-- (DOMNode *)namedItem:(NSString *)name
-{
-    return [DOMNode _nodeWithImpl:[self _optionsCollectionImpl]->namedItem(name)];
-}
-
- at end
-#endif
-
- at implementation DOMHTMLElement
-
-- (id)_initWithElementImpl:(HTMLElementImpl *)impl
-{
-    ASSERT(impl);
-    
-    [super _init];
-    _internal = reinterpret_cast<DOMObjectInternal *>(impl);
-    impl->ref();
-    setDOMWrapperForImpl(self, impl);
-    return self;
-}
-
-+ (DOMHTMLElement *)_elementWithImpl:(HTMLElementImpl *)impl
-{
-    if (!impl)
-        return nil;
-    
-    id cachedInstance;
-    cachedInstance = getDOMWrapperForImpl(impl);
-    if (cachedInstance)
-        return [[cachedInstance retain] autorelease];
-    
-    return [[[self alloc] _initWithElementImpl:impl] autorelease];
-}
-
-- (HTMLElementImpl *)_HTMLElementImpl
-{
-    return reinterpret_cast<HTMLElementImpl *>(_internal);
-}
-
-- (NSString *)idName
-{
-    return [self _HTMLElementImpl]->getAttribute(ATTR_ID);
-}
-
-- (void)setIdName:(NSString *)idName
-{
-    [self _HTMLElementImpl]->setAttribute(ATTR_ID, idName);
-}
-
-- (NSString *)title
-{
-    return [self _HTMLElementImpl]->getAttribute(ATTR_TITLE);
-}
-
-- (void)setTitle:(NSString *)title
-{
-    [self _HTMLElementImpl]->setAttribute(ATTR_TITLE, title);
-}
-
-- (NSString *)lang
-{
-    return [self _HTMLElementImpl]->getAttribute(ATTR_LANG);
-}
-
-- (void)setLang:(NSString *)lang
-{
-    [self _HTMLElementImpl]->setAttribute(ATTR_LANG, lang);
-}
-
-- (NSString *)dir
-{
-    return [self _HTMLElementImpl]->getAttribute(ATTR_DIR);
-}
-
-- (void)setDir:(NSString *)dir
-{
-    [self _HTMLElementImpl]->setAttribute(ATTR_DIR, dir);
-}
-
-- (NSString *)className
-{
-    return [self _HTMLElementImpl]->getAttribute(ATTR_CLASS);
-}
-
-- (void)setClassName:(NSString *)className
-{
-    [self _HTMLElementImpl]->setAttribute(ATTR_CLASS, className);
-}
-
- at end
-
- at implementation DOMHTMLDocument
-
-- (HTMLDocumentImpl *)_HTMLDocumentImpl
-{
-    return reinterpret_cast<HTMLDocumentImpl *>(_internal);
-}
-
-- (NSString *)title
-{
-    return [self _HTMLDocumentImpl]->title();
-}
-
-- (void)setTitle:(NSString *)title
-{
-    [self _HTMLDocumentImpl]->setTitle(title);
-}
-
-- (NSString *)referrer
-{
-     return [self _HTMLDocumentImpl]->referrer();
-}
-
-- (NSString *)domain
-{
-     return [self _HTMLDocumentImpl]->domain();
-}
-
-- (NSString *)URL
-{
-    return [self _HTMLDocumentImpl]->URL().getNSString();
-}
-
-- (DOMHTMLElement *)body
-{
-    return [DOMHTMLElement _elementWithImpl:[self _HTMLDocumentImpl]->body()];
-}
-
-- (DOMHTMLCollection *)images
-{
-    HTMLCollectionImpl *collection = new HTMLCollectionImpl([self _HTMLDocumentImpl], HTMLCollectionImpl::DOC_IMAGES);
-    return [DOMHTMLCollection _collectionWithImpl:collection];
-}
-
-- (DOMHTMLCollection *)applets
-{
-    HTMLCollectionImpl *collection = new HTMLCollectionImpl([self _HTMLDocumentImpl], HTMLCollectionImpl::DOC_APPLETS);
-    return [DOMHTMLCollection _collectionWithImpl:collection];
-}
-
-- (DOMHTMLCollection *)links
-{
-    HTMLCollectionImpl *collection = new HTMLCollectionImpl([self _HTMLDocumentImpl], HTMLCollectionImpl::DOC_LINKS);
-    return [DOMHTMLCollection _collectionWithImpl:collection];
-}
-
-- (DOMHTMLCollection *)forms
-{
-    HTMLCollectionImpl *collection = new HTMLCollectionImpl([self _HTMLDocumentImpl], HTMLCollectionImpl::DOC_FORMS);
-    return [DOMHTMLCollection _collectionWithImpl:collection];
-}
-
-- (DOMHTMLCollection *)anchors
-{
-    HTMLCollectionImpl *collection = new HTMLCollectionImpl([self _HTMLDocumentImpl], HTMLCollectionImpl::DOC_ANCHORS);
-    return [DOMHTMLCollection _collectionWithImpl:collection];
-}
-
-- (void)setBody:(DOMHTMLElement *)body
-{
-    int exceptionCode = 0;
-    [self _HTMLDocumentImpl]->setBody([body _HTMLElementImpl], exceptionCode);
-    raiseOnDOMError(exceptionCode);
-}
-
-- (NSString *)cookie
-{
-    return [self _HTMLDocumentImpl]->cookie();
-}
-
-- (void)setCookie:(NSString *)cookie
-{
-    [self _HTMLDocumentImpl]->setCookie(cookie);
-}
-
-- (void)open
-{
-    [self _HTMLDocumentImpl]->open();
-}
-
-- (void)close
-{
-    [self _HTMLDocumentImpl]->close();
-}
-
-- (void)write:(NSString *)text
-{
-    [self _HTMLDocumentImpl]->write(text);
-}
-
-- (void)writeln:(NSString *)text
-{
-    [self _HTMLDocumentImpl]->writeln(text);
-}
-
-- (DOMElement *)getElementById:(NSString *)elementId
-{
-    return [DOMElement _elementWithImpl:[self _HTMLDocumentImpl]->getElementById(elementId)];
-}
-
-- (DOMNodeList *)getElementsByName:(NSString *)elementName
-{
-    NameNodeListImpl *nodeList = new NameNodeListImpl([self _HTMLDocumentImpl], elementName);
-    return [DOMNodeList _nodeListWithImpl:nodeList];
-}
-
- at end
-
- at implementation DOMHTMLHtmlElement
-
-- (HTMLHtmlElementImpl *)_HTMLHtmlElementImpl
-{
-    return reinterpret_cast<HTMLHtmlElementImpl *>(_internal);
-}
-
-- (NSString *)version
-{
-    return [self _HTMLHtmlElementImpl]->getAttribute(ATTR_VERSION);
-}
-
-- (void)setVersion:(NSString *)version
-{
-    [self _HTMLHtmlElementImpl]->setAttribute(ATTR_VERSION, version);
-}
-
- at end
-
- at implementation DOMHTMLHeadElement
-
-- (HTMLHeadElementImpl *)_headElementImpl
-{
-    return reinterpret_cast<HTMLHeadElementImpl *>(_internal);
-}
-
-- (NSString *)profile
-{
-    return [self _headElementImpl]->getAttribute(ATTR_PROFILE);
-}
-
-- (void)setProfile:(NSString *)profile
-{
-    [self _headElementImpl]->setAttribute(ATTR_PROFILE, profile);
-}
-
- at end
-
- at implementation DOMHTMLLinkElement
-
-- (HTMLLinkElementImpl *)_linkElementImpl
-{
-    return reinterpret_cast<HTMLLinkElementImpl *>(_internal);
-}
-
-- (BOOL)disabled
-{
-    return ![self _linkElementImpl]->getAttribute(ATTR_DISABLED).isNull();
-}
-
-- (void)setDisabled:(BOOL)disabled
-{
-    [self _linkElementImpl]->setAttribute(ATTR_DISABLED, disabled ? "" : 0);
-    [self _linkElementImpl]->setDisabledState(disabled);
-}
-
-- (NSString *)charset
-{
-    return [self _linkElementImpl]->getAttribute(ATTR_CHARSET);
-}
-
-- (void)setCharset:(NSString *)charset
-{
-    [self _linkElementImpl]->setAttribute(ATTR_CHARSET, charset);
-}
-
-- (NSString *)href
-{
-    DOMString s = [self _linkElementImpl]->getAttribute(ATTR_HREF);
-    if (!s.isNull()) {
-        Document doc([self _linkElementImpl]->getDocument());
-        s = doc.completeURL(s);
-    }
-    return s;
-}
-
-- (void)setHref:(NSString *)href
-{
-    [self _linkElementImpl]->setAttribute(ATTR_HREF, href);
-}
-
-- (NSString *)hreflang
-{
-    return [self _linkElementImpl]->getAttribute(ATTR_HREFLANG);
-}
-
-- (void)setHreflang:(NSString *)hreflang
-{
-   [self _linkElementImpl]->setAttribute(ATTR_HREFLANG, hreflang);
-}
-
-- (NSString *)media
-{
-    return [self _linkElementImpl]->getAttribute(ATTR_MEDIA);
-}
-
-- (void)setMedia:(NSString *)media
-{
-    [self _linkElementImpl]->setAttribute(ATTR_MEDIA, media);
-}
-
-- (NSString *)rel
-{
-    return [self _linkElementImpl]->getAttribute(ATTR_REL);
-}
-
-- (void)setRel:(NSString *)rel
-{
-    [self _linkElementImpl]->setAttribute(ATTR_REL, rel);
-}
-
-- (NSString *)rev
-{
-    return [self _linkElementImpl]->getAttribute(ATTR_REV);
-}
-
-- (void)setRev:(NSString *)rev
-{
-    [self _linkElementImpl]->setAttribute(ATTR_REV, rev);
-}
-
-- (NSString *)target
-{
-    return [self _linkElementImpl]->getAttribute(ATTR_TARGET);
-}
-
-- (void)setTarget:(NSString *)target
-{
-    [self _linkElementImpl]->setAttribute(ATTR_TARGET, target);
-}
-
-- (NSString *)type
-{
-    return [self _linkElementImpl]->getAttribute(ATTR_TYPE);
-}
-
-- (void)setType:(NSString *)type
-{
-    [self _linkElementImpl]->setAttribute(ATTR_TYPE, type);
-}
-
- at end
-
- at implementation DOMHTMLTitleElement
-
-- (HTMLTitleElementImpl *)_titleElementImpl
-{
-    return reinterpret_cast<HTMLTitleElementImpl *>(_internal);
-}
-
-- (NSString *)text
-{
-    return [self _titleElementImpl]->getAttribute(ATTR_TEXT);
-}
-
-- (void)setText:(NSString *)text
-{
-    [self _titleElementImpl]->setAttribute(ATTR_TEXT, text);
-}
-
- at end
-
- at implementation DOMHTMLMetaElement
-
-- (HTMLMetaElementImpl *)_metaElementImpl
-{
-    return reinterpret_cast<HTMLMetaElementImpl *>(_internal);
-}
-
-- (NSString *)content
-{
-    return [self _metaElementImpl]->getAttribute(ATTR_CONTENT);
-}
-
-- (void)setContent:(NSString *)content
-{
-    [self _metaElementImpl]->setAttribute(ATTR_CONTENT, content);
-}
-
-- (NSString *)httpEquiv
-{
-    return [self _metaElementImpl]->getAttribute(ATTR_HTTP_EQUIV);
-}
-
-- (void)setHttpEquiv:(NSString *)httpEquiv
-{
-    [self _metaElementImpl]->setAttribute(ATTR_HTTP_EQUIV, httpEquiv);
-}
-
-- (NSString *)name
-{
-    return [self _metaElementImpl]->getAttribute(ATTR_NAME);
-}
-
-- (void)setName:(NSString *)name
-{
-    [self _metaElementImpl]->setAttribute(ATTR_NAME, name);
-}
-
-- (NSString *)scheme
-{
-    return [self _metaElementImpl]->getAttribute(ATTR_SCHEME);
-}
-
-- (void)setScheme:(NSString *)scheme
-{
-    [self _metaElementImpl]->setAttribute(ATTR_SCHEME, scheme);
-}
-
- at end
-
- at implementation DOMHTMLBaseElement
-
-- (HTMLBaseElementImpl *)_baseElementImpl
-{
-    return reinterpret_cast<HTMLBaseElementImpl *>(_internal);
-}
-
-- (NSString *)href
-{
-    DOMString s = [self _baseElementImpl]->getAttribute(ATTR_HREF);
-    if (!s.isNull()) {
-        Document doc([self _baseElementImpl]->getDocument());
-        s = doc.completeURL(s);
-    }
-    return s;
-}
-
-- (void)setHref:(NSString *)href
-{
-    [self _baseElementImpl]->setAttribute(ATTR_HREF, href);
-}
-
-- (NSString *)target
-{
-    return [self _baseElementImpl]->getAttribute(ATTR_TARGET);
-}
-
-- (void)setTarget:(NSString *)target
-{
-    [self _baseElementImpl]->setAttribute(ATTR_SCHEME, target);
-}
-
- at end
-
- at implementation DOMHTMLStyleElement
-
-- (HTMLStyleElementImpl *)_styleElementImpl
-{
-    return reinterpret_cast<HTMLStyleElementImpl *>(_internal);
-}
-
-- (BOOL)disabled
-{
-    return ![self _styleElementImpl]->getAttribute(ATTR_DISABLED).isNull();
-}
-
-- (void)setDisabled:(BOOL)disabled
-{
-    [self _styleElementImpl]->setAttribute(ATTR_DISABLED, disabled ? "" : 0);
-}
-
-- (NSString *)media
-{
-    return [self _styleElementImpl]->getAttribute(ATTR_MEDIA);
-}
-
-- (void)setMedia:(NSString *)media
-{
-    [self _styleElementImpl]->setAttribute(ATTR_MEDIA, media);
-}
-
-- (NSString *)type
-{
-    return [self _styleElementImpl]->getAttribute(ATTR_TYPE);
-}
-
-- (void)setType:(NSString *)type
-{
-    [self _styleElementImpl]->setAttribute(ATTR_TYPE, type);
-}
-
- at end
-
- at implementation DOMHTMLBodyElement
-
-- (HTMLBodyElementImpl *)_bodyElementImpl
-{
-    return reinterpret_cast<HTMLBodyElementImpl *>(_internal);
-}
-
-- (NSString *)aLink
-{
-    return [self _bodyElementImpl]->getAttribute(ATTR_ALINK);
-}
-
-- (void)setALink:(NSString *)aLink
-{
-    [self _bodyElementImpl]->setAttribute(ATTR_ALINK, aLink);
-}
-
-- (NSString *)background
-{
-    return [self _bodyElementImpl]->getAttribute(ATTR_BACKGROUND);
-}
-
-- (void)setBackground:(NSString *)background
-{
-    [self _bodyElementImpl]->setAttribute(ATTR_BACKGROUND, background);
-}
-
-- (NSString *)bgColor
-{
-    return [self _bodyElementImpl]->getAttribute(ATTR_BGCOLOR);
-}
-
-- (void)setBgColor:(NSString *)bgColor
-{
-    [self _bodyElementImpl]->setAttribute(ATTR_BGCOLOR, bgColor);
-}
-
-- (NSString *)link
-{
-    return [self _bodyElementImpl]->getAttribute(ATTR_LINK);
-}
-
-- (void)setLink:(NSString *)link
-{
-    [self _bodyElementImpl]->setAttribute(ATTR_LINK, link);
-}
-
-- (NSString *)text
-{
-    return [self _bodyElementImpl]->getAttribute(ATTR_TEXT);
-}
-
-- (void)setText:(NSString *)text
-{
-    [self _bodyElementImpl]->setAttribute(ATTR_TEXT, text);
-}
-
-- (NSString *)vLink
-{
-    return [self _bodyElementImpl]->getAttribute(ATTR_VLINK);
-}
-
-- (void)setVLink:(NSString *)vLink
-{
-    [self _bodyElementImpl]->setAttribute(ATTR_VLINK, vLink);
-}
-
- at end
-
- at implementation DOMHTMLFormElement
-
-- (id)_initWithFormElementImpl:(HTMLElementImpl *)impl
-{
-    ASSERT(impl);
-    
-    [super _init];
-    _internal = reinterpret_cast<DOMObjectInternal *>(impl);
-    impl->ref();
-    setDOMWrapperForImpl(self, impl);
-    return self;
-}
-
-+ (DOMHTMLFormElement *)_formElementWithImpl:(HTMLFormElementImpl *)impl
-{
-    if (!impl)
-        return nil;
-    
-    id cachedInstance;
-    cachedInstance = getDOMWrapperForImpl(impl);
-    if (cachedInstance)
-        return [[cachedInstance retain] autorelease];
-    
-    return [[[self alloc] _initWithFormElementImpl:impl] autorelease];
-}
-
-- (HTMLFormElementImpl *)_formElementImpl
-{
-    return reinterpret_cast<HTMLFormElementImpl *>(_internal);
-}
-
-- (DOMHTMLCollection *)elements
-{
-    HTMLCollectionImpl *collection = new HTMLFormCollectionImpl([self _formElementImpl]);
-    return [DOMHTMLCollection _collectionWithImpl:collection];
-}
-
-- (long)length
-{
-    return [self _formElementImpl]->length();
-}
-
-- (NSString *)name
-{
-    return [self _formElementImpl]->getAttribute(ATTR_NAME);
-}
-
-- (void)setName:(NSString *)name
-{
-    [self _formElementImpl]->setAttribute(ATTR_NAME, name);
-}
-
-- (NSString *)acceptCharset
-{
-    return [self _formElementImpl]->getAttribute(ATTR_ACCEPT_CHARSET);
-}
-
-- (void)setAcceptCharset:(NSString *)acceptCharset
-{
-    [self _formElementImpl]->setAttribute(ATTR_ACCEPT_CHARSET, acceptCharset);
-}
-
-- (NSString *)action
-{
-    return [self _formElementImpl]->getAttribute(ATTR_ACTION);
-}
-
-- (void)setAction:(NSString *)action
-{
-    [self _formElementImpl]->setAttribute(ATTR_ACTION, action);
-}
-
-- (NSString *)enctype
-{
-    return [self _formElementImpl]->getAttribute(ATTR_ENCTYPE);
-}
-
-- (void)setEnctype:(NSString *)enctype
-{
-    [self _formElementImpl]->setAttribute(ATTR_ENCTYPE, enctype);
-}
-
-- (NSString *)method
-{
-    return [self _formElementImpl]->getAttribute(ATTR_METHOD);
-}
-
-- (void)setMethod:(NSString *)method
-{
-    [self _formElementImpl]->setAttribute(ATTR_METHOD, method);
-}
-
-- (NSString *)target
-{
-    return [self _formElementImpl]->getAttribute(ATTR_TARGET);
-}
-
-- (void)setTarget:(NSString *)target
-{
-    [self _formElementImpl]->setAttribute(ATTR_TARGET, target);
-}
-
-- (void)submit
-{
-    [self _formElementImpl]->submit(false);
-}
-
-- (void)reset
-{
-    [self _formElementImpl]->reset();
-}
-
- at end
-
- at implementation DOMHTMLIsIndexElement
-
-- (HTMLIsIndexElementImpl *)_isIndexElementImpl
-{
-    return reinterpret_cast<HTMLIsIndexElementImpl *>(_internal);
-}
-
-- (DOMHTMLFormElement *)form
-{
-    return [DOMHTMLFormElement _formElementWithImpl:[self _isIndexElementImpl]->form()];
-}
-
-- (NSString *)prompt
-{
-    return [self _isIndexElementImpl]->getAttribute(ATTR_PROMPT);
-}
-
-- (void)setPrompt:(NSString *)prompt
-{
-    [self _isIndexElementImpl]->setAttribute(ATTR_PROMPT, prompt);
-}
-
- at end
-
- at implementation DOMHTMLSelectElement
-
-- (HTMLSelectElementImpl *)_selectElementImpl
-{
-    return reinterpret_cast<HTMLSelectElementImpl *>(_internal);
-}
-
-- (NSString *)type
-{
-    return [self _selectElementImpl]->type();
-}
-
-- (long)selectedIndex
-{
-    return [self _selectElementImpl]->selectedIndex();
-}
-
-- (void)setSelectedIndex:(long)selectedIndex
-{
-    [self _selectElementImpl]->setSelectedIndex(selectedIndex);
-}
-
-- (NSString *)value
-{
-    return [self _selectElementImpl]->value();
-}
-
-- (void)setValue:(NSString *)value
-{
-    DOMString s(value);
-    [self _selectElementImpl]->setValue(s.implementation());
-}
-
-- (long)length
-{
-    return [self _selectElementImpl]->length();
-}
-
-- (void)setLength:(long)length
-{
-    ASSERT_WITH_MESSAGE(0, "not implemented by khtml");
-}
-
-- (DOMHTMLFormElement *)form
-{
-    return [DOMHTMLFormElement _formElementWithImpl:[self _selectElementImpl]->form()];
-}
-
-- (DOMHTMLOptionsCollection *)options
-{
-    // We need to implement a khtml element to back the HTMLOptionsCollection object 
-    ASSERT_WITH_MESSAGE(0, "not implemented");
-    return nil;
-}
-
-- (BOOL)disabled
-{
-    return ![self _selectElementImpl]->getAttribute(ATTR_DISABLED).isNull();
-}
-
-- (void)setDisabled:(BOOL)disabled
-{
-    [self _selectElementImpl]->setAttribute(ATTR_DISABLED, disabled ? "" : 0);
-}
-
-- (BOOL)multiple
-{
-    return ![self _selectElementImpl]->getAttribute(ATTR_MULTIPLE).isNull();
-}
-
-- (void)setMultiple:(BOOL)multiple
-{
-    [self _selectElementImpl]->setAttribute(ATTR_MULTIPLE, multiple ? "" : 0);
-}
-
-- (NSString *)name
-{
-    return [self _selectElementImpl]->name();
-}
-
-- (void)setName:(NSString *)name
-{
-    [self _selectElementImpl]->setName(name);
-}
-
-- (long)size
-{
-    return [self _selectElementImpl]->getAttribute(ATTR_SIZE).toInt();
-}
-
-- (void)setSize:(long)size
-{
-	DOMString value(QString::number(size));
-    [self _selectElementImpl]->setAttribute(ATTR_SIZE, value);
-}
-
-- (long)tabIndex
-{
-    return [self _selectElementImpl]->tabIndex();
-}
-
-- (void)setTabIndex:(long)tabIndex
-{
-    [self _selectElementImpl]->setTabIndex(tabIndex);
-}
-
-- (void)add:(DOMHTMLElement *)element :(DOMHTMLElement *)before
-{
-    [self _selectElementImpl]->add([element _HTMLElementImpl], [before _HTMLElementImpl]);
-}
-
-- (void)remove:(long)index
-{
-    [self _selectElementImpl]->remove(index);
-}
-
-- (void)blur
-{
-    [self _selectElementImpl]->blur();
-}
-
-- (void)focus
-{
-    [self _selectElementImpl]->focus();
-}
-
- at end
-
- at implementation DOMHTMLOptGroupElement
-
-- (HTMLOptGroupElementImpl *)_optGroupElementImpl
-{
-    return reinterpret_cast<HTMLOptGroupElementImpl *>(_internal);
-}
-
-- (BOOL)disabled
-{
-    return ![self _optGroupElementImpl]->getAttribute(ATTR_DISABLED).isNull();
-}
-
-- (void)setDisabled:(BOOL)disabled
-{
-    [self _optGroupElementImpl]->setAttribute(ATTR_DISABLED, disabled ? "" : 0);
-}
-
-- (NSString *)label
-{
-    return [self _optGroupElementImpl]->getAttribute(ATTR_LABEL);
-}
-
-- (void)setLabel:(NSString *)label
-{
-    [self _optGroupElementImpl]->setAttribute(ATTR_LABEL, label);
-}
-
- at end
-
- at implementation DOMHTMLOptionElement
-
-- (HTMLOptionElementImpl *)_optionElementImpl
-{
-    return reinterpret_cast<HTMLOptionElementImpl *>(_internal);
-}
-
-- (DOMHTMLFormElement *)form
-{
-    return [DOMHTMLFormElement _formElementWithImpl:[self _optionElementImpl]->form()];
-}
-
-- (BOOL)defaultSelected
-{
-    return ![self _optionElementImpl]->getAttribute(ATTR_SELECTED).isNull();
-}
-
-- (void)setDefaultSelected:(BOOL)defaultSelected
-{
-    [self _optionElementImpl]->setAttribute(ATTR_SELECTED, defaultSelected ? "" : 0);
-}
-
-- (NSString *)text
-{
-    return [self _optionElementImpl]->text();
-}
-
-- (long)index
-{
-    return [self _optionElementImpl]->index();
-}
-
-- (BOOL)disabled
-{
-    return ![self _optionElementImpl]->getAttribute(ATTR_DISABLED).isNull();
-}
-
-- (void)setDisabled:(BOOL)disabled
-{
-    [self _optionElementImpl]->setAttribute(ATTR_DISABLED, disabled ? "" : 0);
-}
-
-- (NSString *)label
-{
-    return [self _optionElementImpl]->getAttribute(ATTR_LABEL);
-}
-
-- (void)setLabel:(NSString *)label
-{
-    [self _optionElementImpl]->setAttribute(ATTR_LABEL, label);
-}
-
-- (BOOL)selected
-{
-    return [self _optionElementImpl]->selected();
-}
-
-- (void)setSelected:(BOOL)selected
-{
-    [self _optionElementImpl]->setSelected(selected);
-}
-
-- (NSString *)value
-{
-    return [self _optionElementImpl]->value();
-}
-
-- (void)setValue:(NSString *)value
-{
-    DOMString string = value;
-    [self _optionElementImpl]->setValue(string.implementation());
-}
-
- at end
-
- at implementation DOMHTMLInputElement
-
-- (HTMLInputElementImpl *)_inputElementImpl
-{
-    return reinterpret_cast<HTMLInputElementImpl *>(_internal);
-}
-
-- (NSString *)defaultValue
-{
-    return [self _inputElementImpl]->getAttribute(ATTR_VALUE);
-}
-
-- (void)setDefaultValue:(NSString *)defaultValue
-{
-    [self _inputElementImpl]->setAttribute(ATTR_VALUE, defaultValue);
-}
-
-- (BOOL)defaultChecked
-{
-    return [self _inputElementImpl]->getAttribute(ATTR_CHECKED).isNull();
-}
-
-- (void)setDefaultChecked:(BOOL)defaultChecked
-{
-    [self _inputElementImpl]->setAttribute(ATTR_CHECKED, defaultChecked ? "" : 0);
-}
-
-- (DOMHTMLFormElement *)form
-{
-    return [DOMHTMLFormElement _formElementWithImpl:[self _inputElementImpl]->form()];
-}
-
-- (NSString *)accept
-{
-    return [self _inputElementImpl]->getAttribute(ATTR_ACCEPT);
-}
-
-- (void)setAccept:(NSString *)accept
-{
-    [self _inputElementImpl]->setAttribute(ATTR_ACCEPT, accept);
-}
-
-- (NSString *)accessKey
-{
-    return [self _inputElementImpl]->getAttribute(ATTR_ACCESSKEY);
-}
-
-- (void)setAccessKey:(NSString *)accessKey
-{
-    [self _inputElementImpl]->setAttribute(ATTR_ACCESSKEY, accessKey);
-}
-
-- (NSString *)align
-{
-    return [self _inputElementImpl]->getAttribute(ATTR_ALIGN);
-}
-
-- (void)setAlign:(NSString *)align
-{
-    [self _inputElementImpl]->setAttribute(ATTR_ALIGN, align);
-}
-
-- (NSString *)alt
-{
-    return [self _inputElementImpl]->getAttribute(ATTR_ALT);
-}
-
-- (void)setAlt:(NSString *)alt
-{
-    [self _inputElementImpl]->setAttribute(ATTR_ALT, alt);
-}
-
-- (BOOL)checked
-{
-    return [self _inputElementImpl]->checked();
-}
-
-- (void)setChecked:(BOOL)checked
-{
-    return [self _inputElementImpl]->setChecked(checked);
-}
-
-- (BOOL)disabled
-{
-    return [self _inputElementImpl]->getAttribute(ATTR_DISABLED).isNull();
-}
-
-- (void)setDisabled:(BOOL)disabled
-{
-    [self _inputElementImpl]->setAttribute(ATTR_DISABLED, disabled ? "" : 0);
-}
-
-- (long)maxLength
-{
-    return [self _inputElementImpl]->getAttribute(ATTR_MAXLENGTH).toInt();
-}
-
-- (void)setMaxLength:(long)maxLength
-{
-    DOMString value(QString::number(maxLength));
-    [self _inputElementImpl]->setAttribute(ATTR_MAXLENGTH, value);
-}
-
-- (NSString *)name
-{
-    return [self _inputElementImpl]->name();
-}
-
-- (void)setName:(NSString *)name
-{
-    [self _inputElementImpl]->setName(name);
-}
-
-- (BOOL)readOnly
-{
-    return [self _inputElementImpl]->getAttribute(ATTR_READONLY).isNull();
-}
-
-- (void)setReadOnly:(BOOL)readOnly
-{
-    [self _inputElementImpl]->setAttribute(ATTR_READONLY, readOnly ? "" : 0);
-}
-
-- (NSString *)size
-{
-    return [self _inputElementImpl]->getAttribute(ATTR_SIZE);
-}
-
-- (void)setSize:(NSString *)size
-{
-    [self _inputElementImpl]->setAttribute(ATTR_SIZE, size);
-}
-
-- (NSString *)src
-{
-    DOMString s = [self _inputElementImpl]->getAttribute(ATTR_SRC);
-    if (!s.isNull()) {
-        Document doc([self _inputElementImpl]->getDocument());
-        s = doc.completeURL(s);
-    }
-    return s;
-}
-
-- (void)setSrc:(NSString *)src
-{
-    [self _inputElementImpl]->setAttribute(ATTR_SRC, src);
-}
-
-- (long)tabIndex
-{
-    return [self _inputElementImpl]->tabIndex();
-}
-
-- (void)setTabIndex:(long)tabIndex
-{
-    [self _inputElementImpl]->setTabIndex(tabIndex);
-}
-
-- (NSString *)type
-{
-    return [self _inputElementImpl]->type();
-}
-
-- (void)setType:(NSString *)type
-{
-    [self _inputElementImpl]->setType(type);
-}
-
-- (NSString *)useMap
-{
-    return [self _inputElementImpl]->getAttribute(ATTR_USEMAP);
-}
-
-- (void)setUseMap:(NSString *)useMap
-{
-    [self _inputElementImpl]->setAttribute(ATTR_USEMAP, useMap);
-}
-
-- (NSString *)value
-{
-    return [self _inputElementImpl]->value();
-}
-
-- (void)setValue:(NSString *)value
-{
-    [self _inputElementImpl]->setValue(value);
-}
-
-- (void)blur
-{
-    [self _inputElementImpl]->blur();
-}
-
-- (void)focus
-{
-    [self _inputElementImpl]->focus();
-}
-
-- (void)select
-{
-    [self _inputElementImpl]->select();
-}
-
-- (void)click
-{
-    [self _inputElementImpl]->click();
-}
-
- at end
-
- at implementation DOMHTMLTextAreaElement
-
-- (HTMLTextAreaElementImpl *)_textAreaElementImpl
-{
-    return reinterpret_cast<HTMLTextAreaElementImpl *>(_internal);
-}
-
-- (NSString *)defaultValue
-{
-    return [self _textAreaElementImpl]->defaultValue();
-}
-
-- (void)setDefaultValue:(NSString *)defaultValue
-{
-    [self _textAreaElementImpl]->setDefaultValue(defaultValue);
-}
-
-- (DOMHTMLFormElement *)form
-{
-    return [DOMHTMLFormElement _formElementWithImpl:[self _textAreaElementImpl]->form()];
-}
-
-- (NSString *)accessKey
-{
-    return [self _textAreaElementImpl]->getAttribute(ATTR_ACCESSKEY);
-}
-
-- (void)setAccessKey:(NSString *)accessKey
-{
-    [self _textAreaElementImpl]->setAttribute(ATTR_ACCESSKEY, accessKey);
-}
-
-- (long)cols
-{
-    return [self _textAreaElementImpl]->getAttribute(ATTR_ACCESSKEY).toInt();
-}
-
-- (void)setCols:(long)cols
-{
-	DOMString value(QString::number(cols));
-    [self _textAreaElementImpl]->setAttribute(ATTR_COLS, value);
-}
-
-- (BOOL)disabled
-{
-    return [self _textAreaElementImpl]->getAttribute(ATTR_DISABLED).isNull();
-}
-
-- (void)setDisabled:(BOOL)disabled
-{
-    [self _textAreaElementImpl]->setAttribute(ATTR_DISABLED, disabled ? "" : 0);
-}
-
-- (NSString *)name
-{
-    return [self _textAreaElementImpl]->name();
-}
-
-- (void)setName:(NSString *)name
-{
-    [self _textAreaElementImpl]->setName(name);
-}
-
-- (BOOL)readOnly
-{
-    return [self _textAreaElementImpl]->getAttribute(ATTR_READONLY).isNull();
-}
-
-- (void)setReadOnly:(BOOL)readOnly
-{
-    [self _textAreaElementImpl]->setAttribute(ATTR_READONLY, readOnly ? "" : 0);
-}
-
-- (long)rows
-{
-    return [self _textAreaElementImpl]->getAttribute(ATTR_ROWS).toInt();
-}
-
-- (void)setRows:(long)rows
-{
-	DOMString value(QString::number(rows));
-    [self _textAreaElementImpl]->setAttribute(ATTR_ROWS, value);
-}
-
-- (long)tabIndex
-{
-    return [self _textAreaElementImpl]->tabIndex();
-}
-
-- (void)setTabIndex:(long)tabIndex
-{
-    [self _textAreaElementImpl]->setTabIndex(tabIndex);
-}
-
-- (NSString *)type
-{
-    return [self _textAreaElementImpl]->type();
-}
-
-- (void)setType:(NSString *)type
-{
-    ASSERT_WITH_MESSAGE(0, "not implemented");
-}
-
-- (NSString *)value
-{
-    return [self _textAreaElementImpl]->value();
-}
-
-- (void)setValue:(NSString *)value
-{
-    [self _textAreaElementImpl]->setValue(value);
-}
-
-- (void)blur
-{
-    [self _textAreaElementImpl]->blur();
-}
-
-- (void)focus
-{
-    [self _textAreaElementImpl]->focus();
-}
-
-- (void)select
-{
-    [self _textAreaElementImpl]->select();
-}
-
- at end
-
- at implementation DOMHTMLButtonElement
-
-- (HTMLButtonElementImpl *)_buttonElementImpl
-{
-    return reinterpret_cast<HTMLButtonElementImpl *>(_internal);
-}
-
-- (DOMHTMLFormElement *)form
-{
-    return [DOMHTMLFormElement _formElementWithImpl:[self _buttonElementImpl]->form()];
-}
-
-- (NSString *)accessKey
-{
-    return [self _buttonElementImpl]->getAttribute(ATTR_ACCESSKEY);
-}
-
-- (void)setAccessKey:(NSString *)accessKey
-{
-    [self _buttonElementImpl]->setAttribute(ATTR_ACCESSKEY, accessKey);
-}
-
-- (BOOL)disabled
-{
-    return [self _buttonElementImpl]->getAttribute(ATTR_DISABLED).isNull();
-}
-
-- (void)setDisabled:(BOOL)disabled
-{
-    [self _buttonElementImpl]->setAttribute(ATTR_DISABLED, disabled ? "" : 0);
-}
-
-- (NSString *)name
-{
-    return [self _buttonElementImpl]->name();
-}
-
-- (void)setName:(NSString *)name
-{
-    [self _buttonElementImpl]->setName(name);
-}
-
-- (long)tabIndex
-{
-    return [self _buttonElementImpl]->tabIndex();
-}
-
-- (void)setTabIndex:(long)tabIndex
-{
-    [self _buttonElementImpl]->setTabIndex(tabIndex);
-}
-
-- (NSString *)type
-{
-    return [self _buttonElementImpl]->type();
-}
-
-- (NSString *)value
-{
-    return [self _buttonElementImpl]->getAttribute(ATTR_VALUE);
-}
-
-- (void)setValue:(NSString *)value
-{
-    [self _buttonElementImpl]->setAttribute(ATTR_VALUE, value);
-}
-
- at end
-
- at implementation DOMHTMLLabelElement
-
-- (HTMLLabelElementImpl *)_labelElementImpl
-{
-    return reinterpret_cast<HTMLLabelElementImpl *>(_internal);
-}
-
-- (DOMHTMLFormElement *)form
-{
-    ElementImpl *formElement = [self _labelElementImpl]->formElement();
-    if (!formElement)
-        return 0;
-    return [DOMHTMLFormElement _formElementWithImpl:static_cast<HTMLGenericFormElementImpl *>(formElement)->form()];
-}
-
-- (NSString *)accessKey
-{
-    return [self _labelElementImpl]->getAttribute(ATTR_ACCESSKEY);
-}
-
-- (void)setAccessKey:(NSString *)accessKey
-{
-    [self _labelElementImpl]->setAttribute(ATTR_ACCESSKEY, accessKey);
-}
-
-- (NSString *)htmlFor
-{
-    return [self _labelElementImpl]->getAttribute(ATTR_FOR);
-}
-
-- (void)setHtmlFor:(NSString *)htmlFor
-{
-    [self _labelElementImpl]->setAttribute(ATTR_FOR, htmlFor);
-}
-
- at end
-
- at implementation DOMHTMLFieldSetElement
-
-- (HTMLFieldSetElementImpl *)_fieldSetElementImpl
-{
-    return reinterpret_cast<HTMLFieldSetElementImpl *>(_internal);
-}
-
-- (DOMHTMLFormElement *)form
-{
-    return [DOMHTMLFormElement _formElementWithImpl:[self _fieldSetElementImpl]->form()];
-}
-
- at end
-
- at implementation DOMHTMLLegendElement
-
-- (HTMLLegendElementImpl *)_legendElementImpl
-{
-    return reinterpret_cast<HTMLLegendElementImpl *>(_internal);
-}
-
-- (DOMHTMLFormElement *)form
-{
-    return [DOMHTMLFormElement _formElementWithImpl:[self _legendElementImpl]->form()];
-}
-
-- (NSString *)accessKey
-{
-    return [self _legendElementImpl]->getAttribute(ATTR_ACCESSKEY);
-}
-
-- (void)setAccessKey:(NSString *)accessKey
-{
-    [self _legendElementImpl]->setAttribute(ATTR_ACCESSKEY, accessKey);
-}
-
-- (NSString *)align
-{
-    return [self _legendElementImpl]->getAttribute(ATTR_ALIGN);
-}
-
-- (void)setAlign:(NSString *)align
-{
-    [self _legendElementImpl]->setAttribute(ATTR_ALIGN, align);
-}
-
- at end
-
- at implementation DOMHTMLUListElement
-
-- (HTMLUListElementImpl *)_uListElementImpl
-{
-    return reinterpret_cast<HTMLUListElementImpl *>(_internal);
-}
-
-- (BOOL)compact
-{
-    return [self _uListElementImpl]->getAttribute(ATTR_COMPACT).isNull();
-}
-
-- (void)setCompact:(BOOL)compact
-{
-    [self _uListElementImpl]->setAttribute(ATTR_COMPACT, compact ? "" : 0);
-}
-
-- (NSString *)type
-{
-    return [self _uListElementImpl]->getAttribute(ATTR_TYPE);
-}
-
-- (void)setType:(NSString *)type
-{
-    [self _uListElementImpl]->setAttribute(ATTR_TYPE, type);
-}
-
- at end
-
- at implementation DOMHTMLOListElement
-
-- (HTMLOListElementImpl *)_oListElementImpl
-{
-    return reinterpret_cast<HTMLOListElementImpl *>(_internal);
-}
-
-- (BOOL)compact
-{
-    return [self _oListElementImpl]->getAttribute(ATTR_COMPACT).isNull();
-}
-
-- (void)setCompact:(BOOL)compact
-{
-    [self _oListElementImpl]->setAttribute(ATTR_COMPACT, compact ? "" : 0);
-}
-
-- (long)start
-{
-    return [self _oListElementImpl]->getAttribute(ATTR_START).toInt();
-}
-
-- (void)setStart:(long)start
-{
-	DOMString value(QString::number(start));
-    [self _oListElementImpl]->setAttribute(ATTR_START, value);
-}
-
-- (NSString *)type
-{
-    return [self _oListElementImpl]->getAttribute(ATTR_TYPE);
-}
-
-- (void)setType:(NSString *)type
-{
-    [self _oListElementImpl]->setAttribute(ATTR_TYPE, type);
-}
-
- at end
-
- at implementation DOMHTMLDListElement
-
-- (HTMLDListElementImpl *)_dListElementImpl
-{
-    return reinterpret_cast<HTMLDListElementImpl *>(_internal);
-}
-
-- (BOOL)compact
-{
-    return [self _dListElementImpl]->getAttribute(ATTR_COMPACT).isNull();
-}
-
-- (void)setCompact:(BOOL)compact
-{
-    [self _dListElementImpl]->setAttribute(ATTR_COMPACT, compact ? "" : 0);
-}
-
- at end
-
- at implementation DOMHTMLDirectoryElement
-
-- (HTMLDirectoryElementImpl *)_directoryListElementImpl
-{
-    return reinterpret_cast<HTMLDirectoryElementImpl *>(_internal);
-}
-
-- (BOOL)compact
-{
-    return [self _directoryListElementImpl]->getAttribute(ATTR_COMPACT).isNull();
-}
-
-- (void)setCompact:(BOOL)compact
-{
-    [self _directoryListElementImpl]->setAttribute(ATTR_COMPACT, compact ? "" : 0);
-}
-
- at end
-
- at implementation DOMHTMLMenuElement
-
-- (HTMLMenuElementImpl *)_menuListElementImpl
-{
-    return reinterpret_cast<HTMLMenuElementImpl *>(_internal);
-}
-
-- (BOOL)compact
-{
-    return [self _menuListElementImpl]->getAttribute(ATTR_COMPACT).isNull();
-}
-
-- (void)setCompact:(BOOL)compact
-{
-    [self _menuListElementImpl]->setAttribute(ATTR_COMPACT, compact ? "" : 0);
-}
-
- at end
-
- at implementation DOMHTMLLIElement
-
-- (HTMLLIElementImpl *)_liElementImpl
-{
-    return reinterpret_cast<HTMLLIElementImpl *>(_internal);
-}
-
-- (NSString *)type
-{
-    return [self _liElementImpl]->getAttribute(ATTR_TYPE);
-}
-
-- (void)setType:(NSString *)type
-{
-    [self _liElementImpl]->setAttribute(ATTR_TYPE, type);
-}
-
-- (long)value
-{
-    return [self _liElementImpl]->getAttribute(ATTR_START).toInt();
-}
-
-- (void)setValue:(long)value
-{
-	DOMString string(QString::number(value));
-    [self _liElementImpl]->setAttribute(ATTR_VALUE, string);
-}
-
- at end
-
- at implementation DOMHTMLQuoteElement
-
-- (HTMLGenericElementImpl *)_quoteElementImpl
-{
-    return reinterpret_cast<HTMLGenericElementImpl *>(_internal);
-}
-
-- (NSString *)cite
-{
-    return [self _quoteElementImpl]->getAttribute(ATTR_CITE);
-}
-
-- (void)setCite:(NSString *)cite
-{
-    [self _quoteElementImpl]->setAttribute(ATTR_CITE, cite);
-}
-
- at end
-
- at implementation DOMHTMLDivElement
-
-- (HTMLDivElementImpl *)_divElementImpl
-{
-    return reinterpret_cast<HTMLDivElementImpl *>(_internal);
-}
-
-- (NSString *)align
-{
-    return [self _divElementImpl]->getAttribute(ATTR_ALIGN);
-}
-
-- (void)setAlign:(NSString *)align
-{
-    [self _divElementImpl]->setAttribute(ATTR_ALIGN, align);
-}
-
- at end
-
- at implementation DOMHTMLParagraphElement
-
-- (HTMLParagraphElementImpl *)_paragraphElementImpl
-{
-    return reinterpret_cast<HTMLParagraphElementImpl *>(_internal);
-}
-
-- (NSString *)align
-{
-    return [self _paragraphElementImpl]->getAttribute(ATTR_ALIGN);
-}
-
-- (void)setAlign:(NSString *)align
-{
-    [self _paragraphElementImpl]->setAttribute(ATTR_ALIGN, align);
-}
-
- at end
-
- at implementation DOMHTMLHeadingElement
-
-- (HTMLHeadingElementImpl *)_headingElementImpl
-{
-    return reinterpret_cast<HTMLHeadingElementImpl *>(_internal);
-}
-
-- (NSString *)align
-{
-    return [self _headingElementImpl]->getAttribute(ATTR_ALIGN);
-}
-
-- (void)setAlign:(NSString *)align
-{
-    [self _headingElementImpl]->setAttribute(ATTR_ALIGN, align);
-}
-
- at end
-
- at implementation DOMHTMLPreElement
-
-- (HTMLPreElementImpl *)_preElementImpl
-{
-    return reinterpret_cast<HTMLPreElementImpl *>(_internal);
-}
-
-- (long)width
-{
-    return [self _preElementImpl]->getAttribute(ATTR_WIDTH).toInt();
-}
-
-- (void)setWidth:(long)width
-{
-	DOMString string(QString::number(width));
-    [self _preElementImpl]->setAttribute(ATTR_WIDTH, string);
-}
-
- at end
-
- at implementation DOMHTMLBRElement
-
-- (HTMLBRElementImpl *)_BRElementImpl
-{
-    return reinterpret_cast<HTMLBRElementImpl *>(_internal);
-}
-
-- (NSString *)clear
-{
-    return [self _BRElementImpl]->getAttribute(ATTR_CLEAR);
-}
-
-- (void)setClear:(NSString *)clear
-{
-    [self _BRElementImpl]->setAttribute(ATTR_CLEAR, clear);
-}
-
- at end
-
- at implementation DOMHTMLBaseFontElement
-
-- (HTMLBaseFontElementImpl *)_baseFontElementImpl
-{
-    return reinterpret_cast<HTMLBaseFontElementImpl *>(_internal);
-}
-
-- (NSString *)color
-{
-    return [self _baseFontElementImpl]->getAttribute(ATTR_COLOR);
-}
-
-- (void)setColor:(NSString *)color
-{
-    [self _baseFontElementImpl]->setAttribute(ATTR_COLOR, color);
-}
-
-- (NSString *)face
-{
-    return [self _baseFontElementImpl]->getAttribute(ATTR_FACE);
-}
-
-- (void)setFace:(NSString *)face
-{
-    [self _baseFontElementImpl]->setAttribute(ATTR_FACE, face);
-}
-
-- (NSString *)size
-{
-    return [self _baseFontElementImpl]->getAttribute(ATTR_SIZE);
-}
-
-- (void)setSize:(NSString *)size
-{
-    [self _baseFontElementImpl]->setAttribute(ATTR_SIZE, size);
-}
-
- at end
-
- at implementation DOMHTMLFontElement
-
-- (HTMLFontElementImpl *)_fontElementImpl
-{
-    return reinterpret_cast<HTMLFontElementImpl *>(_internal);
-}
-
-- (NSString *)color
-{
-    return [self _fontElementImpl]->getAttribute(ATTR_COLOR);
-}
-
-- (void)setColor:(NSString *)color
-{
-    [self _fontElementImpl]->setAttribute(ATTR_COLOR, color);
-}
-
-- (NSString *)face
-{
-    return [self _fontElementImpl]->getAttribute(ATTR_FACE);
-}
-
-- (void)setFace:(NSString *)face
-{
-    [self _fontElementImpl]->setAttribute(ATTR_FACE, face);
-}
-
-- (NSString *)size
-{
-    return [self _fontElementImpl]->getAttribute(ATTR_SIZE);
-}
-
-- (void)setSize:(NSString *)size
-{
-    [self _fontElementImpl]->setAttribute(ATTR_SIZE, size);
-}
-
- at end
-
- at implementation DOMHTMLHRElement
-
-- (HTMLHRElementImpl *)_HRElementImpl
-{
-    return reinterpret_cast<HTMLHRElementImpl *>(_internal);
-}
-
-- (NSString *)align
-{
-    return [self _HRElementImpl]->getAttribute(ATTR_ALIGN);
-}
-
-- (void)setAlign:(NSString *)align
-{
-    [self _HRElementImpl]->setAttribute(ATTR_ALIGN, align);
-}
-
-- (BOOL)noShade
-{
-    return [self _HRElementImpl]->getAttribute(ATTR_NOSHADE).isNull();
-}
-
-- (void)setNoShade:(BOOL)noShade
-{
-    [self _HRElementImpl]->setAttribute(ATTR_CHECKED, noShade ? "" : 0);
-}
-
-- (NSString *)size
-{
-    return [self _HRElementImpl]->getAttribute(ATTR_SIZE);
-}
-
-- (void)setSize:(NSString *)size
-{
-    [self _HRElementImpl]->setAttribute(ATTR_SIZE, size);
-}
-
-- (NSString *)width
-{
-    return [self _HRElementImpl]->getAttribute(ATTR_WIDTH);
-}
-
-- (void)setWidth:(NSString *)width
-{
-    [self _HRElementImpl]->setAttribute(ATTR_WIDTH, width);
-}
-
- at end
-
- at implementation DOMHTMLModElement
-
-- (HTMLElementImpl *)_modElementImpl
-{
-    return reinterpret_cast<HTMLElementImpl *>(_internal);
-}
-
-- (NSString *)cite
-{
-    return [self _modElementImpl]->getAttribute(ATTR_CITE);
-}
-
-- (void)setCite:(NSString *)cite
-{
-    [self _modElementImpl]->setAttribute(ATTR_CITE, cite);
-}
-
-- (NSString *)dateTime
-{
-    return [self _modElementImpl]->getAttribute(ATTR_DATETIME);
-}
-
-- (void)setDateTime:(NSString *)dateTime
-{
-    [self _modElementImpl]->setAttribute(ATTR_DATETIME, dateTime);
-}
-
- at end
-
- at implementation DOMHTMLAnchorElement
-
-- (HTMLAnchorElementImpl *)_anchorElementImpl
-{
-    return reinterpret_cast<HTMLAnchorElementImpl *>(_internal);
-}
-
-- (NSString *)accessKey
-{
-    return [self _anchorElementImpl]->getAttribute(ATTR_ACCESSKEY);
-}
-
-- (void)setAccessKey:(NSString *)accessKey
-{
-    [self _anchorElementImpl]->setAttribute(ATTR_ACCESSKEY, accessKey);
-}
-
-- (NSString *)charset
-{
-    return [self _anchorElementImpl]->getAttribute(ATTR_CHARSET);
-}
-
-- (void)setCharset:(NSString *)charset
-{
-    [self _anchorElementImpl]->setAttribute(ATTR_CHARSET, charset);
-}
-
-- (NSString *)coords
-{
-    return [self _anchorElementImpl]->getAttribute(ATTR_COORDS);
-}
-
-- (void)setCoords:(NSString *)coords
-{
-    [self _anchorElementImpl]->setAttribute(ATTR_COORDS, coords);
-}
-
-- (NSString *)href
-{
-    DOMString s = [self _anchorElementImpl]->getAttribute(ATTR_HREF);
-    if (!s.isNull()) {
-        Document doc([self _anchorElementImpl]->getDocument());
-        s = doc.completeURL(s);
-    }
-    return s;
-}
-
-- (void)setHref:(NSString *)href
-{
-    [self _anchorElementImpl]->setAttribute(ATTR_HREF, href);
-}
-
-- (NSString *)hreflang
-{
-    return [self _anchorElementImpl]->getAttribute(ATTR_HREFLANG);
-}
-
-- (void)setHreflang:(NSString *)hreflang
-{
-    [self _anchorElementImpl]->setAttribute(ATTR_HREFLANG, hreflang);
-}
-
-- (NSString *)name
-{
-    return [self _anchorElementImpl]->getAttribute(ATTR_NAME);
-}
-
-- (void)setName:(NSString *)name
-{
-    [self _anchorElementImpl]->setAttribute(ATTR_NAME, name);
-}
-
-- (NSString *)rel
-{
-    return [self _anchorElementImpl]->getAttribute(ATTR_REL);
-}
-
-- (void)setRel:(NSString *)rel
-{
-    [self _anchorElementImpl]->setAttribute(ATTR_REL, rel);
-}
-
-- (NSString *)rev
-{
-    return [self _anchorElementImpl]->getAttribute(ATTR_REV);
-}
-
-- (void)setRev:(NSString *)rev
-{
-    [self _anchorElementImpl]->setAttribute(ATTR_REV, rev);
-}
-
-- (NSString *)shape
-{
-    return [self _anchorElementImpl]->getAttribute(ATTR_SHAPE);
-}
-
-- (void)setShape:(NSString *)shape
-{
-    [self _anchorElementImpl]->setAttribute(ATTR_SHAPE, shape);
-}
-
-- (long)tabIndex
-{
-    return [self _anchorElementImpl]->getAttribute(ATTR_TABINDEX).toInt();
-}
-
-- (void)setTabIndex:(long)tabIndex
-{
-	DOMString string(QString::number(tabIndex));
-    [self _anchorElementImpl]->setAttribute(ATTR_TABINDEX, string);
-}
-
-- (NSString *)target
-{
-    return [self _anchorElementImpl]->getAttribute(ATTR_TARGET);
-}
-
-- (void)setTarget:(NSString *)target
-{
-    [self _anchorElementImpl]->setAttribute(ATTR_TARGET, target);
-}
-
-- (NSString *)type
-{
-    return [self _anchorElementImpl]->getAttribute(ATTR_TYPE);
-}
-
-- (void)setType:(NSString *)type
-{
-    [self _anchorElementImpl]->setAttribute(ATTR_TYPE, type);
-}
-
-- (void)blur
-{
-    HTMLAnchorElementImpl *impl = [self _anchorElementImpl];
-    if (impl->getDocument()->focusNode() == impl)
-        impl->getDocument()->setFocusNode(0);
-}
-
-- (void)focus
-{
-    HTMLAnchorElementImpl *impl = [self _anchorElementImpl];
-    impl->getDocument()->setFocusNode(static_cast<ElementImpl*>(impl));
-}
-
- at end
-
- at implementation DOMHTMLImageElement
-
-- (HTMLImageElementImpl *)_imageElementImpl
-{
-    return reinterpret_cast<HTMLImageElementImpl *>(_internal);
-}
-
-- (NSString *)name
-{
-    return [self _imageElementImpl]->getAttribute(ATTR_NAME);
-}
-
-- (void)setName:(NSString *)name
-{
-    [self _imageElementImpl]->setAttribute(ATTR_NAME, name);
-}
-
-- (NSString *)align
-{
-    return [self _imageElementImpl]->getAttribute(ATTR_ALIGN);
-}
-
-- (void)setAlign:(NSString *)align
-{
-    [self _imageElementImpl]->setAttribute(ATTR_ALIGN, align);
-}
-
-- (NSString *)alt
-{
-    return [self _imageElementImpl]->getAttribute(ATTR_ALT);
-}
-
-- (void)setAlt:(NSString *)alt
-{
-    [self _imageElementImpl]->setAttribute(ATTR_ALT, alt);
-}
-
-- (NSString *)border
-{
-    return [self _imageElementImpl]->getAttribute(ATTR_BORDER);
-}
-
-- (void)setBorder:(NSString *)border
-{
-    [self _imageElementImpl]->setAttribute(ATTR_BORDER, border);
-}
-
-- (long)height
-{
-    return [self _imageElementImpl]->getAttribute(ATTR_HEIGHT).toInt();
-}
-
-- (void)setHeight:(long)height
-{
-    DOMString string(QString::number(height));
-    [self _imageElementImpl]->setAttribute(ATTR_HEIGHT, string);
-}
-
-- (long)hspace
-{
-    return [self _imageElementImpl]->getAttribute(ATTR_HSPACE).toInt();
-}
-
-- (void)setHspace:(long)hspace
-{
-    DOMString string(QString::number(hspace));
-    [self _imageElementImpl]->setAttribute(ATTR_HSPACE, string);
-}
-
-- (BOOL)isMap
-{
-    return [self _imageElementImpl]->getAttribute(ATTR_ISMAP).isNull();
-}
-
-- (void)setIsMap:(BOOL)isMap
-{
-    [self _imageElementImpl]->setAttribute(ATTR_ISMAP, isMap ? "" : 0);
-}
-
-- (NSString *)longDesc
-{
-    return [self _imageElementImpl]->getAttribute(ATTR_LONGDESC);
-}
-
-- (void)setLongDesc:(NSString *)longDesc
-{
-    [self _imageElementImpl]->setAttribute(ATTR_LONGDESC, longDesc);
-}
-
-- (NSString *)src
-{
-    DOMString s = [self _imageElementImpl]->getAttribute(ATTR_SRC);
-    if (!s.isNull()) {
-        Document doc([self _imageElementImpl]->getDocument());
-        s = doc.completeURL(s);
-    }
-    return s;
-}
-
-- (void)setSrc:(NSString *)src
-{
-    [self _imageElementImpl]->setAttribute(ATTR_SRC, src);
-}
-
-- (NSString *)useMap
-{
-    return [self _imageElementImpl]->getAttribute(ATTR_USEMAP);
-}
-
-- (void)setUseMap:(NSString *)useMap
-{
-    [self _imageElementImpl]->setAttribute(ATTR_USEMAP, useMap);
-}
-
-- (long)vspace
-{
-    return [self _imageElementImpl]->getAttribute(ATTR_VSPACE).toInt();
-}
-
-- (void)setVspace:(long)vspace
-{
-    DOMString string(QString::number(vspace));
-    [self _imageElementImpl]->setAttribute(ATTR_VSPACE, string);
-}
-
-- (long)width
-{
-    return [self _imageElementImpl]->getAttribute(ATTR_WIDTH).toInt();
-}
-
-- (void)setWidth:(long)width
-{
-    DOMString string(QString::number(width));
-    [self _imageElementImpl]->setAttribute(ATTR_WIDTH, string);
-}
-
- at end
-
- at implementation DOMHTMLObjectElement
-
-- (HTMLObjectElementImpl *)_objectElementImpl
-{
-    return reinterpret_cast<HTMLObjectElementImpl *>(_internal);
-}
-
-- (DOMHTMLFormElement *)form
-{
-    return [DOMHTMLFormElement _formElementWithImpl:[self _objectElementImpl]->form()];
-}
-
-- (NSString *)code
-{
-    return [self _objectElementImpl]->getAttribute(ATTR_CODE);
-}
-
-- (void)setCode:(NSString *)code
-{
-    [self _objectElementImpl]->setAttribute(ATTR_CODE, code);
-}
-
-- (NSString *)align
-{
-    return [self _objectElementImpl]->getAttribute(ATTR_ALIGN);
-}
-
-- (void)setAlign:(NSString *)align
-{
-    [self _objectElementImpl]->setAttribute(ATTR_ALIGN, align);
-}
-
-- (NSString *)archive
-{
-    return [self _objectElementImpl]->getAttribute(ATTR_ARCHIVE);
-}
-
-- (void)setArchive:(NSString *)archive
-{
-    [self _objectElementImpl]->setAttribute(ATTR_ARCHIVE, archive);
-}
-
-- (NSString *)border
-{
-    return [self _objectElementImpl]->getAttribute(ATTR_BORDER);
-}
-
-- (void)setBorder:(NSString *)border
-{
-    [self _objectElementImpl]->setAttribute(ATTR_BORDER, border);
-}
-
-- (NSString *)codeBase
-{
-    return [self _objectElementImpl]->getAttribute(ATTR_CODEBASE);
-}
-
-- (void)setCodeBase:(NSString *)codeBase
-{
-    [self _objectElementImpl]->setAttribute(ATTR_CODEBASE, codeBase);
-}
-
-- (NSString *)codeType
-{
-    return [self _objectElementImpl]->getAttribute(ATTR_CODETYPE);
-}
-
-- (void)setCodeType:(NSString *)codeType
-{
-    [self _objectElementImpl]->setAttribute(ATTR_CODETYPE, codeType);
-}
-
-- (NSString *)data
-{
-    return [self _objectElementImpl]->getAttribute(ATTR_DATA);
-}
-
-- (void)setData:(NSString *)data
-{
-    [self _objectElementImpl]->setAttribute(ATTR_DATA, data);
-}
-
-- (BOOL)declare
-{
-    return [self _objectElementImpl]->getAttribute(ATTR_DECLARE).isNull();
-}
-
-- (void)setDeclare:(BOOL)declare
-{
-    [self _objectElementImpl]->setAttribute(ATTR_DECLARE, declare ? "" : 0);
-}
-
-- (NSString *)height
-{
-    return [self _objectElementImpl]->getAttribute(ATTR_HEIGHT);
-}
-
-- (void)setHeight:(NSString *)height
-{
-    [self _objectElementImpl]->setAttribute(ATTR_HEIGHT, height);
-}
-
-- (long)hspace
-{
-    return [self _objectElementImpl]->getAttribute(ATTR_HSPACE).toInt();
-}
-
-- (void)setHspace:(long)hspace
-{
-    DOMString string(QString::number(hspace));
-    [self _objectElementImpl]->setAttribute(ATTR_HSPACE, string);
-}
-
-- (NSString *)name
-{
-    return [self _objectElementImpl]->getAttribute(ATTR_NAME);
-}
-
-- (void)setName:(NSString *)name
-{
-    [self _objectElementImpl]->setAttribute(ATTR_NAME, name);
-}
-
-- (NSString *)standby
-{
-    return [self _objectElementImpl]->getAttribute(ATTR_STANDBY);
-}
-
-- (void)setStandby:(NSString *)standby
-{
-    [self _objectElementImpl]->setAttribute(ATTR_STANDBY, standby);
-}
-
-- (long)tabIndex
-{
-    return [self _objectElementImpl]->getAttribute(ATTR_TABINDEX).toInt();
-}
-
-- (void)setTabIndex:(long)tabIndex
-{
-    DOMString string(QString::number(tabIndex));
-    [self _objectElementImpl]->setAttribute(ATTR_TABINDEX, string);
-}
-
-- (NSString *)type
-{
-    return [self _objectElementImpl]->getAttribute(ATTR_TYPE);
-}
-
-- (void)setType:(NSString *)type
-{
-    [self _objectElementImpl]->setAttribute(ATTR_TYPE, type);
-}
-
-- (NSString *)useMap
-{
-    return [self _objectElementImpl]->getAttribute(ATTR_USEMAP);
-}
-
-- (void)setUseMap:(NSString *)useMap
-{
-    [self _objectElementImpl]->setAttribute(ATTR_USEMAP, useMap);
-}
-
-- (long)vspace
-{
-    return [self _objectElementImpl]->getAttribute(ATTR_VSPACE).toInt();
-}
-
-- (void)setVspace:(long)vspace
-{
-    DOMString string(QString::number(vspace));
-    [self _objectElementImpl]->setAttribute(ATTR_VSPACE, string);
-}
-
-- (NSString *)width
-{
-    return [self _objectElementImpl]->getAttribute(ATTR_WIDTH);
-}
-
-- (void)setWidth:(NSString *)width
-{
-    [self _objectElementImpl]->setAttribute(ATTR_WIDTH, width);
-}
-
-- (DOMDocument *)contentDocument
-{
-    return [DOMDocument _documentWithImpl:[self _objectElementImpl]->contentDocument()];
-}
-
- at end
-
- at implementation DOMHTMLParamElement
-
-- (HTMLParamElementImpl *)_paramElementImpl
-{
-    return reinterpret_cast<HTMLParamElementImpl *>(_internal);
-}
-
-- (NSString *)name
-{
-    return [self _paramElementImpl]->getAttribute(ATTR_NAME);
-}
-
-- (void)setName:(NSString *)name
-{
-    [self _paramElementImpl]->setAttribute(ATTR_NAME, name);
-}
-
-- (NSString *)type
-{
-    return [self _paramElementImpl]->getAttribute(ATTR_TYPE);
-}
-
-- (void)setType:(NSString *)type
-{
-    [self _paramElementImpl]->setAttribute(ATTR_TYPE, type);
-}
-
-- (NSString *)value
-{
-    return [self _paramElementImpl]->getAttribute(ATTR_VALUE);
-}
-
-- (void)setValue:(NSString *)value
-{
-    [self _paramElementImpl]->setAttribute(ATTR_VALUE, value);
-}
-
-- (NSString *)valueType
-{
-    return [self _paramElementImpl]->getAttribute(ATTR_VALUETYPE);
-}
-
-- (void)setValueType:(NSString *)valueType
-{
-    [self _paramElementImpl]->setAttribute(ATTR_VALUETYPE, valueType);
-}
-
- at end
-
- at implementation DOMHTMLAppletElement
-
-- (HTMLAppletElementImpl *)_appletElementImpl
-{
-    return reinterpret_cast<HTMLAppletElementImpl *>(_internal);
-}
-
-- (NSString *)align
-{
-    return [self _appletElementImpl]->getAttribute(ATTR_ALIGN);
-}
-
-- (void)setAlign:(NSString *)align
-{
-    [self _appletElementImpl]->setAttribute(ATTR_ALIGN, align);
-}
-
-- (NSString *)alt
-{
-    return [self _appletElementImpl]->getAttribute(ATTR_ALT);
-}
-
-- (void)setAlt:(NSString *)alt
-{
-    [self _appletElementImpl]->setAttribute(ATTR_ALT, alt);
-}
-
-- (NSString *)archive
-{
-    return [self _appletElementImpl]->getAttribute(ATTR_ARCHIVE);
-}
-
-- (void)setArchive:(NSString *)archive
-{
-    [self _appletElementImpl]->setAttribute(ATTR_ARCHIVE, archive);
-}
-
-- (NSString *)code
-{
-    return [self _appletElementImpl]->getAttribute(ATTR_CODE);
-}
-
-- (void)setCode:(NSString *)code
-{
-    [self _appletElementImpl]->setAttribute(ATTR_CODE, code);
-}
-
-- (NSString *)codeBase
-{
-    return [self _appletElementImpl]->getAttribute(ATTR_CODEBASE);
-}
-
-- (void)setCodeBase:(NSString *)codeBase
-{
-    [self _appletElementImpl]->setAttribute(ATTR_CODEBASE, codeBase);
-}
-
-- (NSString *)height
-{
-    return [self _appletElementImpl]->getAttribute(ATTR_HEIGHT);
-}
-
-- (void)setHeight:(NSString *)height
-{
-    [self _appletElementImpl]->setAttribute(ATTR_HEIGHT, height);
-}
-
-- (long)hspace
-{
-    return [self _appletElementImpl]->getAttribute(ATTR_HSPACE).toInt();
-}
-
-- (void)setHspace:(long)hspace
-{
-    DOMString string(QString::number(hspace));
-    [self _appletElementImpl]->setAttribute(ATTR_HSPACE, string);
-}
-
-- (NSString *)name
-{
-    return [self _appletElementImpl]->getAttribute(ATTR_NAME);
-}
-
-- (void)setName:(NSString *)name
-{
-    [self _appletElementImpl]->setAttribute(ATTR_NAME, name);
-}
-
-- (NSString *)object
-{
-    return [self _appletElementImpl]->getAttribute(ATTR_OBJECT);
-}
-
-- (void)setObject:(NSString *)object
-{
-    [self _appletElementImpl]->setAttribute(ATTR_OBJECT, object);
-}
-
-- (long)vspace
-{
-    return [self _appletElementImpl]->getAttribute(ATTR_VSPACE).toInt();
-}
-
-- (void)setVspace:(long)vspace
-{
-    DOMString string(QString::number(vspace));
-    [self _appletElementImpl]->setAttribute(ATTR_VSPACE, string);
-}
-
-- (NSString *)width
-{
-    return [self _appletElementImpl]->getAttribute(ATTR_WIDTH);
-}
-
-- (void)setWidth:(NSString *)width
-{
-    [self _appletElementImpl]->setAttribute(ATTR_WIDTH, width);
-}
-
- at end
-
- at implementation DOMHTMLMapElement
-
-- (HTMLMapElementImpl *)_mapElementImpl
-{
-    return reinterpret_cast<HTMLMapElementImpl *>(_internal);
-}
-
-- (DOMHTMLCollection *)areas
-{
-    HTMLCollectionImpl *collection = new HTMLCollectionImpl([self _mapElementImpl], HTMLCollectionImpl::MAP_AREAS);
-    return [DOMHTMLCollection _collectionWithImpl:collection];
-}
-
-- (NSString *)name
-{
-    return [self _mapElementImpl]->getAttribute(ATTR_NAME);
-}
-
-- (void)setName:(NSString *)name
-{
-    [self _mapElementImpl]->setAttribute(ATTR_NAME, name);
-}
-
- at end
-
- at implementation DOMHTMLAreaElement
-
-- (HTMLAreaElementImpl *)_areaElementImpl
-{
-    return reinterpret_cast<HTMLAreaElementImpl *>(_internal);
-}
-
-- (NSString *)accessKey
-{
-    return [self _areaElementImpl]->getAttribute(ATTR_ACCESSKEY);
-}
-
-- (void)setAccessKey:(NSString *)accessKey
-{
-    [self _areaElementImpl]->setAttribute(ATTR_ACCESSKEY, accessKey);
-}
-
-- (NSString *)alt
-{
-    return [self _areaElementImpl]->getAttribute(ATTR_ALT);
-}
-
-- (void)setAlt:(NSString *)alt
-{
-    [self _areaElementImpl]->setAttribute(ATTR_ALT, alt);
-}
-
-- (NSString *)coords
-{
-    return [self _areaElementImpl]->getAttribute(ATTR_COORDS);
-}
-
-- (void)setCoords:(NSString *)coords
-{
-    [self _areaElementImpl]->setAttribute(ATTR_COORDS, coords);
-}
-
-- (NSString *)href
-{
-    DOMString s = [self _areaElementImpl]->getAttribute(ATTR_HREF);
-    if (!s.isNull()) {
-        Document doc([self _areaElementImpl]->getDocument());
-        s = doc.completeURL(s);
-    }
-    return s;
-}
-
-- (void)setHref:(NSString *)href
-{
-    [self _areaElementImpl]->setAttribute(ATTR_HREF, href);
-}
-
-- (BOOL)noHref
-{
-    return [self _areaElementImpl]->getAttribute(ATTR_NOHREF).isNull();
-}
-
-- (void)setNoHref:(BOOL)noHref
-{
-    [self _areaElementImpl]->setAttribute(ATTR_NOHREF, noHref ? "" : 0);
-}
-
-- (NSString *)shape
-{
-    return [self _areaElementImpl]->getAttribute(ATTR_SHAPE);
-}
-
-- (void)setShape:(NSString *)shape
-{
-    [self _areaElementImpl]->setAttribute(ATTR_SHAPE, shape);
-}
-
-- (long)tabIndex
-{
-    return [self _areaElementImpl]->getAttribute(ATTR_TABINDEX).toInt();
-}
-
-- (void)setTabIndex:(long)tabIndex
-{
-    DOMString string(QString::number(tabIndex));
-    [self _areaElementImpl]->setAttribute(ATTR_TABINDEX, string);
-}
-
-- (NSString *)target
-{
-    return [self _areaElementImpl]->getAttribute(ATTR_TARGET);
-}
-
-- (void)setTarget:(NSString *)target
-{
-    [self _areaElementImpl]->setAttribute(ATTR_TARGET, target);
-}
-
- at end
-
- at implementation DOMHTMLScriptElement
-
-- (HTMLScriptElementImpl *)_scriptElementImpl
-{
-    return reinterpret_cast<HTMLScriptElementImpl *>(_internal);
-}
-
-- (NSString *)text
-{
-    return [self _scriptElementImpl]->getAttribute(ATTR_TEXT);
-}
-
-- (void)setText:(NSString *)text
-{
-    [self _scriptElementImpl]->setAttribute(ATTR_TEXT, text);
-}
-
-- (NSString *)htmlFor
-{
-    ASSERT_WITH_MESSAGE(0, "not implemented by khtml");
-    return nil;
-}
-
-- (void)setHtmlFor:(NSString *)htmlFor
-{
-    ASSERT_WITH_MESSAGE(0, "not implemented by khtml");
-}
-
-- (NSString *)event
-{
-    ASSERT_WITH_MESSAGE(0, "not implemented by khtml");
-    return nil;
-}
-
-- (void)setEvent:(NSString *)event
-{
-    ASSERT_WITH_MESSAGE(0, "not implemented by khtml");
-}
-
-- (NSString *)charset
-{
-    return [self _scriptElementImpl]->getAttribute(ATTR_CHARSET);
-}
-
-- (void)setCharset:(NSString *)charset
-{
-    [self _scriptElementImpl]->setAttribute(ATTR_CHARSET, charset);
-}
-
-- (BOOL)defer
-{
-    return [self _scriptElementImpl]->getAttribute(ATTR_DEFER).isNull();
-}
-
-- (void)setDefer:(BOOL)defer
-{
-    [self _scriptElementImpl]->setAttribute(ATTR_DEFER, defer ? "" : 0);
-}
-
-- (NSString *)src
-{
-    return [self _scriptElementImpl]->getAttribute(ATTR_SRC);
-}
-
-- (void)setSrc:(NSString *)src
-{
-    [self _scriptElementImpl]->setAttribute(ATTR_SRC, src);
-}
-
-- (NSString *)type
-{
-    return [self _scriptElementImpl]->getAttribute(ATTR_TYPE);
-}
-
-- (void)setType:(NSString *)type
-{
-    [self _scriptElementImpl]->setAttribute(ATTR_TYPE, type);
-}
-
- at end
-
- at implementation DOMHTMLTableCaptionElement
-
-- (id)_initWithTableCaptionElement:(HTMLTableCaptionElementImpl *)impl
-{
-    ASSERT(impl);
-    
-    [super _init];
-    _internal = reinterpret_cast<DOMObjectInternal *>(impl);
-    impl->ref();
-    setDOMWrapperForImpl(self, impl);
-    return self;
-}
-
-+ (DOMHTMLTableCaptionElement *)_tableCaptionElementWithImpl:(HTMLTableCaptionElementImpl *)impl
-{
-    if (!impl)
-        return nil;
-    
-    id cachedInstance;
-    cachedInstance = getDOMWrapperForImpl(impl);
-    if (cachedInstance)
-        return [[cachedInstance retain] autorelease];
-    
-    return [[[self alloc] _initWithTableCaptionElement:impl] autorelease];
-}
-
-- (HTMLTableCaptionElementImpl *)_tableCaptionElementImpl
-{
-    return reinterpret_cast<HTMLTableCaptionElementImpl *>(_internal);
-}
-
-- (NSString *)align
-{
-    return [self _tableCaptionElementImpl]->getAttribute(ATTR_ALIGN);
-}
-
-- (void)setAlign:(NSString *)align
-{
-    [self _tableCaptionElementImpl]->setAttribute(ATTR_ALIGN, align);
-}
-
- at end
-
- at implementation DOMHTMLTableSectionElement
-
-- (id)_initWithTableSectionElement:(HTMLTableSectionElementImpl *)impl
-{
-    ASSERT(impl);
-    
-    [super _init];
-    _internal = reinterpret_cast<DOMObjectInternal *>(impl);
-    impl->ref();
-    setDOMWrapperForImpl(self, impl);
-    return self;
-}
-
-+ (DOMHTMLTableSectionElement *)_tableSectionElementWithImpl:(HTMLTableSectionElementImpl *)impl
-{
-    if (!impl)
-        return nil;
-    
-    id cachedInstance;
-    cachedInstance = getDOMWrapperForImpl(impl);
-    if (cachedInstance)
-        return [[cachedInstance retain] autorelease];
-    
-    return [[[self alloc] _initWithTableSectionElement:impl] autorelease];
-}
-
-- (HTMLTableSectionElementImpl *)_tableSectionElementImpl
-{
-    return reinterpret_cast<HTMLTableSectionElementImpl *>(_internal);
-}
-
-- (NSString *)align
-{
-    return [self _tableSectionElementImpl]->getAttribute(ATTR_ALIGN);
-}
-
-- (void)setAlign:(NSString *)align
-{
-    [self _tableSectionElementImpl]->setAttribute(ATTR_ALIGN, align);
-}
-
-- (NSString *)ch
-{
-    return [self _tableSectionElementImpl]->getAttribute(ATTR_CHAR);
-}
-
-- (void)setCh:(NSString *)ch
-{
-    [self _tableSectionElementImpl]->setAttribute(ATTR_CHAR, ch);
-}
-
-- (NSString *)chOff
-{
-    return [self _tableSectionElementImpl]->getAttribute(ATTR_CHAROFF);
-}
-
-- (void)setChOff:(NSString *)chOff
-{
-    [self _tableSectionElementImpl]->setAttribute(ATTR_CHAROFF, chOff);
-}
-
-- (NSString *)vAlign
-{
-    return [self _tableSectionElementImpl]->getAttribute(ATTR_VALIGN);
-}
-
-- (void)setVAlign:(NSString *)vAlign
-{
-    [self _tableSectionElementImpl]->setAttribute(ATTR_VALIGN, vAlign);
-}
-
-- (DOMHTMLCollection *)rows
-{
-    HTMLCollectionImpl *collection = new HTMLCollectionImpl([self _tableSectionElementImpl], HTMLCollectionImpl::TABLE_ROWS);
-    return [DOMHTMLCollection _collectionWithImpl:collection];
-}
-
-- (DOMHTMLElement *)insertRow:(long)index
-{
-    int exceptioncode = 0;
-    HTMLTableElementImpl *impl = static_cast<HTMLTableElementImpl *>([self _tableSectionElementImpl]->insertRow(index, exceptioncode));
-    raiseOnDOMError(exceptioncode);
-    return [DOMHTMLTableElement _tableElementWithImpl:impl];
-}
-
-- (void)deleteRow:(long)index
-{
-    int exceptioncode = 0;
-    [self _tableSectionElementImpl]->deleteRow(index, exceptioncode);
-    raiseOnDOMError(exceptioncode);
-}
-
- at end
-
- at implementation DOMHTMLTableElement
-
-- (id)_initWithTableElement:(HTMLTableElementImpl *)impl
-{
-    ASSERT(impl);
-    
-    [super _init];
-    _internal = reinterpret_cast<DOMObjectInternal *>(impl);
-    impl->ref();
-    setDOMWrapperForImpl(self, impl);
-    return self;
-}
-
-+ (DOMHTMLTableElement *)_tableElementWithImpl:(HTMLTableElementImpl *)impl
-{
-    if (!impl)
-        return nil;
-    
-    id cachedInstance;
-    cachedInstance = getDOMWrapperForImpl(impl);
-    if (cachedInstance)
-        return [[cachedInstance retain] autorelease];
-    
-    return [[[self alloc] _initWithTableElement:impl] autorelease];
-}
-
-- (HTMLTableElementImpl *)_tableElementImpl
-{
-    return reinterpret_cast<HTMLTableElementImpl *>(_internal);
-}
-
-- (DOMHTMLTableCaptionElement *)caption
-{
-    return [DOMHTMLTableCaptionElement _tableCaptionElementWithImpl:[self _tableElementImpl]->caption()];
-}
-
-- (void)setCaption:(DOMHTMLTableCaptionElement *)caption
-{
-    [self _tableElementImpl]->setCaption([caption _tableCaptionElementImpl]);
-}
-
-- (DOMHTMLTableSectionElement *)tHead
-{
-    return [DOMHTMLTableSectionElement _tableSectionElementWithImpl:[self _tableElementImpl]->tHead()];
-}
-
-- (void)setTHead:(DOMHTMLTableSectionElement *)tHead
-{
-    [self _tableElementImpl]->setTHead([tHead _tableSectionElementImpl]);
-}
-
-- (DOMHTMLTableSectionElement *)tFoot
-{
-    return [DOMHTMLTableSectionElement _tableSectionElementWithImpl:[self _tableElementImpl]->tFoot()];
-}
-
-- (void)setTFoot:(DOMHTMLTableSectionElement *)tFoot
-{
-    [self _tableElementImpl]->setTFoot([tFoot _tableSectionElementImpl]);
-}
-
-- (DOMHTMLCollection *)rows
-{
-    HTMLCollectionImpl *collection = new HTMLCollectionImpl([self _tableElementImpl], HTMLCollectionImpl::TABLE_ROWS);
-    return [DOMHTMLCollection _collectionWithImpl:collection];
-}
-
-- (DOMHTMLCollection *)tBodies
-{
-    HTMLCollectionImpl *collection = new HTMLCollectionImpl([self _tableElementImpl], HTMLCollectionImpl::TABLE_TBODIES);
-    return [DOMHTMLCollection _collectionWithImpl:collection];
-}
-
-- (NSString *)align
-{
-    return [self _tableElementImpl]->getAttribute(ATTR_ALIGN);
-}
-
-- (void)setAlign:(NSString *)align
-{
-    [self _tableElementImpl]->setAttribute(ATTR_ALIGN, align);
-}
-
-- (NSString *)bgColor
-{
-    return [self _tableElementImpl]->getAttribute(ATTR_BGCOLOR);
-}
-
-- (void)setBgColor:(NSString *)bgColor
-{
-    [self _tableElementImpl]->setAttribute(ATTR_BGCOLOR, bgColor);
-}
-
-- (NSString *)border
-{
-    return [self _tableElementImpl]->getAttribute(ATTR_BORDER);
-}
-
-- (void)setBorder:(NSString *)border
-{
-    [self _tableElementImpl]->setAttribute(ATTR_BORDER, border);
-}
-
-- (NSString *)cellPadding
-{
-    return [self _tableElementImpl]->getAttribute(ATTR_CELLPADDING);
-}
-
-- (void)setCellPadding:(NSString *)cellPadding
-{
-    [self _tableElementImpl]->setAttribute(ATTR_CELLPADDING, cellPadding);
-}
-
-- (NSString *)cellSpacing
-{
-    return [self _tableElementImpl]->getAttribute(ATTR_CELLSPACING);
-}
-
-- (void)setCellSpacing:(NSString *)cellSpacing
-{
-    [self _tableElementImpl]->setAttribute(ATTR_CELLSPACING, cellSpacing);
-}
-
-- (NSString *)frame
-{
-    return [self _tableElementImpl]->getAttribute(ATTR_FRAME);
-}
-
-- (void)setFrame:(NSString *)frame
-{
-    [self _tableElementImpl]->setAttribute(ATTR_FRAME, frame);
-}
-
-- (NSString *)rules
-{
-    return [self _tableElementImpl]->getAttribute(ATTR_RULES);
-}
-
-- (void)setRules:(NSString *)rules
-{
-    [self _tableElementImpl]->setAttribute(ATTR_RULES, rules);
-}
-
-- (NSString *)summary
-{
-    return [self _tableElementImpl]->getAttribute(ATTR_SUMMARY);
-}
-
-- (void)setSummary:(NSString *)summary
-{
-    [self _tableElementImpl]->setAttribute(ATTR_SUMMARY, summary);
-}
-
-- (NSString *)width
-{
-    return [self _tableElementImpl]->getAttribute(ATTR_WIDTH);
-}
-
-- (void)setWidth:(NSString *)width
-{
-    [self _tableElementImpl]->setAttribute(ATTR_WIDTH, width);
-}
-
-- (DOMHTMLElement *)createTHead
-{
-    HTMLTableSectionElementImpl *impl = static_cast<HTMLTableSectionElementImpl *>([self _tableElementImpl]->createTHead());
-    return [DOMHTMLTableSectionElement _tableSectionElementWithImpl:impl];
-}
-
-- (void)deleteTHead
-{
-    [self _tableElementImpl]->deleteTHead();
-}
-
-- (DOMHTMLElement *)createTFoot
-{
-    HTMLTableSectionElementImpl *impl = static_cast<HTMLTableSectionElementImpl *>([self _tableElementImpl]->createTFoot());
-    return [DOMHTMLTableSectionElement _tableSectionElementWithImpl:impl];
-}
-
-- (void)deleteTFoot
-{
-    [self _tableElementImpl]->deleteTFoot();
-}
-
-- (DOMHTMLElement *)createCaption
-{
-    HTMLTableCaptionElementImpl *impl = static_cast<HTMLTableCaptionElementImpl *>([self _tableElementImpl]->createCaption());
-    return [DOMHTMLTableCaptionElement _tableCaptionElementWithImpl:impl];
-}
-
-- (void)deleteCaption
-{
-    [self _tableElementImpl]->deleteCaption();
-}
-
-- (DOMHTMLElement *)insertRow:(long)index
-{
-    int exceptioncode = 0;
-    HTMLTableElementImpl *impl = static_cast<HTMLTableElementImpl *>([self _tableElementImpl]->insertRow(index, exceptioncode));
-    raiseOnDOMError(exceptioncode);
-    return [DOMHTMLTableElement _tableElementWithImpl:impl];
-}
-
-- (void)deleteRow:(long)index
-{
-    int exceptioncode = 0;
-    [self _tableElementImpl]->deleteRow(index, exceptioncode);
-    raiseOnDOMError(exceptioncode);
-}
-
- at end
-
- at implementation DOMHTMLTableColElement
-
-- (HTMLTableColElementImpl *)_tableColElementImpl
-{
-    return reinterpret_cast<HTMLTableColElementImpl *>(_internal);
-}
-
-- (NSString *)align
-{
-    return [self _tableColElementImpl]->getAttribute(ATTR_ALIGN);
-}
-
-- (void)setAlign:(NSString *)align
-{
-    [self _tableColElementImpl]->setAttribute(ATTR_ALIGN, align);
-}
-
-- (NSString *)ch
-{
-    return [self _tableColElementImpl]->getAttribute(ATTR_CHAR);
-}
-
-- (void)setCh:(NSString *)ch
-{
-    [self _tableColElementImpl]->setAttribute(ATTR_CHAR, ch);
-}
-
-- (NSString *)chOff
-{
-    return [self _tableColElementImpl]->getAttribute(ATTR_CHAROFF);
-}
-
-- (void)setChOff:(NSString *)chOff
-{
-    [self _tableColElementImpl]->setAttribute(ATTR_CHAROFF, chOff);
-}
-
-- (long)span
-{
-    return [self _tableColElementImpl]->getAttribute(ATTR_SPAN).toInt();
-}
-
-- (void)setSpan:(long)span
-{
-    DOMString string(QString::number(span));
-    [self _tableColElementImpl]->setAttribute(ATTR_SPAN, string);
-}
-
-- (NSString *)vAlign
-{
-    return [self _tableColElementImpl]->getAttribute(ATTR_VALIGN);
-}
-
-- (void)setVAlign:(NSString *)vAlign
-{
-    [self _tableColElementImpl]->setAttribute(ATTR_VALIGN, vAlign);
-}
-
-- (NSString *)width
-{
-    return [self _tableColElementImpl]->getAttribute(ATTR_WIDTH);
-}
-
-- (void)setWidth:(NSString *)width
-{
-    [self _tableColElementImpl]->setAttribute(ATTR_WIDTH, width);
-}
-
- at end
-
- at implementation DOMHTMLTableRowElement
-
-- (HTMLTableRowElementImpl *)_tableRowElementImpl
-{
-    return reinterpret_cast<HTMLTableRowElementImpl *>(_internal);
-}
-
-- (long)rowIndex
-{
-    return [self _tableRowElementImpl]->rowIndex();
-}
-
-- (long)sectionRowIndex
-{
-    return [self _tableRowElementImpl]->sectionRowIndex();
-}
-
-- (DOMHTMLCollection *)cells
-{
-    HTMLCollectionImpl *collection = new HTMLCollectionImpl([self _tableRowElementImpl], HTMLCollectionImpl::TR_CELLS);
-    return [DOMHTMLCollection _collectionWithImpl:collection];
-}
-
-- (NSString *)align
-{
-    return [self _tableRowElementImpl]->getAttribute(ATTR_ALIGN);
-}
-
-- (void)setAlign:(NSString *)align
-{
-    [self _tableRowElementImpl]->setAttribute(ATTR_ALIGN, align);
-}
-
-- (NSString *)bgColor
-{
-    return [self _tableRowElementImpl]->getAttribute(ATTR_BGCOLOR);
-}
-
-- (void)setBgColor:(NSString *)bgColor
-{
-    [self _tableRowElementImpl]->setAttribute(ATTR_BGCOLOR, bgColor);
-}
-
-- (NSString *)ch
-{
-    return [self _tableRowElementImpl]->getAttribute(ATTR_CHAR);
-}
-
-- (void)setCh:(NSString *)ch
-{
-    [self _tableRowElementImpl]->setAttribute(ATTR_CHAR, ch);
-}
-
-- (NSString *)chOff
-{
-    return [self _tableRowElementImpl]->getAttribute(ATTR_CHAROFF);
-}
-
-- (void)setChOff:(NSString *)chOff
-{
-    [self _tableRowElementImpl]->setAttribute(ATTR_CHAROFF, chOff);
-}
-
-- (NSString *)vAlign
-{
-    return [self _tableRowElementImpl]->getAttribute(ATTR_VALIGN);
-}
-
-- (void)setVAlign:(NSString *)vAlign
-{
-    [self _tableRowElementImpl]->setAttribute(ATTR_VALIGN, vAlign);
-}
-
-- (DOMHTMLElement *)insertCell:(long)index
-{
-    int exceptioncode = 0;
-    HTMLTableCellElementImpl *impl = static_cast<HTMLTableCellElementImpl *>([self _tableRowElementImpl]->insertCell(index, exceptioncode));
-    raiseOnDOMError(exceptioncode);
-    return [DOMHTMLTableCellElement _tableCellElementWithImpl:impl];
-}
-
-- (void)deleteCell:(long)index
-{
-    int exceptioncode = 0;
-    [self _tableRowElementImpl]->deleteCell(index, exceptioncode);
-    raiseOnDOMError(exceptioncode);
-}
-
- at end
-
- at implementation DOMHTMLTableCellElement
-
-- (id)_initWithTableCellElement:(HTMLTableCellElementImpl *)impl
-{
-    ASSERT(impl);
-    
-    [super _init];
-    _internal = reinterpret_cast<DOMObjectInternal *>(impl);
-    impl->ref();
-    setDOMWrapperForImpl(self, impl);
-    return self;
-}
-
-+ (DOMHTMLTableCellElement *)_tableCellElementWithImpl:(HTMLTableCellElementImpl *)impl
-{
-    if (!impl)
-        return nil;
-    
-    id cachedInstance;
-    cachedInstance = getDOMWrapperForImpl(impl);
-    if (cachedInstance)
-        return [[cachedInstance retain] autorelease];
-    
-    return [[[self alloc] _initWithTableCellElement:impl] autorelease];
-}
-
-- (HTMLTableCellElementImpl *)_tableCellElementImpl
-{
-    return reinterpret_cast<HTMLTableCellElementImpl *>(_internal);
-}
-
-- (long)cellIndex
-{
-    return [self _tableCellElementImpl]->cellIndex();
-}
-
-- (NSString *)abbr
-{
-    return [self _tableCellElementImpl]->getAttribute(ATTR_ABBR);
-}
-
-- (void)setAbbr:(NSString *)abbr
-{
-    [self _tableCellElementImpl]->setAttribute(ATTR_ABBR, abbr);
-}
-
-- (NSString *)align
-{
-    return [self _tableCellElementImpl]->getAttribute(ATTR_ALIGN);
-}
-
-- (void)setAlign:(NSString *)align
-{
-    [self _tableCellElementImpl]->setAttribute(ATTR_ALIGN, align);
-}
-
-- (NSString *)axis
-{
-    return [self _tableCellElementImpl]->getAttribute(ATTR_AXIS);
-}
-
-- (void)setAxis:(NSString *)axis
-{
-    [self _tableCellElementImpl]->setAttribute(ATTR_AXIS, axis);
-}
-
-- (NSString *)bgColor
-{
-    return [self _tableCellElementImpl]->getAttribute(ATTR_BGCOLOR);
-}
-
-- (void)setBgColor:(NSString *)bgColor
-{
-    [self _tableCellElementImpl]->setAttribute(ATTR_BGCOLOR, bgColor);
-}
-
-- (NSString *)ch
-{
-    return [self _tableCellElementImpl]->getAttribute(ATTR_CHAR);
-}
-
-- (void)setCh:(NSString *)ch
-{
-    [self _tableCellElementImpl]->setAttribute(ATTR_CHAR, ch);
-}
-
-- (NSString *)chOff
-{
-    return [self _tableCellElementImpl]->getAttribute(ATTR_CHAROFF);
-}
-
-- (void)setChOff:(NSString *)chOff
-{
-    [self _tableCellElementImpl]->setAttribute(ATTR_CHAROFF, chOff);
-}
-
-- (long)colSpan
-{
-    return [self _tableCellElementImpl]->getAttribute(ATTR_COLSPAN).toInt();
-}
-
-- (void)setColSpan:(long)colSpan
-{
-    DOMString string(QString::number(colSpan));
-    [self _tableCellElementImpl]->setAttribute(ATTR_COLSPAN, string);
-}
-
-- (NSString *)headers
-{
-    return [self _tableCellElementImpl]->getAttribute(ATTR_HEADERS);
-}
-
-- (void)setHeaders:(NSString *)headers
-{
-    [self _tableCellElementImpl]->setAttribute(ATTR_HEADERS, headers);
-}
-
-- (NSString *)height
-{
-    return [self _tableCellElementImpl]->getAttribute(ATTR_HEIGHT);
-}
-
-- (void)setHeight:(NSString *)height
-{
-    [self _tableCellElementImpl]->setAttribute(ATTR_HEIGHT, height);
-}
-
-- (BOOL)noWrap
-{
-    return [self _tableCellElementImpl]->getAttribute(ATTR_NOWRAP).isNull();
-}
-
-- (void)setNoWrap:(BOOL)noWrap
-{
-    [self _tableCellElementImpl]->setAttribute(ATTR_NOWRAP, noWrap ? "" : 0);
-}
-
-- (long)rowSpan
-{
-    return [self _tableCellElementImpl]->getAttribute(ATTR_ROWSPAN).toInt();
-}
-
-- (void)setRowSpan:(long)rowSpan
-{
-    DOMString string(QString::number(rowSpan));
-    [self _tableCellElementImpl]->setAttribute(ATTR_ROWSPAN, string);
-}
-
-- (NSString *)scope
-{
-    return [self _tableCellElementImpl]->getAttribute(ATTR_SCOPE);
-}
-
-- (void)setScope:(NSString *)scope
-{
-    [self _tableCellElementImpl]->setAttribute(ATTR_SCOPE, scope);
-}
-
-- (NSString *)vAlign
-{
-    return [self _tableCellElementImpl]->getAttribute(ATTR_VALIGN);
-}
-
-- (void)setVAlign:(NSString *)vAlign
-{
-    [self _tableCellElementImpl]->setAttribute(ATTR_VALIGN, vAlign);
-}
-
-- (NSString *)width
-{
-    return [self _tableCellElementImpl]->getAttribute(ATTR_WIDTH);
-}
-
-- (void)setWidth:(NSString *)width
-{
-    [self _tableCellElementImpl]->setAttribute(ATTR_WIDTH, width);
-}
-
- at end
-
- at implementation DOMHTMLFrameSetElement
-
-- (HTMLFrameSetElementImpl *)_frameSetElementImpl
-{
-    return reinterpret_cast<HTMLFrameSetElementImpl *>(_internal);
-}
-
-- (NSString *)rows
-{
-    return [self _frameSetElementImpl]->getAttribute(ATTR_ROWS);
-}
-
-- (void)setRows:(NSString *)rows
-{
-    [self _frameSetElementImpl]->setAttribute(ATTR_ROWS, rows);
-}
-
-- (NSString *)cols
-{
-    return [self _frameSetElementImpl]->getAttribute(ATTR_COLS);
-}
-
-- (void)setCols:(NSString *)cols
-{
-    [self _frameSetElementImpl]->setAttribute(ATTR_COLS, cols);
-}
-
- at end
-
- at implementation DOMHTMLFrameElement
-
-- (HTMLFrameElementImpl *)_frameElementImpl
-{
-    return reinterpret_cast<HTMLFrameElementImpl *>(_internal);
-}
-
-
-- (NSString *)frameBorder
-{
-    return [self _frameElementImpl]->getAttribute(ATTR_FRAMEBORDER);
-}
-
-- (void)setFrameBorder:(NSString *)frameBorder
-{
-    [self _frameElementImpl]->setAttribute(ATTR_FRAMEBORDER, frameBorder);
-}
-
-- (NSString *)longDesc
-{
-    return [self _frameElementImpl]->getAttribute(ATTR_LONGDESC);
-}
-
-- (void)setLongDesc:(NSString *)longDesc
-{
-    [self _frameElementImpl]->setAttribute(ATTR_LONGDESC, longDesc);
-}
-
-- (NSString *)marginHeight
-{
-    return [self _frameElementImpl]->getAttribute(ATTR_MARGINHEIGHT);
-}
-
-- (void)setMarginHeight:(NSString *)marginHeight
-{
-    [self _frameElementImpl]->setAttribute(ATTR_MARGINHEIGHT, marginHeight);
-}
-
-- (NSString *)marginWidth
-{
-    return [self _frameElementImpl]->getAttribute(ATTR_MARGINWIDTH);
-}
-
-- (void)setMarginWidth:(NSString *)marginWidth
-{
-    [self _frameElementImpl]->setAttribute(ATTR_MARGINWIDTH, marginWidth);
-}
-
-- (NSString *)name
-{
-    return [self _frameElementImpl]->getAttribute(ATTR_NAME);
-}
-
-- (void)setName:(NSString *)name
-{
-    [self _frameElementImpl]->setAttribute(ATTR_NAME, name);
-}
-
-- (BOOL)noResize
-{
-    return [self _frameElementImpl]->getAttribute(ATTR_NORESIZE).isNull();
-}
-
-- (void)setNoResize:(BOOL)noResize
-{
-    [self _frameElementImpl]->setAttribute(ATTR_NORESIZE, noResize ? "" : 0);
-}
-
-- (NSString *)scrolling
-{
-    return [self _frameElementImpl]->getAttribute(ATTR_SCROLLING);
-}
-
-- (void)setScrolling:(NSString *)scrolling
-{
-    [self _frameElementImpl]->setAttribute(ATTR_SCROLLING, scrolling);
-}
-
-- (NSString *)src
-{
-    return [self _frameElementImpl]->getAttribute(ATTR_SRC);
-}
-
-- (void)setSrc:(NSString *)src
-{
-    [self _frameElementImpl]->setAttribute(ATTR_SRC, src);
-}
-
-- (DOMDocument *)contentDocument
-{
-    return [DOMDocument _documentWithImpl:[self _frameElementImpl]->contentDocument()];
-}
-
- at end
-
- at implementation DOMHTMLIFrameElement
-
-- (HTMLIFrameElementImpl *)_IFrameElementImpl
-{
-    return reinterpret_cast<HTMLIFrameElementImpl *>(_internal);
-}
-
-- (NSString *)align
-{
-    return [self _IFrameElementImpl]->getAttribute(ATTR_ALIGN);
-}
-
-- (void)setAlign:(NSString *)align
-{
-    [self _IFrameElementImpl]->setAttribute(ATTR_ALIGN, align);
-}
-
-- (NSString *)frameBorder
-{
-    return [self _IFrameElementImpl]->getAttribute(ATTR_FRAMEBORDER);
-}
-
-- (void)setFrameBorder:(NSString *)frameBorder
-{
-    [self _IFrameElementImpl]->setAttribute(ATTR_FRAMEBORDER, frameBorder);
-}
-
-- (NSString *)height
-{
-    return [self _IFrameElementImpl]->getAttribute(ATTR_HEIGHT);
-}
-
-- (void)setHeight:(NSString *)height
-{
-    [self _IFrameElementImpl]->setAttribute(ATTR_HEIGHT, height);
-}
-
-- (NSString *)longDesc
-{
-    return [self _IFrameElementImpl]->getAttribute(ATTR_LONGDESC);
-}
-
-- (void)setLongDesc:(NSString *)longDesc
-{
-    [self _IFrameElementImpl]->setAttribute(ATTR_LONGDESC, longDesc);
-}
-
-- (NSString *)marginHeight
-{
-    return [self _IFrameElementImpl]->getAttribute(ATTR_MARGINHEIGHT);
-}
-
-- (void)setMarginHeight:(NSString *)marginHeight
-{
-    [self _IFrameElementImpl]->setAttribute(ATTR_MARGINHEIGHT, marginHeight);
-}
-
-- (NSString *)marginWidth
-{
-    return [self _IFrameElementImpl]->getAttribute(ATTR_MARGINWIDTH);
-}
-
-- (void)setMarginWidth:(NSString *)marginWidth
-{
-    [self _IFrameElementImpl]->setAttribute(ATTR_MARGINWIDTH, marginWidth);
-}
-
-- (NSString *)name
-{
-    return [self _IFrameElementImpl]->getAttribute(ATTR_NAME);
-}
-
-- (void)setName:(NSString *)name
-{
-    [self _IFrameElementImpl]->setAttribute(ATTR_NAME, name);
-}
-
-- (BOOL)noResize
-{
-    return [self _IFrameElementImpl]->getAttribute(ATTR_NORESIZE).isNull();
-}
-
-- (void)setNoResize:(BOOL)noResize
-{
-    [self _IFrameElementImpl]->setAttribute(ATTR_NORESIZE, noResize ? "" : 0);
-}
-
-- (NSString *)scrolling
-{
-    return [self _IFrameElementImpl]->getAttribute(ATTR_SCROLLING);
-}
-
-- (void)setScrolling:(NSString *)scrolling
-{
-    [self _IFrameElementImpl]->setAttribute(ATTR_SCROLLING, scrolling);
-}
-
-- (NSString *)src
-{
-    return [self _IFrameElementImpl]->getAttribute(ATTR_SRC);
-}
-
-- (void)setSrc:(NSString *)src
-{
-    [self _IFrameElementImpl]->setAttribute(ATTR_SRC, src);
-}
-
-- (NSString *)width
-{
-    return [self _IFrameElementImpl]->getAttribute(ATTR_WIDTH);
-}
-
-- (void)setWidth:(NSString *)width
-{
-    [self _IFrameElementImpl]->setAttribute(ATTR_WIDTH, width);
-}
-
-- (DOMDocument *)contentDocument
-{
-    return [DOMDocument _documentWithImpl:[self _IFrameElementImpl]->contentDocument()];
-}
-
- at end

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list