diff --git a/Graphics/UI/Gtk/WebKit/DOM/Attr.chs b/Graphics/UI/Gtk/WebKit/DOM/Attr.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/Attr.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/Attr.chs
@@ -1,6 +1,7 @@
 module Graphics.UI.Gtk.WebKit.DOM.Attr
        (attrGetName, attrGetSpecified, attrSetValue, attrGetValue,
-        attrGetOwnerElement, attrGetIsId)
+        attrGetOwnerElement, attrGetIsId, DOMAttr, DOMAttrClass,
+        castToDOMAttr, gTypeDOMAttr, toDOMAttr)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/BarProp.chs b/Graphics/UI/Gtk/WebKit/DOM/BarProp.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/BarProp.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/BarProp.chs
@@ -1,6 +1,7 @@
 module Graphics.UI.Gtk.WebKit.DOM.BarProp (
 #if WEBKIT_CHECK_VERSION(2,2,2)
-	barPropGetVisible
+        barPropGetVisible, BarProp, BarPropClass, castToBarProp,
+        gTypeBarProp, toBarProp
 #endif
     ) where
 import System.Glib.FFI
diff --git a/Graphics/UI/Gtk/WebKit/DOM/Blob.chs b/Graphics/UI/Gtk/WebKit/DOM/Blob.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/Blob.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/Blob.chs
@@ -1,4 +1,5 @@
-module Graphics.UI.Gtk.WebKit.DOM.Blob (blobGetSize) where
+module Graphics.UI.Gtk.WebKit.DOM.Blob
+       (blobGetSize, Blob, BlobClass, castToBlob, gTypeBlob, toBlob) where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/CSSRule.chs b/Graphics/UI/Gtk/WebKit/DOM/CSSRule.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/CSSRule.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/CSSRule.chs
@@ -2,7 +2,8 @@
        (cUNKNOWN_RULE, cSTYLE_RULE, cCHARSET_RULE, cIMPORT_RULE,
         cMEDIA_RULE, cFONT_FACE_RULE, cPAGE_RULE, cWEBKIT_KEYFRAMES_RULE,
         cWEBKIT_KEYFRAME_RULE, cssRuleSetCssText, cssRuleGetCssText,
-        cssRuleGetParentStyleSheet, cssRuleGetParentRule)
+        cssRuleGetParentStyleSheet, cssRuleGetParentRule, CSSRule,
+        CSSRuleClass, castToCSSRule, gTypeCSSRule, toCSSRule)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/CSSRuleList.chs b/Graphics/UI/Gtk/WebKit/DOM/CSSRuleList.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/CSSRuleList.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/CSSRuleList.chs
@@ -1,5 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.CSSRuleList
-       (cssRuleListItem, cssRuleListGetLength) where
+       (cssRuleListItem, cssRuleListGetLength, CSSRuleList,
+        CSSRuleListClass, castToCSSRuleList, gTypeCSSRuleList,
+        toCSSRuleList)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/CSSStyleDeclaration.chs b/Graphics/UI/Gtk/WebKit/DOM/CSSStyleDeclaration.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/CSSStyleDeclaration.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/CSSStyleDeclaration.chs
@@ -6,7 +6,10 @@
         cssStyleDeclarationGetPropertyShorthand,
         cssStyleDeclarationIsPropertyImplicit,
         cssStyleDeclarationSetCssText, cssStyleDeclarationGetCssText,
-        cssStyleDeclarationGetLength, cssStyleDeclarationGetParentRule)
+        cssStyleDeclarationGetLength, cssStyleDeclarationGetParentRule,
+        CSSStyleDeclaration, CSSStyleDeclarationClass,
+        castToCSSStyleDeclaration, gTypeCSSStyleDeclaration,
+        toCSSStyleDeclaration)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/CSSStyleSheet.chs b/Graphics/UI/Gtk/WebKit/DOM/CSSStyleSheet.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/CSSStyleSheet.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/CSSStyleSheet.chs
@@ -2,7 +2,8 @@
        (cssStyleSheetInsertRule, cssStyleSheetDeleteRule,
         cssStyleSheetAddRule, cssStyleSheetRemoveRule,
         cssStyleSheetGetOwnerRule, cssStyleSheetGetCssRules,
-        cssStyleSheetGetRules)
+        cssStyleSheetGetRules, CSSStyleSheet, CSSStyleSheetClass,
+        castToCSSStyleSheet, gTypeCSSStyleSheet, toCSSStyleSheet)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/CSSValue.chs b/Graphics/UI/Gtk/WebKit/DOM/CSSValue.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/CSSValue.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/CSSValue.chs
@@ -1,6 +1,7 @@
 module Graphics.UI.Gtk.WebKit.DOM.CSSValue
        (cCSS_INHERIT, cCSS_PRIMITIVE_VALUE, cCSS_VALUE_LIST, cCSS_CUSTOM,
-        cssValueSetCssText, cssValueGetCssText, cssValueGetCssValueType)
+        cssValueSetCssText, cssValueGetCssText, cssValueGetCssValueType,
+        CSSValue, CSSValueClass, castToCSSValue, gTypeCSSValue, toCSSValue)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/CharacterData.chs b/Graphics/UI/Gtk/WebKit/DOM/CharacterData.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/CharacterData.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/CharacterData.chs
@@ -2,7 +2,9 @@
        (characterDataSubstringData, characterDataAppendData,
         characterDataInsertData, characterDataDeleteData,
         characterDataReplaceData, characterDataSetData,
-        characterDataGetData, characterDataGetLength)
+        characterDataGetData, characterDataGetLength,
+        CharacterData, CharacterDataClass,
+        castToCharacterData, gTypeCharacterData, toCharacterData)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/Console.chs b/Graphics/UI/Gtk/WebKit/DOM/Console.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/Console.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/Console.chs
@@ -1,5 +1,7 @@
 module Graphics.UI.Gtk.WebKit.DOM.Console
-       (consoleTime, consoleGroupEnd) where
+       (consoleTime, consoleGroupEnd, Console, ConsoleClass,
+        castToConsole, gTypeConsole, toConsole)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/DOMApplicationCache.chs b/Graphics/UI/Gtk/WebKit/DOM/DOMApplicationCache.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/DOMApplicationCache.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/DOMApplicationCache.chs
@@ -6,7 +6,9 @@
         domApplicationCacheOnerror, domApplicationCacheOnnoupdate,
         domApplicationCacheOndownloading, domApplicationCacheOnprogress,
         domApplicationCacheOnupdateready, domApplicationCacheOncached,
-        domApplicationCacheOnobsolete)
+        domApplicationCacheOnobsolete, DOMApplicationCache,
+        DOMApplicationCacheClass, castToDOMApplicationCache,
+        gTypeDOMApplicationCache, toDOMApplicationCache)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/DOMImplementation.chs b/Graphics/UI/Gtk/WebKit/DOM/DOMImplementation.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/DOMImplementation.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/DOMImplementation.chs
@@ -2,7 +2,9 @@
        (domImplementationHasFeature, domImplementationCreateDocumentType,
         domImplementationCreateDocument,
         domImplementationCreateCSSStyleSheet,
-        domImplementationCreateHTMLDocument)
+        domImplementationCreateHTMLDocument, DOMImplementation,
+        DOMImplementationClass, castToDOMImplementation,
+        gTypeDOMImplementation, toDOMImplementation)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/DOMMimeType.chs b/Graphics/UI/Gtk/WebKit/DOM/DOMMimeType.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/DOMMimeType.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/DOMMimeType.chs
@@ -1,6 +1,7 @@
 module Graphics.UI.Gtk.WebKit.DOM.DOMMimeType
        (domMimeTypeGetSuffixes, domMimeTypeGetDescription,
-        domMimeTypeGetEnabledPlugin)
+        domMimeTypeGetEnabledPlugin, DOMMimeType, DOMMimeTypeClass,
+        castToDOMMimeType, gTypeDOMMimeType, toDOMMimeType)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/DOMMimeTypeArray.chs b/Graphics/UI/Gtk/WebKit/DOM/DOMMimeTypeArray.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/DOMMimeTypeArray.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/DOMMimeTypeArray.chs
@@ -1,6 +1,7 @@
 module Graphics.UI.Gtk.WebKit.DOM.DOMMimeTypeArray
        (domMimeTypeArrayItem, domMimeTypeArrayNamedItem,
-        domMimeTypeArrayGetLength)
+        domMimeTypeArrayGetLength, DOMMimeTypeArray, DOMMimeTypeArrayClass,
+        castToDOMMimeTypeArray, gTypeDOMMimeTypeArray, toDOMMimeTypeArray)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/DOMNamedFlowCollection.chs b/Graphics/UI/Gtk/WebKit/DOM/DOMNamedFlowCollection.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/DOMNamedFlowCollection.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/DOMNamedFlowCollection.chs
@@ -2,7 +2,9 @@
        (
 #if WEBKIT_CHECK_VERSION(2,2,2)
         domNamedFlowCollectionItem, domNamedFlowCollectionNamedItem,
-        domNamedFlowCollectionGetLength
+        domNamedFlowCollectionGetLength, DOMNamedFlowCollection,
+        DOMNamedFlowCollectionClass, castToDOMNamedFlowCollection,
+        gTypeDOMNamedFlowCollection, toDOMNamedFlowCollection
 #endif
        )
        where
diff --git a/Graphics/UI/Gtk/WebKit/DOM/DOMPlugin.chs b/Graphics/UI/Gtk/WebKit/DOM/DOMPlugin.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/DOMPlugin.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/DOMPlugin.chs
@@ -1,6 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.DOMPlugin
        (domPluginItem, domPluginNamedItem, domPluginGetName,
-        domPluginGetFilename, domPluginGetDescription, domPluginGetLength)
+        domPluginGetFilename, domPluginGetDescription, domPluginGetLength,
+        DOMPlugin, DOMPluginClass, castToDOMPlugin, gTypeDOMPlugin,
+        toDOMPlugin)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/DOMPluginArray.chs b/Graphics/UI/Gtk/WebKit/DOM/DOMPluginArray.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/DOMPluginArray.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/DOMPluginArray.chs
@@ -1,6 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.DOMPluginArray
        (domPluginArrayItem, domPluginArrayNamedItem,
-        domPluginArrayRefresh, domPluginArrayGetLength)
+        domPluginArrayRefresh, domPluginArrayGetLength, DOMPluginArray,
+        DOMPluginArrayClass, castToDOMPluginArray, gTypeDOMPluginArray,
+        toDOMPluginArray)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/DOMSecurityPolicy.chs b/Graphics/UI/Gtk/WebKit/DOM/DOMSecurityPolicy.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/DOMSecurityPolicy.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/DOMSecurityPolicy.chs
@@ -12,7 +12,9 @@
     domSecurityPolicyAllowsScriptFrom,
     domSecurityPolicyAllowsStyleFrom, domSecurityPolicyAllowsEval,
     domSecurityPolicyAllowsInlineScript,
-    domSecurityPolicyAllowsInlineStyle, domSecurityPolicyGetReportURIs
+    domSecurityPolicyAllowsInlineStyle, domSecurityPolicyGetReportURIs,
+    DOMSecurityPolicy, DOMSecurityPolicyClass, castToDOMSecurityPolicy,
+    gTypeDOMSecurityPolicy, toDOMSecurityPolicy
 #endif
 ) where
 
diff --git a/Graphics/UI/Gtk/WebKit/DOM/DOMSelection.chs b/Graphics/UI/Gtk/WebKit/DOM/DOMSelection.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/DOMSelection.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/DOMSelection.chs
@@ -10,7 +10,9 @@
         domSelectionGetFocusNode, domSelectionGetFocusOffset,
         domSelectionGetIsCollapsed, domSelectionGetRangeCount,
         domSelectionGetBaseNode, domSelectionGetBaseOffset,
-        domSelectionGetExtentNode, domSelectionGetExtentOffset)
+        domSelectionGetExtentNode, domSelectionGetExtentOffset,
+        DOMSelection, DOMSelectionClass, castToDOMSelection,
+        gTypeDOMSelection, toDOMSelection)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/DOMSettableTokenList.chs b/Graphics/UI/Gtk/WebKit/DOM/DOMSettableTokenList.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/DOMSettableTokenList.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/DOMSettableTokenList.chs
@@ -1,5 +1,9 @@
 module Graphics.UI.Gtk.WebKit.DOM.DOMSettableTokenList
-       (domSettableTokenListSetValue, domSettableTokenListGetValue) where
+       (domSettableTokenListSetValue, domSettableTokenListGetValue,
+        DOMSettableTokenList, DOMSettableTokenListClass,
+        castToDOMSettableTokenList, gTypeDOMSettableTokenList,
+        toDOMSettableTokenList)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/DOMStringList.chs b/Graphics/UI/Gtk/WebKit/DOM/DOMStringList.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/DOMStringList.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/DOMStringList.chs
@@ -1,5 +1,7 @@
 module Graphics.UI.Gtk.WebKit.DOM.DOMStringList
-       (domStringListItem, domStringListContains, domStringListGetLength)
+       (domStringListItem, domStringListContains, domStringListGetLength,
+        DOMStringList, DOMStringListClass, castToDOMStringList,
+        gTypeDOMStringList, toDOMStringList)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/DOMTokenList.chs b/Graphics/UI/Gtk/WebKit/DOM/DOMTokenList.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/DOMTokenList.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/DOMTokenList.chs
@@ -1,6 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.DOMTokenList
        (domTokenListItem, domTokenListContains, domTokenListAdd,
-        domTokenListRemove, domTokenListToggle, domTokenListGetLength)
+        domTokenListRemove, domTokenListToggle, domTokenListGetLength,
+        DOMTokenList, DOMTokenListClass, castToDOMTokenList,
+        gTypeDOMTokenList, toDOMTokenList)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/DOMWindow.chs b/Graphics/UI/Gtk/WebKit/DOM/DOMWindow.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/DOMWindow.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/DOMWindow.chs
@@ -67,11 +67,11 @@
 #endif
         domWindowOntouchstart, domWindowOntouchmove, domWindowOntouchend,
         domWindowOntouchcancel, domWindowOndevicemotion,
-        domWindowOndeviceorientation
+        domWindowOndeviceorientation,
 #if WEBKIT_CHECK_VERSION(1,10,0)
-      , domWindowOnwebkitdeviceproximity
+        domWindowOnwebkitdeviceproximity,
 #endif
-        )
+        DOMWindow, DOMWindowClass, castToDOMWindow, gTypeDOMWindow, toDOMWindow)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/DOMWindowCSS.chs b/Graphics/UI/Gtk/WebKit/DOM/DOMWindowCSS.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/DOMWindowCSS.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/DOMWindowCSS.chs
@@ -1,7 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.DOMWindowCSS
        (
 #if WEBKIT_CHECK_VERSION(2,2,2)
-       domWindowCSSSupports
+        domWindowCSSSupports, DOMWindowCSS, DOMWindowCSSClass,
+        castToDOMWindowCSS, gTypeDOMWindowCSS, toDOMWindowCSS
 #endif
        ) where
 import System.Glib.FFI
diff --git a/Graphics/UI/Gtk/WebKit/DOM/Document.chs b/Graphics/UI/Gtk/WebKit/DOM/Document.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/Document.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/Document.chs
@@ -65,14 +65,14 @@
         documentOnsecuritypolicyviolation,
 #endif
         documentGetVisibilityState,
-        documentGetHidden
+        documentGetHidden,
 #if WEBKIT_CHECK_VERSION(1,10,0)
-      , documentGetSecurityPolicy
+        documentGetSecurityPolicy,
 #endif
 #if WEBKIT_CHECK_VERSION(2,2,2)
-      , documentGetCurrentScript
+        documentGetCurrentScript,
 #endif
-        )
+        Document, DocumentClass, castToDocument, gTypeDocument, toDocument)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/DocumentType.chs b/Graphics/UI/Gtk/WebKit/DOM/DocumentType.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/DocumentType.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/DocumentType.chs
@@ -1,7 +1,9 @@
 module Graphics.UI.Gtk.WebKit.DOM.DocumentType
        (documentTypeGetName, documentTypeGetEntities,
         documentTypeGetNotations, documentTypeGetPublicId,
-        documentTypeGetSystemId, documentTypeGetInternalSubset)
+        documentTypeGetSystemId, documentTypeGetInternalSubset,
+        DocumentType, DocumentTypeClass, castToDocumentType,
+        gTypeDocumentType, toDocumentType)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/Element.chs b/Graphics/UI/Gtk/WebKit/DOM/Element.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/Element.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/Element.chs
@@ -57,7 +57,8 @@
         elementOnreset, elementOnsearch, elementOnselectstart,
         elementOntouchstart, elementOntouchmove, elementOntouchend,
         elementOntouchcancel, elementOnwebkitfullscreenchange,
-        elementOnwebkitfullscreenerror)
+        elementOnwebkitfullscreenerror,
+        Element, ElementClass, castToElement, gTypeElement, toElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/Event.chs b/Graphics/UI/Gtk/WebKit/DOM/Event.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/Event.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/Event.chs
@@ -7,7 +7,8 @@
         eventGetTarget, eventGetCurrentTarget, eventGetEventPhase,
         eventGetBubbles, eventGetCancelable, eventGetTimeStamp,
         eventGetDefaultPrevented, eventGetSrcElement, eventSetReturnValue,
-        eventGetReturnValue, eventSetCancelBubble, eventGetCancelBubble)
+        eventGetReturnValue, eventSetCancelBubble, eventGetCancelBubble,
+        Event, EventClass, castToEvent, gTypeEvent, toEvent)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/File.chs b/Graphics/UI/Gtk/WebKit/DOM/File.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/File.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/File.chs
@@ -1,9 +1,9 @@
 module Graphics.UI.Gtk.WebKit.DOM.File
        (fileGetName,
 #if WEBKIT_CHECK_VERSION(2,2,2)
-        fileGetWebkitRelativePath
+        fileGetWebkitRelativePath,
 #endif
-       ) where
+        File, FileClass, castToFile, gTypeFile, toFile) where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/FileList.chs b/Graphics/UI/Gtk/WebKit/DOM/FileList.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/FileList.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/FileList.chs
@@ -1,5 +1,7 @@
 module Graphics.UI.Gtk.WebKit.DOM.FileList
-       (fileListItem, fileListGetLength) where
+       (fileListItem, fileListGetLength, FileList, FileListClass,
+        castToFileList, gTypeFileList, toFileList)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/Geolocation.chs b/Graphics/UI/Gtk/WebKit/DOM/Geolocation.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/Geolocation.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/Geolocation.chs
@@ -1,5 +1,7 @@
 module Graphics.UI.Gtk.WebKit.DOM.Geolocation
-       (geolocationClearWatch) where
+       (geolocationClearWatch, Geolocation, GeolocationClass,
+        castToGeolocation, gTypeGeolocation, toGeolocation)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLAnchorElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLAnchorElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLAnchorElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLAnchorElement.chs
@@ -17,7 +17,9 @@
         htmlAnchorElementSetPort, htmlAnchorElementGetPort,
         htmlAnchorElementSetProtocol, htmlAnchorElementGetProtocol,
         htmlAnchorElementSetSearch, htmlAnchorElementGetSearch,
-        htmlAnchorElementGetOrigin, htmlAnchorElementGetText)
+        htmlAnchorElementGetOrigin, htmlAnchorElementGetText,
+        HTMLAnchorElement, HTMLAnchorElementClass, castToHTMLAnchorElement,
+        gTypeHTMLAnchorElement, toHTMLAnchorElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLAppletElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLAppletElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLAppletElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLAppletElement.chs
@@ -9,7 +9,9 @@
         htmlAppletElementSetName, htmlAppletElementGetName,
         htmlAppletElementSetObject, htmlAppletElementGetObject,
         htmlAppletElementSetVspace, htmlAppletElementGetVspace,
-        htmlAppletElementSetWidth, htmlAppletElementGetWidth)
+        htmlAppletElementSetWidth, htmlAppletElementGetWidth,
+        HTMLAppletElement, HTMLAppletElementClass, castToHTMLAppletElement,
+        gTypeHTMLAppletElement, toHTMLAppletElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLAreaElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLAreaElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLAreaElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLAreaElement.chs
@@ -9,7 +9,8 @@
         htmlAreaElementGetHash, htmlAreaElementGetHost,
         htmlAreaElementGetHostname, htmlAreaElementGetPathname,
         htmlAreaElementGetPort, htmlAreaElementGetProtocol,
-        htmlAreaElementGetSearch)
+        htmlAreaElementGetSearch, HTMLAreaElement, HTMLAreaElementClass,
+        castToHTMLAreaElement, gTypeHTMLAreaElement, toHTMLAreaElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLBRElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLBRElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLBRElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLBRElement.chs
@@ -1,5 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLBRElement
-       (htmlbrElementSetClear, htmlbrElementGetClear) where
+       (htmlbrElementSetClear, htmlbrElementGetClear, HTMLBRElement,
+        HTMLBRElementClass, castToHTMLBRElement, gTypeHTMLBRElement,
+        toHTMLBRElement)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLBaseElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLBaseElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLBaseElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLBaseElement.chs
@@ -1,6 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLBaseElement
        (htmlBaseElementSetHref, htmlBaseElementGetHref,
-        htmlBaseElementSetTarget, htmlBaseElementGetTarget)
+        htmlBaseElementSetTarget, htmlBaseElementGetTarget,
+        HTMLBaseElement, HTMLBaseElementClass, castToHTMLBaseElement,
+        gTypeHTMLBaseElement, toHTMLBaseElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLBaseFontElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLBaseFontElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLBaseFontElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLBaseFontElement.chs
@@ -1,7 +1,10 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLBaseFontElement
        (htmlBaseFontElementSetColor, htmlBaseFontElementGetColor,
         htmlBaseFontElementSetFace, htmlBaseFontElementGetFace,
-        htmlBaseFontElementSetSize, htmlBaseFontElementGetSize)
+        htmlBaseFontElementSetSize, htmlBaseFontElementGetSize,
+        HTMLBaseFontElement, HTMLBaseFontElementClass,
+        castToHTMLBaseFontElement, gTypeHTMLBaseFontElement,
+        toHTMLBaseFontElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLBodyElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLBodyElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLBodyElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLBodyElement.chs
@@ -11,7 +11,9 @@
         htmlBodyElementOnresize, htmlBodyElementOnstorage,
         htmlBodyElementOnunload, htmlBodyElementOnorientationchange,
         htmlBodyElementOnblur, htmlBodyElementOnerror,
-        htmlBodyElementOnfocus, htmlBodyElementOnload)
+        htmlBodyElementOnfocus, htmlBodyElementOnload, HTMLBodyElement,
+        HTMLBodyElementClass, castToHTMLBodyElement, gTypeHTMLBodyElement,
+        toHTMLBodyElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLButtonElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLButtonElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLButtonElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLButtonElement.chs
@@ -12,7 +12,9 @@
         htmlButtonElementGetName, htmlButtonElementSetValue,
         htmlButtonElementGetValue, htmlButtonElementGetWillValidate,
         htmlButtonElementGetValidity,
-        htmlButtonElementGetValidationMessage, htmlButtonElementGetLabels)
+        htmlButtonElementGetValidationMessage, htmlButtonElementGetLabels,
+        HTMLButtonElement, HTMLButtonElementClass, castToHTMLButtonElement,
+        gTypeHTMLButtonElement, toHTMLButtonElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLCanvasElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLCanvasElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLCanvasElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLCanvasElement.chs
@@ -1,6 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLCanvasElement
        (htmlCanvasElementSetWidth, htmlCanvasElementGetWidth,
-        htmlCanvasElementSetHeight, htmlCanvasElementGetHeight)
+        htmlCanvasElementSetHeight, htmlCanvasElementGetHeight,
+        HTMLCanvasElement, HTMLCanvasElementClass, castToHTMLCanvasElement,
+        gTypeHTMLCanvasElement, toHTMLCanvasElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLCollection.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLCollection.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLCollection.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLCollection.chs
@@ -3,7 +3,8 @@
 #if WEBKIT_CHECK_VERSION(2,2,2)
         htmlCollectionNamedItem,
 #endif
-        htmlCollectionGetLength)
+        htmlCollectionGetLength, HTMLCollection, HTMLCollectionClass,
+        castToHTMLCollection, gTypeHTMLCollection, toHTMLCollection)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLDListElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLDListElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLDListElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLDListElement.chs
@@ -1,5 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLDListElement
-       (htmldListElementSetCompact, htmldListElementGetCompact) where
+       (htmldListElementSetCompact, htmldListElementGetCompact,
+        HTMLDListElement, HTMLDListElementClass, castToHTMLDListElement,
+        gTypeHTMLDListElement, toHTMLDListElement)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLDetailsElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLDetailsElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLDetailsElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLDetailsElement.chs
@@ -1,5 +1,9 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLDetailsElement
-       (htmlDetailsElementSetOpen, htmlDetailsElementGetOpen) where
+       (htmlDetailsElementSetOpen, htmlDetailsElementGetOpen,
+        HTMLDetailsElement, HTMLDetailsElementClass,
+        castToHTMLDetailsElement, gTypeHTMLDetailsElement,
+        toHTMLDetailsElement)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLDirectoryElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLDirectoryElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLDirectoryElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLDirectoryElement.chs
@@ -1,5 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLDirectoryElement
-       (htmlDirectoryElementSetCompact, htmlDirectoryElementGetCompact)
+       (htmlDirectoryElementSetCompact, htmlDirectoryElementGetCompact,
+        HTMLDirectoryElement, HTMLDirectoryElementClass,
+        castToHTMLDirectoryElement, gTypeHTMLDirectoryElement,
+        toHTMLDirectoryElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLDivElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLDivElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLDivElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLDivElement.chs
@@ -1,5 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLDivElement
-       (htmlDivElementSetAlign, htmlDivElementGetAlign) where
+       (htmlDivElementSetAlign, htmlDivElementGetAlign, HTMLDivElement,
+        HTMLDivElementClass, castToHTMLDivElement, gTypeHTMLDivElement,
+        toHTMLDivElement)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLDocument.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLDocument.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLDocument.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLDocument.chs
@@ -10,7 +10,9 @@
         htmlDocumentSetFgColor, htmlDocumentGetFgColor,
         htmlDocumentSetAlinkColor, htmlDocumentGetAlinkColor,
         htmlDocumentSetLinkColor, htmlDocumentGetLinkColor,
-        htmlDocumentSetVlinkColor, htmlDocumentGetVlinkColor)
+        htmlDocumentSetVlinkColor, htmlDocumentGetVlinkColor, HTMLDocument,
+        HTMLDocumentClass, castToHTMLDocument, gTypeHTMLDocument,
+        toHTMLDocument)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLElement.chs
@@ -15,7 +15,9 @@
         htmlElementSetOuterText, htmlElementGetOuterText,
         htmlElementGetChildren, htmlElementSetContentEditable,
         htmlElementGetContentEditable, htmlElementGetIsContentEditable,
-        htmlElementSetSpellcheck, htmlElementGetSpellcheck)
+        htmlElementSetSpellcheck, htmlElementGetSpellcheck, HTMLElement,
+        HTMLElementClass, castToHTMLElement, gTypeHTMLElement,
+        toHTMLElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLEmbedElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLEmbedElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLEmbedElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLEmbedElement.chs
@@ -3,7 +3,9 @@
         htmlEmbedElementSetHeight, htmlEmbedElementGetHeight,
         htmlEmbedElementSetName, htmlEmbedElementGetName,
         htmlEmbedElementSetSrc, htmlEmbedElementGetSrc,
-        htmlEmbedElementSetWidth, htmlEmbedElementGetWidth)
+        htmlEmbedElementSetWidth, htmlEmbedElementGetWidth,
+        HTMLEmbedElement, HTMLEmbedElementClass, castToHTMLEmbedElement,
+        gTypeHTMLEmbedElement, toHTMLEmbedElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLFieldSetElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLFieldSetElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLFieldSetElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLFieldSetElement.chs
@@ -10,7 +10,9 @@
         htmlFieldSetElementGetElements,
 #endif
         htmlFieldSetElementGetWillValidate, htmlFieldSetElementGetValidity,
-        htmlFieldSetElementGetValidationMessage)
+        htmlFieldSetElementGetValidationMessage, HTMLFieldSetElement,
+        HTMLFieldSetElementClass, castToHTMLFieldSetElement,
+        gTypeHTMLFieldSetElement, toHTMLFieldSetElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLFontElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLFontElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLFontElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLFontElement.chs
@@ -1,7 +1,9 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLFontElement
        (htmlFontElementSetColor, htmlFontElementGetColor,
         htmlFontElementSetFace, htmlFontElementGetFace,
-        htmlFontElementSetSize, htmlFontElementGetSize)
+        htmlFontElementSetSize, htmlFontElementGetSize, HTMLFontElement,
+        HTMLFontElementClass, castToHTMLFontElement, gTypeHTMLFontElement,
+        toHTMLFontElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLFormElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLFormElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLFormElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLFormElement.chs
@@ -10,7 +10,8 @@
         htmlFormElementGetName, htmlFormElementSetNoValidate,
         htmlFormElementGetNoValidate, htmlFormElementSetTarget,
         htmlFormElementGetTarget, htmlFormElementGetElements,
-        htmlFormElementGetLength)
+        htmlFormElementGetLength, HTMLFormElement, HTMLFormElementClass,
+        castToHTMLFormElement, gTypeHTMLFormElement, toHTMLFormElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLFrameElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLFrameElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLFrameElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLFrameElement.chs
@@ -9,7 +9,8 @@
         htmlFrameElementSetSrc, htmlFrameElementGetSrc,
         htmlFrameElementGetContentDocument,
         htmlFrameElementGetContentWindow, htmlFrameElementGetWidth,
-        htmlFrameElementGetHeight)
+        htmlFrameElementGetHeight, HTMLFrameElement, HTMLFrameElementClass,
+        castToHTMLFrameElement, gTypeHTMLFrameElement, toHTMLFrameElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLFrameSetElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLFrameSetElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLFrameSetElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLFrameSetElement.chs
@@ -8,7 +8,9 @@
         htmlFrameSetElementOnunload,
         htmlFrameSetElementOnorientationchange, htmlFrameSetElementOnblur,
         htmlFrameSetElementOnerror, htmlFrameSetElementOnfocus,
-        htmlFrameSetElementOnload)
+        htmlFrameSetElementOnload, HTMLFrameSetElement,
+        HTMLFrameSetElementClass, castToHTMLFrameSetElement,
+        gTypeHTMLFrameSetElement, toHTMLFrameSetElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLHRElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLHRElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLHRElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLHRElement.chs
@@ -2,7 +2,8 @@
        (htmlhrElementSetAlign, htmlhrElementGetAlign,
         htmlhrElementSetNoShade, htmlhrElementGetNoShade,
         htmlhrElementSetSize, htmlhrElementGetSize, htmlhrElementSetWidth,
-        htmlhrElementGetWidth)
+        htmlhrElementGetWidth, HTMLHRElement, HTMLHRElementClass,
+        castToHTMLHRElement, gTypeHTMLHRElement, toHTMLHRElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLHeadElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLHeadElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLHeadElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLHeadElement.chs
@@ -1,5 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLHeadElement
-       (htmlHeadElementSetProfile, htmlHeadElementGetProfile) where
+       (htmlHeadElementSetProfile, htmlHeadElementGetProfile,
+        HTMLHeadElement, HTMLHeadElementClass, castToHTMLHeadElement,
+        gTypeHTMLHeadElement, toHTMLHeadElement)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLHeadingElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLHeadingElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLHeadingElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLHeadingElement.chs
@@ -1,5 +1,9 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLHeadingElement
-       (htmlHeadingElementSetAlign, htmlHeadingElementGetAlign) where
+       (htmlHeadingElementSetAlign, htmlHeadingElementGetAlign,
+        HTMLHeadingElement, HTMLHeadingElementClass,
+        castToHTMLHeadingElement, gTypeHTMLHeadingElement,
+        toHTMLHeadingElement)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLHtmlElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLHtmlElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLHtmlElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLHtmlElement.chs
@@ -1,6 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLHtmlElement
        (htmlHtmlElementSetVersion, htmlHtmlElementGetVersion,
-        htmlHtmlElementSetManifest, htmlHtmlElementGetManifest)
+        htmlHtmlElementSetManifest, htmlHtmlElementGetManifest,
+        HTMLHtmlElement, HTMLHtmlElementClass, castToHTMLHtmlElement,
+        gTypeHTMLHtmlElement, toHTMLHtmlElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLIFrameElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLIFrameElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLIFrameElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLIFrameElement.chs
@@ -17,7 +17,9 @@
 #endif
         htmliFrameElementSetWidth, htmliFrameElementGetWidth,
         htmliFrameElementGetContentDocument,
-        htmliFrameElementGetContentWindow)
+        htmliFrameElementGetContentWindow, HTMLIFrameElement,
+        HTMLIFrameElementClass, castToHTMLIFrameElement,
+        gTypeHTMLIFrameElement, toHTMLIFrameElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLImageElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLImageElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLImageElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLImageElement.chs
@@ -18,7 +18,8 @@
         htmlImageElementGetComplete, htmlImageElementSetLowsrc,
         htmlImageElementGetLowsrc, htmlImageElementGetNaturalHeight,
         htmlImageElementGetNaturalWidth, htmlImageElementGetX,
-        htmlImageElementGetY)
+        htmlImageElementGetY, HTMLImageElement, HTMLImageElementClass,
+        castToHTMLImageElement, gTypeHTMLImageElement, toHTMLImageElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLInputElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLInputElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLInputElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLInputElement.chs
@@ -57,11 +57,12 @@
         htmlInputElementGetIncremental, htmlInputElementSetWebkitSpeech,
         htmlInputElementGetWebkitSpeech, htmlInputElementSetWebkitGrammar,
         htmlInputElementGetWebkitGrammar,
-        htmlInputElementOnwebkitspeechchange
+        htmlInputElementOnwebkitspeechchange,
 #if WEBKIT_CHECK_VERSION(1,10,0)
-      , htmlInputElementSetCapture, htmlInputElementGetCapture
+        htmlInputElementSetCapture, htmlInputElementGetCapture,
 #endif
-        )
+        HTMLInputElement, HTMLInputElementClass, castToHTMLInputElement,
+        gTypeHTMLInputElement, toHTMLInputElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLKeygenElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLKeygenElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLKeygenElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLKeygenElement.chs
@@ -7,7 +7,9 @@
         htmlKeygenElementSetKeytype, htmlKeygenElementGetKeytype,
         htmlKeygenElementSetName, htmlKeygenElementGetName,
         htmlKeygenElementGetWillValidate, htmlKeygenElementGetValidity,
-        htmlKeygenElementGetValidationMessage, htmlKeygenElementGetLabels)
+        htmlKeygenElementGetValidationMessage, htmlKeygenElementGetLabels,
+        HTMLKeygenElement, HTMLKeygenElementClass, castToHTMLKeygenElement,
+        gTypeHTMLKeygenElement, toHTMLKeygenElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLLIElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLLIElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLLIElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLLIElement.chs
@@ -1,5 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLLIElement
-       (htmlliElementSetValue, htmlliElementGetValue) where
+       (htmlliElementSetValue, htmlliElementGetValue, HTMLLIElement,
+        HTMLLIElementClass, castToHTMLLIElement, gTypeHTMLLIElement,
+        toHTMLLIElement)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLLabelElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLLabelElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLLabelElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLLabelElement.chs
@@ -1,6 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLLabelElement
        (htmlLabelElementGetForm, htmlLabelElementSetHtmlFor,
-        htmlLabelElementGetHtmlFor, htmlLabelElementGetControl)
+        htmlLabelElementGetHtmlFor, htmlLabelElementGetControl,
+        HTMLLabelElement, HTMLLabelElementClass, castToHTMLLabelElement,
+        gTypeHTMLLabelElement, toHTMLLabelElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLLegendElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLLegendElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLLegendElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLLegendElement.chs
@@ -1,6 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLLegendElement
        (htmlLegendElementGetForm, htmlLegendElementSetAlign,
-        htmlLegendElementGetAlign)
+        htmlLegendElementGetAlign, HTMLLegendElement,
+        HTMLLegendElementClass, castToHTMLLegendElement,
+        gTypeHTMLLegendElement, toHTMLLegendElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLLinkElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLLinkElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLLinkElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLLinkElement.chs
@@ -7,7 +7,8 @@
         htmlLinkElementSetRel, htmlLinkElementGetRel,
         htmlLinkElementSetRev, htmlLinkElementGetRev,
         htmlLinkElementSetTarget, htmlLinkElementGetTarget,
-        htmlLinkElementGetSheet)
+        htmlLinkElementGetSheet, HTMLLinkElement, HTMLLinkElementClass,
+        castToHTMLLinkElement, gTypeHTMLLinkElement, toHTMLLinkElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLMapElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLMapElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLMapElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLMapElement.chs
@@ -1,6 +1,7 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLMapElement
        (htmlMapElementGetAreas, htmlMapElementSetName,
-        htmlMapElementGetName)
+        htmlMapElementGetName, HTMLMapElement, HTMLMapElementClass,
+        castToHTMLMapElement, gTypeHTMLMapElement, toHTMLMapElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLMarqueeElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLMarqueeElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLMarqueeElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLMarqueeElement.chs
@@ -11,7 +11,10 @@
         htmlMarqueeElementSetScrollDelay, htmlMarqueeElementGetScrollDelay,
         htmlMarqueeElementSetTrueSpeed, htmlMarqueeElementGetTrueSpeed,
         htmlMarqueeElementSetVspace, htmlMarqueeElementGetVspace,
-        htmlMarqueeElementSetWidth, htmlMarqueeElementGetWidth)
+        htmlMarqueeElementSetWidth, htmlMarqueeElementGetWidth,
+        HTMLMarqueeElement, HTMLMarqueeElementClass,
+        castToHTMLMarqueeElement, gTypeHTMLMarqueeElement,
+        toHTMLMarqueeElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLMediaElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLMediaElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLMediaElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLMediaElement.chs
@@ -32,7 +32,9 @@
 #if WEBKIT_CHECK_VERSION(2,2,2)
         htmlMediaElementOnwebkitneedkey,
 #endif
-        htmlMediaElementSetMediaGroup, htmlMediaElementGetMediaGroup)
+        htmlMediaElementSetMediaGroup, htmlMediaElementGetMediaGroup,
+        HTMLMediaElement, HTMLMediaElementClass, castToHTMLMediaElement,
+        gTypeHTMLMediaElement, toHTMLMediaElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLMenuElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLMenuElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLMenuElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLMenuElement.chs
@@ -1,5 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLMenuElement
-       (htmlMenuElementSetCompact, htmlMenuElementGetCompact) where
+       (htmlMenuElementSetCompact, htmlMenuElementGetCompact,
+        HTMLMenuElement, HTMLMenuElementClass, castToHTMLMenuElement,
+        gTypeHTMLMenuElement, toHTMLMenuElement)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLMetaElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLMetaElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLMetaElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLMetaElement.chs
@@ -2,7 +2,9 @@
        (htmlMetaElementSetContent, htmlMetaElementGetContent,
         htmlMetaElementSetHttpEquiv, htmlMetaElementGetHttpEquiv,
         htmlMetaElementSetName, htmlMetaElementGetName,
-        htmlMetaElementSetScheme, htmlMetaElementGetScheme)
+        htmlMetaElementSetScheme, htmlMetaElementGetScheme,
+        HTMLMetaElement, HTMLMetaElementClass, castToHTMLMetaElement,
+        gTypeHTMLMetaElement, toHTMLMetaElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLModElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLModElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLModElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLModElement.chs
@@ -1,6 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLModElement
        (htmlModElementSetCite, htmlModElementGetCite,
-        htmlModElementSetDateTime, htmlModElementGetDateTime)
+        htmlModElementSetDateTime, htmlModElementGetDateTime,
+        HTMLModElement, HTMLModElementClass, castToHTMLModElement,
+        gTypeHTMLModElement, toHTMLModElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLOListElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLOListElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLOListElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLOListElement.chs
@@ -1,7 +1,9 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLOListElement
        (htmloListElementSetCompact, htmloListElementGetCompact,
         htmloListElementSetStart, htmloListElementGetStart,
-        htmloListElementSetReversed, htmloListElementGetReversed)
+        htmloListElementSetReversed, htmloListElementGetReversed,
+        HTMLOListElement, HTMLOListElementClass, castToHTMLOListElement,
+        gTypeHTMLOListElement, toHTMLOListElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLObjectElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLObjectElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLObjectElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLObjectElement.chs
@@ -18,7 +18,9 @@
         htmlObjectElementSetWidth, htmlObjectElementGetWidth,
         htmlObjectElementGetWillValidate, htmlObjectElementGetValidity,
         htmlObjectElementGetValidationMessage,
-        htmlObjectElementGetContentDocument)
+        htmlObjectElementGetContentDocument, HTMLObjectElement,
+        HTMLObjectElementClass, castToHTMLObjectElement,
+        gTypeHTMLObjectElement, toHTMLObjectElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLOptGroupElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLOptGroupElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLOptGroupElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLOptGroupElement.chs
@@ -1,6 +1,9 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLOptGroupElement
        (htmlOptGroupElementSetDisabled, htmlOptGroupElementGetDisabled,
-        htmlOptGroupElementSetLabel, htmlOptGroupElementGetLabel)
+        htmlOptGroupElementSetLabel, htmlOptGroupElementGetLabel,
+        HTMLOptGroupElement, HTMLOptGroupElementClass,
+        castToHTMLOptGroupElement, gTypeHTMLOptGroupElement,
+        toHTMLOptGroupElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLOptionElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLOptionElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLOptionElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLOptionElement.chs
@@ -5,7 +5,9 @@
         htmlOptionElementGetDefaultSelected, htmlOptionElementSetSelected,
         htmlOptionElementGetSelected, htmlOptionElementSetValue,
         htmlOptionElementGetValue, htmlOptionElementGetText,
-        htmlOptionElementGetIndex)
+        htmlOptionElementGetIndex, HTMLOptionElement,
+        HTMLOptionElementClass, castToHTMLOptionElement,
+        gTypeHTMLOptionElement, toHTMLOptionElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLOptionsCollection.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLOptionsCollection.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLOptionsCollection.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLOptionsCollection.chs
@@ -4,7 +4,9 @@
         htmlOptionsCollectionNamedItem,
 #endif
         htmlOptionsCollectionSetSelectedIndex,
-        htmlOptionsCollectionGetSelectedIndex)
+        htmlOptionsCollectionGetSelectedIndex, HTMLOptionsCollection,
+        HTMLOptionsCollectionClass, castToHTMLOptionsCollection,
+        gTypeHTMLOptionsCollection, toHTMLOptionsCollection)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLParagraphElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLParagraphElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLParagraphElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLParagraphElement.chs
@@ -1,5 +1,9 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLParagraphElement
-       (htmlParagraphElementSetAlign, htmlParagraphElementGetAlign) where
+       (htmlParagraphElementSetAlign, htmlParagraphElementGetAlign,
+        HTMLParagraphElement, HTMLParagraphElementClass,
+        castToHTMLParagraphElement, gTypeHTMLParagraphElement,
+        toHTMLParagraphElement)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLParamElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLParamElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLParamElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLParamElement.chs
@@ -1,7 +1,9 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLParamElement
        (htmlParamElementSetName, htmlParamElementGetName,
         htmlParamElementSetValue, htmlParamElementGetValue,
-        htmlParamElementSetValueType, htmlParamElementGetValueType)
+        htmlParamElementSetValueType, htmlParamElementGetValueType,
+        HTMLParamElement, HTMLParamElementClass, castToHTMLParamElement,
+        gTypeHTMLParamElement, toHTMLParamElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLPreElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLPreElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLPreElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLPreElement.chs
@@ -1,6 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLPreElement
        (htmlPreElementSetWidth, htmlPreElementGetWidth,
-        htmlPreElementSetWrap, htmlPreElementGetWrap)
+        htmlPreElementSetWrap, htmlPreElementGetWrap, HTMLPreElement,
+        HTMLPreElementClass, castToHTMLPreElement, gTypeHTMLPreElement,
+        toHTMLPreElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLQuoteElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLQuoteElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLQuoteElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLQuoteElement.chs
@@ -1,5 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLQuoteElement
-       (htmlQuoteElementSetCite, htmlQuoteElementGetCite) where
+       (htmlQuoteElementSetCite, htmlQuoteElementGetCite,
+        HTMLQuoteElement, HTMLQuoteElementClass, castToHTMLQuoteElement,
+        gTypeHTMLQuoteElement, toHTMLQuoteElement)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.chs
@@ -5,12 +5,13 @@
         htmlScriptElementSetCharset, htmlScriptElementGetCharset,
         htmlScriptElementSetAsync, htmlScriptElementGetAsync,
         htmlScriptElementSetDefer, htmlScriptElementGetDefer,
-        htmlScriptElementSetSrc, htmlScriptElementGetSrc
+        htmlScriptElementSetSrc, htmlScriptElementGetSrc,
 #if WEBKIT_CHECK_VERSION(1,10,0)
-      , htmlScriptElementSetCrossOrigin, htmlScriptElementGetCrossOrigin,
-        htmlScriptElementSetNonce, htmlScriptElementGetNonce
+        htmlScriptElementSetCrossOrigin, htmlScriptElementGetCrossOrigin,
+        htmlScriptElementSetNonce, htmlScriptElementGetNonce,
 #endif
-        )
+        HTMLScriptElement, HTMLScriptElementClass, castToHTMLScriptElement,
+        gTypeHTMLScriptElement, toHTMLScriptElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.chs
@@ -17,7 +17,9 @@
         htmlSelectElementGetSelectedIndex, htmlSelectElementSetValue,
         htmlSelectElementGetValue, htmlSelectElementGetWillValidate,
         htmlSelectElementGetValidity,
-        htmlSelectElementGetValidationMessage, htmlSelectElementGetLabels)
+        htmlSelectElementGetValidationMessage, htmlSelectElementGetLabels,
+        HTMLSelectElement, HTMLSelectElementClass, castToHTMLSelectElement,
+        gTypeHTMLSelectElement, toHTMLSelectElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLStyleElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLStyleElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLStyleElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLStyleElement.chs
@@ -2,7 +2,8 @@
        (htmlStyleElementSetDisabled, htmlStyleElementGetDisabled,
         htmlStyleElementSetScoped, htmlStyleElementGetScoped,
         htmlStyleElementSetMedia, htmlStyleElementGetMedia,
-        htmlStyleElementGetSheet)
+        htmlStyleElementGetSheet, HTMLStyleElement, HTMLStyleElementClass,
+        castToHTMLStyleElement, gTypeHTMLStyleElement, toHTMLStyleElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLTableCaptionElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLTableCaptionElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLTableCaptionElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLTableCaptionElement.chs
@@ -1,5 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLTableCaptionElement
-       (htmlTableCaptionElementSetAlign, htmlTableCaptionElementGetAlign)
+       (htmlTableCaptionElementSetAlign, htmlTableCaptionElementGetAlign,
+        HTMLTableCaptionElement, HTMLTableCaptionElementClass,
+        castToHTMLTableCaptionElement, gTypeHTMLTableCaptionElement,
+        toHTMLTableCaptionElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLTableCellElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLTableCellElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLTableCellElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLTableCellElement.chs
@@ -13,7 +13,9 @@
         htmlTableCellElementGetRowSpan, htmlTableCellElementSetScope,
         htmlTableCellElementGetScope, htmlTableCellElementSetVAlign,
         htmlTableCellElementGetVAlign, htmlTableCellElementSetWidth,
-        htmlTableCellElementGetWidth)
+        htmlTableCellElementGetWidth, HTMLTableCellElement,
+        HTMLTableCellElementClass, castToHTMLTableCellElement,
+        gTypeHTMLTableCellElement, toHTMLTableCellElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLTableColElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLTableColElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLTableColElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLTableColElement.chs
@@ -4,7 +4,10 @@
         htmlTableColElementSetChOff, htmlTableColElementGetChOff,
         htmlTableColElementSetSpan, htmlTableColElementGetSpan,
         htmlTableColElementSetVAlign, htmlTableColElementGetVAlign,
-        htmlTableColElementSetWidth, htmlTableColElementGetWidth)
+        htmlTableColElementSetWidth, htmlTableColElementGetWidth,
+        HTMLTableColElement, HTMLTableColElementClass,
+        castToHTMLTableColElement, gTypeHTMLTableColElement,
+        toHTMLTableColElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLTableElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLTableElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLTableElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLTableElement.chs
@@ -19,7 +19,8 @@
         htmlTableElementGetFrame, htmlTableElementSetRules,
         htmlTableElementGetRules, htmlTableElementSetSummary,
         htmlTableElementGetSummary, htmlTableElementSetWidth,
-        htmlTableElementGetWidth)
+        htmlTableElementGetWidth, HTMLTableElement, HTMLTableElementClass,
+        castToHTMLTableElement, gTypeHTMLTableElement, toHTMLTableElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLTableRowElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLTableRowElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLTableRowElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLTableRowElement.chs
@@ -6,7 +6,10 @@
         htmlTableRowElementSetBgColor, htmlTableRowElementGetBgColor,
         htmlTableRowElementSetCh, htmlTableRowElementGetCh,
         htmlTableRowElementSetChOff, htmlTableRowElementGetChOff,
-        htmlTableRowElementSetVAlign, htmlTableRowElementGetVAlign)
+        htmlTableRowElementSetVAlign, htmlTableRowElementGetVAlign,
+        HTMLTableRowElement, HTMLTableRowElementClass,
+        castToHTMLTableRowElement, gTypeHTMLTableRowElement,
+        toHTMLTableRowElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLTableSectionElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLTableSectionElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLTableSectionElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLTableSectionElement.chs
@@ -4,7 +4,10 @@
         htmlTableSectionElementGetAlign, htmlTableSectionElementSetCh,
         htmlTableSectionElementGetCh, htmlTableSectionElementSetChOff,
         htmlTableSectionElementGetChOff, htmlTableSectionElementSetVAlign,
-        htmlTableSectionElementGetVAlign, htmlTableSectionElementGetRows)
+        htmlTableSectionElementGetVAlign, htmlTableSectionElementGetRows,
+        HTMLTableSectionElement, HTMLTableSectionElementClass,
+        castToHTMLTableSectionElement, gTypeHTMLTableSectionElement,
+        toHTMLTableSectionElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLTextAreaElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLTextAreaElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLTextAreaElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLTextAreaElement.chs
@@ -26,7 +26,9 @@
         htmlTextAreaElementSetSelectionEnd,
         htmlTextAreaElementGetSelectionEnd,
         htmlTextAreaElementSetSelectionDirection,
-        htmlTextAreaElementGetSelectionDirection)
+        htmlTextAreaElementGetSelectionDirection, HTMLTextAreaElement,
+        HTMLTextAreaElementClass, castToHTMLTextAreaElement,
+        gTypeHTMLTextAreaElement, toHTMLTextAreaElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLTitleElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLTitleElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLTitleElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLTitleElement.chs
@@ -1,5 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLTitleElement
-       (htmlTitleElementSetText, htmlTitleElementGetText) where
+       (htmlTitleElementSetText, htmlTitleElementGetText,
+        HTMLTitleElement, HTMLTitleElementClass, castToHTMLTitleElement,
+        gTypeHTMLTitleElement, toHTMLTitleElement)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLUListElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLUListElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLUListElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLUListElement.chs
@@ -1,5 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.HTMLUListElement
-       (htmluListElementSetCompact, htmluListElementGetCompact) where
+       (htmluListElementSetCompact, htmluListElementGetCompact,
+        HTMLUListElement, HTMLUListElementClass, castToHTMLUListElement,
+        gTypeHTMLUListElement, toHTMLUListElement)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/HTMLVideoElement.chs b/Graphics/UI/Gtk/WebKit/DOM/HTMLVideoElement.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/HTMLVideoElement.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/HTMLVideoElement.chs
@@ -10,7 +10,9 @@
         htmlVideoElementGetWebkitSupportsFullscreen,
         htmlVideoElementGetWebkitDisplayingFullscreen,
         htmlVideoElementGetWebkitDecodedFrameCount,
-        htmlVideoElementGetWebkitDroppedFrameCount)
+        htmlVideoElementGetWebkitDroppedFrameCount, HTMLVideoElement,
+        HTMLVideoElementClass, castToHTMLVideoElement,
+        gTypeHTMLVideoElement, toHTMLVideoElement)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/History.chs b/Graphics/UI/Gtk/WebKit/DOM/History.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/History.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/History.chs
@@ -1,4 +1,7 @@
-module Graphics.UI.Gtk.WebKit.DOM.History (historyGetLength) where
+module Graphics.UI.Gtk.WebKit.DOM.History
+       (historyGetLength, History, HistoryClass, castToHistory,
+        gTypeHistory, toHistory)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/KeyboardEvent.chs b/Graphics/UI/Gtk/WebKit/DOM/KeyboardEvent.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/KeyboardEvent.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/KeyboardEvent.chs
@@ -6,7 +6,9 @@
         cKEY_LOCATION_NUMPAD, keyboardEventGetKeyIdentifier,
         keyboardEventGetKeyLocation, keyboardEventGetCtrlKey,
         keyboardEventGetShiftKey, keyboardEventGetAltKey,
-        keyboardEventGetMetaKey, keyboardEventGetAltGraphKey
+        keyboardEventGetMetaKey, keyboardEventGetAltGraphKey,
+        KeyboardEvent, KeyboardEventClass, castToKeyboardEvent,
+        gTypeKeyboardEvent, toKeyboardEvent
 #endif
        )
        where
diff --git a/Graphics/UI/Gtk/WebKit/DOM/Location.chs b/Graphics/UI/Gtk/WebKit/DOM/Location.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/Location.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/Location.chs
@@ -1,9 +1,9 @@
 module Graphics.UI.Gtk.WebKit.DOM.Location
-       (locationGetOrigin
+       (locationGetOrigin,
 #if WEBKIT_CHECK_VERSION(1,10,0)
-        , locationGetAncestorOrigins
+        locationGetAncestorOrigins,
 #endif
-        ) where
+        Location, LocationClass, castToLocation, gTypeLocation, toLocation) where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/MediaError.chs b/Graphics/UI/Gtk/WebKit/DOM/MediaError.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/MediaError.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/MediaError.chs
@@ -1,6 +1,7 @@
 module Graphics.UI.Gtk.WebKit.DOM.MediaError
        (cMEDIA_ERR_ABORTED, cMEDIA_ERR_NETWORK, cMEDIA_ERR_DECODE,
-        cMEDIA_ERR_SRC_NOT_SUPPORTED, mediaErrorGetCode)
+        cMEDIA_ERR_SRC_NOT_SUPPORTED, mediaErrorGetCode, MediaError,
+        MediaErrorClass, castToMediaError, gTypeMediaError, toMediaError)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/MediaList.chs b/Graphics/UI/Gtk/WebKit/DOM/MediaList.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/MediaList.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/MediaList.chs
@@ -1,6 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.MediaList
        (mediaListItem, mediaListDeleteMedium, mediaListAppendMedium,
-        mediaListSetMediaText, mediaListGetMediaText, mediaListGetLength)
+        mediaListSetMediaText, mediaListGetMediaText, mediaListGetLength,
+        MediaList, MediaListClass, castToMediaList, gTypeMediaList,
+        toMediaList)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/MediaQueryList.chs b/Graphics/UI/Gtk/WebKit/DOM/MediaQueryList.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/MediaQueryList.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/MediaQueryList.chs
@@ -1,5 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.MediaQueryList
-       (mediaQueryListGetMedia, mediaQueryListGetMatches) where
+       (mediaQueryListGetMedia, mediaQueryListGetMatches, MediaQueryList,
+        MediaQueryListClass, castToMediaQueryList, gTypeMediaQueryList,
+        toMediaQueryList)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/MouseEvent.chs b/Graphics/UI/Gtk/WebKit/DOM/MouseEvent.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/MouseEvent.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/MouseEvent.chs
@@ -6,7 +6,8 @@
         mouseEventGetRelatedTarget, mouseEventGetWebkitMovementX,
         mouseEventGetWebkitMovementY, mouseEventGetOffsetX,
         mouseEventGetOffsetY, mouseEventGetX, mouseEventGetY,
-        mouseEventGetFromElement, mouseEventGetToElement)
+        mouseEventGetFromElement, mouseEventGetToElement, MouseEvent,
+        MouseEventClass, castToMouseEvent, gTypeMouseEvent, toMouseEvent)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/NamedNodeMap.chs b/Graphics/UI/Gtk/WebKit/DOM/NamedNodeMap.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/NamedNodeMap.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/NamedNodeMap.chs
@@ -2,7 +2,9 @@
        (namedNodeMapGetNamedItem, namedNodeMapSetNamedItem,
         namedNodeMapRemoveNamedItem, namedNodeMapItem,
         namedNodeMapGetNamedItemNS, namedNodeMapSetNamedItemNS,
-        namedNodeMapRemoveNamedItemNS, namedNodeMapGetLength)
+        namedNodeMapRemoveNamedItemNS, namedNodeMapGetLength, NamedNodeMap,
+        NamedNodeMapClass, castToNamedNodeMap, gTypeNamedNodeMap,
+        toNamedNodeMap)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/Navigator.chs b/Graphics/UI/Gtk/WebKit/DOM/Navigator.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/Navigator.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/Navigator.chs
@@ -5,7 +5,8 @@
         navigatorGetUserAgent, navigatorGetPlatform, navigatorGetPlugins,
         navigatorGetMimeTypes, navigatorGetProduct, navigatorGetProductSub,
         navigatorGetVendor, navigatorGetVendorSub,
-        navigatorGetCookieEnabled, navigatorGetOnLine)
+        navigatorGetCookieEnabled, navigatorGetOnLine, Navigator,
+        NavigatorClass, castToNavigator, gTypeNavigator, toNavigator)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/Node.chs b/Graphics/UI/Gtk/WebKit/DOM/Node.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/Node.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/Node.chs
@@ -17,7 +17,8 @@
         nodeGetLastChild, nodeGetPreviousSibling, nodeGetNextSibling,
         nodeGetOwnerDocument, nodeGetNamespaceURI, nodeSetPrefix,
         nodeGetPrefix, nodeGetLocalName, nodeGetBaseURI,
-        nodeSetTextContent, nodeGetTextContent, nodeGetParentElement)
+        nodeSetTextContent, nodeGetTextContent, nodeGetParentElement, Node,
+        NodeClass, castToNode, gTypeNode, toNode)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/NodeFilter.chs b/Graphics/UI/Gtk/WebKit/DOM/NodeFilter.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/NodeFilter.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/NodeFilter.chs
@@ -3,7 +3,8 @@
         cSHOW_ELEMENT, cSHOW_ATTRIBUTE, cSHOW_TEXT, cSHOW_CDATA_SECTION,
         cSHOW_ENTITY_REFERENCE, cSHOW_ENTITY, cSHOW_PROCESSING_INSTRUCTION,
         cSHOW_COMMENT, cSHOW_DOCUMENT, cSHOW_DOCUMENT_TYPE,
-        cSHOW_DOCUMENT_FRAGMENT, cSHOW_NOTATION)
+        cSHOW_DOCUMENT_FRAGMENT, cSHOW_NOTATION, NodeFilter,
+        NodeFilterClass, castToNodeFilter, gTypeNodeFilter, toNodeFilter)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/NodeIterator.chs b/Graphics/UI/Gtk/WebKit/DOM/NodeIterator.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/NodeIterator.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/NodeIterator.chs
@@ -3,7 +3,9 @@
         nodeIteratorGetWhatToShow, nodeIteratorGetFilter,
         nodeIteratorGetExpandEntityReferences,
         nodeIteratorGetReferenceNode,
-        nodeIteratorGetPointerBeforeReferenceNode)
+        nodeIteratorGetPointerBeforeReferenceNode, NodeIterator,
+        NodeIteratorClass, castToNodeIterator, gTypeNodeIterator,
+        toNodeIterator)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/NodeList.chs b/Graphics/UI/Gtk/WebKit/DOM/NodeList.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/NodeList.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/NodeList.chs
@@ -1,5 +1,7 @@
 module Graphics.UI.Gtk.WebKit.DOM.NodeList
-       (nodeListItem, nodeListGetLength) where
+       (nodeListItem, nodeListGetLength, NodeList, NodeListClass,
+        castToNodeList, gTypeNodeList, toNodeList)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/ProcessingInstruction.chs b/Graphics/UI/Gtk/WebKit/DOM/ProcessingInstruction.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/ProcessingInstruction.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/ProcessingInstruction.chs
@@ -1,6 +1,9 @@
 module Graphics.UI.Gtk.WebKit.DOM.ProcessingInstruction
        (processingInstructionGetTarget, processingInstructionSetData,
-        processingInstructionGetData, processingInstructionGetSheet)
+        processingInstructionGetData, processingInstructionGetSheet,
+        ProcessingInstruction, ProcessingInstructionClass,
+        castToProcessingInstruction, gTypeProcessingInstruction,
+        toProcessingInstruction)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/Range.chs b/Graphics/UI/Gtk/WebKit/DOM/Range.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/Range.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/Range.chs
@@ -11,7 +11,8 @@
         cEND_TO_START, cNODE_BEFORE, cNODE_AFTER, cNODE_BEFORE_AND_AFTER,
         cNODE_INSIDE, rangeGetStartContainer, rangeGetStartOffset,
         rangeGetEndContainer, rangeGetEndOffset, rangeGetCollapsed,
-        rangeGetCommonAncestorContainer, rangeGetText)
+        rangeGetCommonAncestorContainer, rangeGetText, DOMRange,
+        DOMRangeClass, castToDOMRange, gTypeDOMRange, toDOMRange)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/Screen.chs b/Graphics/UI/Gtk/WebKit/DOM/Screen.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/Screen.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/Screen.chs
@@ -1,7 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.Screen
        (screenGetHeight, screenGetWidth, screenGetColorDepth,
         screenGetPixelDepth, screenGetAvailLeft, screenGetAvailTop,
-        screenGetAvailHeight, screenGetAvailWidth)
+        screenGetAvailHeight, screenGetAvailWidth, DOMScreen,
+        DOMScreenClass, castToDOMScreen, gTypeDOMScreen, toDOMScreen)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/Storage.chs b/Graphics/UI/Gtk/WebKit/DOM/Storage.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/Storage.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/Storage.chs
@@ -1,6 +1,7 @@
 module Graphics.UI.Gtk.WebKit.DOM.Storage
        (storageKey, storageGetItem, storageSetItem, storageRemoveItem,
-        storageClear, storageGetLength)
+        storageClear, storageGetLength, Storage, StorageClass,
+        castToStorage, gTypeStorage, toStorage)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/StorageInfo.chs b/Graphics/UI/Gtk/WebKit/DOM/StorageInfo.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/StorageInfo.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/StorageInfo.chs
@@ -1,5 +1,10 @@
 module Graphics.UI.Gtk.WebKit.DOM.StorageInfo
-       (cTEMPORARY, cPERSISTENT) where
+       (
+#if WEBKIT_CHECK_VERSION(1,10,0)
+        cTEMPORARY, cPERSISTENT, StorageInfo, StorageInfoClass,
+        castToStorageInfo, gTypeStorageInfo, toStorageInfo
+#endif
+       ) where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/StyleMedia.chs b/Graphics/UI/Gtk/WebKit/DOM/StyleMedia.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/StyleMedia.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/StyleMedia.chs
@@ -1,5 +1,7 @@
 module Graphics.UI.Gtk.WebKit.DOM.StyleMedia
-       (styleMediaMatchMedium) where
+       (styleMediaMatchMedium, StyleMedia, StyleMediaClass,
+        castToStyleMedia, gTypeStyleMedia, toStyleMedia)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/StyleSheet.chs b/Graphics/UI/Gtk/WebKit/DOM/StyleSheet.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/StyleSheet.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/StyleSheet.chs
@@ -1,7 +1,9 @@
 module Graphics.UI.Gtk.WebKit.DOM.StyleSheet
        (styleSheetSetDisabled, styleSheetGetDisabled,
         styleSheetGetOwnerNode, styleSheetGetParentStyleSheet,
-        styleSheetGetHref, styleSheetGetTitle, styleSheetGetMedia)
+        styleSheetGetHref, styleSheetGetTitle, styleSheetGetMedia,
+        StyleSheet, StyleSheetClass, castToStyleSheet, gTypeStyleSheet,
+        toStyleSheet)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/StyleSheetList.chs b/Graphics/UI/Gtk/WebKit/DOM/StyleSheetList.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/StyleSheetList.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/StyleSheetList.chs
@@ -1,5 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.StyleSheetList
-       (styleSheetListItem, styleSheetListGetLength) where
+       (styleSheetListItem, styleSheetListGetLength, StyleSheetList,
+        StyleSheetListClass, castToStyleSheetList, gTypeStyleSheetList,
+        toStyleSheetList)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/Text.chs b/Graphics/UI/Gtk/WebKit/DOM/Text.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/Text.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/Text.chs
@@ -1,5 +1,7 @@
 module Graphics.UI.Gtk.WebKit.DOM.Text
-       (textSplitText, textReplaceWholeText, textGetWholeText) where
+       (textSplitText, textReplaceWholeText, textGetWholeText, Text(..),
+        TextClass(..), castToText, gTypeText, toText)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/TimeRanges.chs b/Graphics/UI/Gtk/WebKit/DOM/TimeRanges.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/TimeRanges.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/TimeRanges.chs
@@ -1,5 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.TimeRanges
-       (timeRangesStart, timeRangesEnd, timeRangesGetLength) where
+       (timeRangesStart, timeRangesEnd, timeRangesGetLength,
+        TimeRanges(..), TimeRangesClass(..), castToTimeRanges,
+        gTypeTimeRanges, toTimeRanges)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/TreeWalker.chs b/Graphics/UI/Gtk/WebKit/DOM/TreeWalker.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/TreeWalker.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/TreeWalker.chs
@@ -1,7 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.TreeWalker
        (treeWalkerGetRoot, treeWalkerGetWhatToShow, treeWalkerGetFilter,
         treeWalkerGetExpandEntityReferences, treeWalkerSetCurrentNode,
-        treeWalkerGetCurrentNode)
+        treeWalkerGetCurrentNode, TreeWalker(..), TreeWalkerClass(..),
+        castToTreeWalker, gTypeTreeWalker, toTreeWalker)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/UIEvent.chs b/Graphics/UI/Gtk/WebKit/DOM/UIEvent.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/UIEvent.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/UIEvent.chs
@@ -2,7 +2,8 @@
        (uiEventInitUIEvent, uiEventGetView, uiEventGetDetail,
         uiEventGetKeyCode, uiEventGetCharCode, uiEventGetLayerX,
         uiEventGetLayerY, uiEventGetPageX, uiEventGetPageY,
-        uiEventGetWhich)
+        uiEventGetWhich, UIEvent, UIEventClass, castToUIEvent,
+        gTypeUIEvent, toUIEvent)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/ValidityState.chs b/Graphics/UI/Gtk/WebKit/DOM/ValidityState.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/ValidityState.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/ValidityState.chs
@@ -6,7 +6,9 @@
 #if WEBKIT_CHECK_VERSION(2,2,2)
         validityStateGetBadInput,
 #endif
-        validityStateGetCustomError, validityStateGetValid)
+        validityStateGetCustomError, validityStateGetValid, ValidityState,
+        ValidityStateClass, castToValidityState, gTypeValidityState,
+        toValidityState)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/WebKitNamedFlow.chs b/Graphics/UI/Gtk/WebKit/DOM/WebKitNamedFlow.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/WebKitNamedFlow.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/WebKitNamedFlow.chs
@@ -4,7 +4,9 @@
         webKitNamedFlowGetRegionsByContent, webKitNamedFlowGetRegions,
         webKitNamedFlowGetContent, webKitNamedFlowDispatchEvent,
         webKitNamedFlowGetName, webKitNamedFlowGetOverset,
-        webKitNamedFlowGetFirstEmptyRegionIndex
+        webKitNamedFlowGetFirstEmptyRegionIndex, WebKitNamedFlow,
+        WebKitNamedFlowClass, castToWebKitNamedFlow, gTypeWebKitNamedFlow,
+        toWebKitNamedFlow
 #endif
         )
        where
diff --git a/Graphics/UI/Gtk/WebKit/DOM/WebKitPoint.chs b/Graphics/UI/Gtk/WebKit/DOM/WebKitPoint.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/WebKitPoint.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/WebKitPoint.chs
@@ -1,6 +1,7 @@
 module Graphics.UI.Gtk.WebKit.DOM.WebKitPoint
        (webKitPointSetX, webKitPointGetX, webKitPointSetY,
-        webKitPointGetY)
+        webKitPointGetY, WebKitPoint, WebKitPointClass, castToWebKitPoint,
+        gTypeWebKitPoint, toWebKitPoint)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/Graphics/UI/Gtk/WebKit/DOM/XPathExpression.chs b/Graphics/UI/Gtk/WebKit/DOM/XPathExpression.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/XPathExpression.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/XPathExpression.chs
@@ -1,5 +1,7 @@
 module Graphics.UI.Gtk.WebKit.DOM.XPathExpression
-       (xPathExpressionEvaluate) where
+       (xPathExpressionEvaluate, XPathExpression, XPathExpressionClass,
+        castToXPathExpression, gTypeXPathExpression, toXPathExpression)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/XPathNSResolver.chs b/Graphics/UI/Gtk/WebKit/DOM/XPathNSResolver.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/XPathNSResolver.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/XPathNSResolver.chs
@@ -1,5 +1,8 @@
 module Graphics.UI.Gtk.WebKit.DOM.XPathNSResolver
-       (xPathNSResolverLookupNamespaceURI) where
+       (xPathNSResolverLookupNamespaceURI, XPathNSResolver,
+        XPathNSResolverClass, castToXPathNSResolver, gTypeXPathNSResolver,
+        toXPathNSResolver)
+       where
 import System.Glib.FFI
 import System.Glib.UTFString
 import Control.Applicative
diff --git a/Graphics/UI/Gtk/WebKit/DOM/XPathResult.chs b/Graphics/UI/Gtk/WebKit/DOM/XPathResult.chs
--- a/Graphics/UI/Gtk/WebKit/DOM/XPathResult.chs
+++ b/Graphics/UI/Gtk/WebKit/DOM/XPathResult.chs
@@ -7,7 +7,8 @@
         xPathResultGetResultType, xPathResultGetNumberValue,
         xPathResultGetStringValue, xPathResultGetBooleanValue,
         xPathResultGetSingleNodeValue, xPathResultGetInvalidIteratorState,
-        xPathResultGetSnapshotLength)
+        xPathResultGetSnapshotLength, XPathResult, XPathResultClass,
+        castToXPathResult, gTypeXPathResult, toXPathResult)
        where
 import System.Glib.FFI
 import System.Glib.UTFString
diff --git a/webkit.cabal b/webkit.cabal
--- a/webkit.cabal
+++ b/webkit.cabal
@@ -1,5 +1,5 @@
 Name:           webkit
-Version:        0.12.5.1
+Version:        0.12.5.2
 License:        LGPL-2.1
 License-file:   COPYING
 Copyright:      (c) 2001-2013 The Gtk2Hs Team
