{-# LANGUAGE PatternSynonyms #-} -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Document (newDocument, createElement, createElement_, createElementUnsafe, createElementUnchecked, createDocumentFragment, createDocumentFragment_, createDocumentFragmentUnsafe, createDocumentFragmentUnchecked, createTextNode, createTextNode_, createTextNodeUnsafe, createTextNodeUnchecked, createComment, createComment_, createCommentUnsafe, createCommentUnchecked, createCDATASection, createCDATASection_, createCDATASectionUnsafe, createCDATASectionUnchecked, createProcessingInstruction, createProcessingInstruction_, createProcessingInstructionUnsafe, createProcessingInstructionUnchecked, createAttribute, createAttribute_, createAttributeUnsafe, createAttributeUnchecked, createEntityReference, createEntityReference_, createEntityReferenceUnsafe, createEntityReferenceUnchecked, getElementsByTagName, getElementsByTagName_, getElementsByTagNameUnsafe, getElementsByTagNameUnchecked, importNode, importNode_, importNodeUnsafe, importNodeUnchecked, createElementNS, createElementNS_, createElementNSUnsafe, createElementNSUnchecked, createAttributeNS, createAttributeNS_, createAttributeNSUnsafe, createAttributeNSUnchecked, getElementsByTagNameNS, getElementsByTagNameNS_, getElementsByTagNameNSUnsafe, getElementsByTagNameNSUnchecked, getElementById, getElementById_, getElementByIdUnsafe, getElementByIdUnchecked, adoptNode, adoptNode_, adoptNodeUnsafe, adoptNodeUnchecked, createEvent, createEvent_, createEventUnsafe, createEventUnchecked, createRange, createRange_, createRangeUnsafe, createRangeUnchecked, createNodeIterator, createNodeIterator_, createNodeIteratorUnsafe, createNodeIteratorUnchecked, createTreeWalker, createTreeWalker_, createTreeWalkerUnsafe, createTreeWalkerUnchecked, getOverrideStyle, getOverrideStyle_, getOverrideStyleUnsafe, getOverrideStyleUnchecked, createExpression, createExpression_, createExpressionUnsafe, createExpressionUnchecked, createNSResolver, createNSResolver_, createNSResolverUnsafe, createNSResolverUnchecked, evaluate, evaluate_, evaluateUnsafe, evaluateUnchecked, execCommand, execCommand_, queryCommandEnabled, queryCommandEnabled_, queryCommandIndeterm, queryCommandIndeterm_, queryCommandState, queryCommandState_, queryCommandSupported, queryCommandSupported_, queryCommandValue, queryCommandValue_, getElementsByName, getElementsByName_, getElementsByNameUnsafe, getElementsByNameUnchecked, elementFromPoint, elementFromPoint_, elementFromPointUnsafe, elementFromPointUnchecked, caretRangeFromPoint, caretRangeFromPoint_, caretRangeFromPointUnsafe, caretRangeFromPointUnchecked, getSelection, getSelection_, getSelectionUnsafe, getSelectionUnchecked, getCSSCanvasContext, getCSSCanvasContext_, getCSSCanvasContextUnsafe, getCSSCanvasContextUnchecked, getElementsByClassName, getElementsByClassName_, getElementsByClassNameUnsafe, getElementsByClassNameUnchecked, hasFocus, hasFocus_, querySelector, querySelector_, querySelectorUnsafe, querySelectorUnchecked, querySelectorAll, querySelectorAll_, querySelectorAllUnsafe, querySelectorAllUnchecked, webkitCancelFullScreen, webkitExitFullscreen, exitPointerLock, webkitGetNamedFlows, webkitGetNamedFlows_, webkitGetNamedFlowsUnsafe, webkitGetNamedFlowsUnchecked, createTouch, createTouch_, createTouchUnsafe, createTouchUnchecked, createTouchList, createTouchList_, createTouchListUnsafe, createTouchListUnchecked, getDoctype, getDoctypeUnsafe, getDoctypeUnchecked, getImplementation, getImplementationUnsafe, getImplementationUnchecked, getDocumentElement, getDocumentElementUnsafe, getDocumentElementUnchecked, getInputEncoding, getInputEncodingUnsafe, getInputEncodingUnchecked, getXmlEncoding, getXmlEncodingUnsafe, getXmlEncodingUnchecked, setXmlVersion, getXmlVersion, getXmlVersionUnsafe, getXmlVersionUnchecked, setXmlStandalone, getXmlStandalone, getDocumentURI, getDocumentURIUnsafe, getDocumentURIUnchecked, getDefaultView, getDefaultViewUnsafe, getDefaultViewUnchecked, getStyleSheets, getStyleSheetsUnsafe, getStyleSheetsUnchecked, getContentType, setTitle, getTitle, getTitleUnsafe, getTitleUnchecked, getReferrer, setDomain, getDomain, getDomainUnsafe, getDomainUnchecked, getURL, setCookie, getCookie, getCookieUnsafe, getCookieUnchecked, setBody, getBody, getBodyUnsafe, getBodyUnchecked, getHead, getHeadUnsafe, getHeadUnchecked, getImages, getImagesUnsafe, getImagesUnchecked, getApplets, getAppletsUnsafe, getAppletsUnchecked, getLinks, getLinksUnsafe, getLinksUnchecked, getForms, getFormsUnsafe, getFormsUnchecked, getAnchors, getAnchorsUnsafe, getAnchorsUnchecked, getLastModified, setLocation, getLocation, getLocationUnsafe, getLocationUnchecked, setCharset, getCharset, getCharsetUnsafe, getCharsetUnchecked, getDefaultCharset, getDefaultCharsetUnsafe, getDefaultCharsetUnchecked, getReadyState, getReadyStateUnsafe, getReadyStateUnchecked, getCharacterSet, getCharacterSetUnsafe, getCharacterSetUnchecked, getPreferredStylesheetSet, getPreferredStylesheetSetUnsafe, getPreferredStylesheetSetUnchecked, setSelectedStylesheetSet, getSelectedStylesheetSet, getSelectedStylesheetSetUnsafe, getSelectedStylesheetSetUnchecked, getActiveElement, getActiveElementUnsafe, getActiveElementUnchecked, getCompatMode, getWebkitIsFullScreen, getWebkitFullScreenKeyboardInputAllowed, getWebkitCurrentFullScreenElement, getWebkitCurrentFullScreenElementUnsafe, getWebkitCurrentFullScreenElementUnchecked, getWebkitFullscreenEnabled, getWebkitFullscreenElement, getWebkitFullscreenElementUnsafe, getWebkitFullscreenElementUnchecked, getPointerLockElement, getPointerLockElementUnsafe, getPointerLockElementUnchecked, getFonts, getFontsUnsafe, getFontsUnchecked, abort, blur, change, click, contextMenu, dblClick, drag, dragEnd, dragEnter, dragLeave, dragOver, dragStart, drop, error, focus, input, invalid, keyDown, keyPress, keyUp, load, mouseDown, mouseEnter, mouseLeave, mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel, readyStateChange, scroll, select, submit, wheel, beforeCut, cut, beforeCopy, copy, beforePaste, paste, reset, search, selectStart, selectionchange, touchStart, touchMove, touchEnd, touchCancel, webKitFullscreenChange, webKitFullscreenError, pointerlockchange, pointerlockerror, securitypolicyviolation, webKitWillRevealBottom, webKitWillRevealLeft, webKitWillRevealRight, webKitWillRevealTop, getVisibilityState, getHidden, getSecurityPolicy, getSecurityPolicyUnsafe, getSecurityPolicyUnchecked, getCurrentScript, getCurrentScriptUnsafe, getCurrentScriptUnchecked, getOrigin, Document(..), gTypeDocument, IsDocument, toDocument) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..)) import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64) import Data.Word (Word, Word64) import JSDOM.Types import Control.Applicative ((<$>)) import Control.Monad (void) import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums -- | newDocument :: (MonadDOM m) => m Document newDocument = liftDOM (Document <$> new (jsg "Document") ()) -- | createElement :: (MonadDOM m, IsDocument self, ToJSString tagName) => self -> Maybe tagName -> m (Maybe Element) createElement self tagName = liftDOM (((toDocument self) ^. jsf "createElement" [toJSVal tagName]) >>= fromJSVal) -- | createElement_ :: (MonadDOM m, IsDocument self, ToJSString tagName) => self -> Maybe tagName -> m () createElement_ self tagName = liftDOM (void ((toDocument self) ^. jsf "createElement" [toJSVal tagName])) -- | createElementUnsafe :: (MonadDOM m, IsDocument self, ToJSString tagName, HasCallStack) => self -> Maybe tagName -> m Element createElementUnsafe self tagName = liftDOM ((((toDocument self) ^. jsf "createElement" [toJSVal tagName]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | createElementUnchecked :: (MonadDOM m, IsDocument self, ToJSString tagName) => self -> Maybe tagName -> m Element createElementUnchecked self tagName = liftDOM (((toDocument self) ^. jsf "createElement" [toJSVal tagName]) >>= fromJSValUnchecked) -- | createDocumentFragment :: (MonadDOM m, IsDocument self) => self -> m (Maybe DocumentFragment) createDocumentFragment self = liftDOM (((toDocument self) ^. jsf "createDocumentFragment" ()) >>= fromJSVal) -- | createDocumentFragment_ :: (MonadDOM m, IsDocument self) => self -> m () createDocumentFragment_ self = liftDOM (void ((toDocument self) ^. jsf "createDocumentFragment" ())) -- | createDocumentFragmentUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m DocumentFragment createDocumentFragmentUnsafe self = liftDOM ((((toDocument self) ^. jsf "createDocumentFragment" ()) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | createDocumentFragmentUnchecked :: (MonadDOM m, IsDocument self) => self -> m DocumentFragment createDocumentFragmentUnchecked self = liftDOM (((toDocument self) ^. jsf "createDocumentFragment" ()) >>= fromJSValUnchecked) -- | createTextNode :: (MonadDOM m, IsDocument self, ToJSString data') => self -> data' -> m (Maybe Text) createTextNode self data' = liftDOM (((toDocument self) ^. jsf "createTextNode" [toJSVal data']) >>= fromJSVal) -- | createTextNode_ :: (MonadDOM m, IsDocument self, ToJSString data') => self -> data' -> m () createTextNode_ self data' = liftDOM (void ((toDocument self) ^. jsf "createTextNode" [toJSVal data'])) -- | createTextNodeUnsafe :: (MonadDOM m, IsDocument self, ToJSString data', HasCallStack) => self -> data' -> m Text createTextNodeUnsafe self data' = liftDOM ((((toDocument self) ^. jsf "createTextNode" [toJSVal data']) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | createTextNodeUnchecked :: (MonadDOM m, IsDocument self, ToJSString data') => self -> data' -> m Text createTextNodeUnchecked self data' = liftDOM (((toDocument self) ^. jsf "createTextNode" [toJSVal data']) >>= fromJSValUnchecked) -- | createComment :: (MonadDOM m, IsDocument self, ToJSString data') => self -> data' -> m (Maybe Comment) createComment self data' = liftDOM (((toDocument self) ^. jsf "createComment" [toJSVal data']) >>= fromJSVal) -- | createComment_ :: (MonadDOM m, IsDocument self, ToJSString data') => self -> data' -> m () createComment_ self data' = liftDOM (void ((toDocument self) ^. jsf "createComment" [toJSVal data'])) -- | createCommentUnsafe :: (MonadDOM m, IsDocument self, ToJSString data', HasCallStack) => self -> data' -> m Comment createCommentUnsafe self data' = liftDOM ((((toDocument self) ^. jsf "createComment" [toJSVal data']) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | createCommentUnchecked :: (MonadDOM m, IsDocument self, ToJSString data') => self -> data' -> m Comment createCommentUnchecked self data' = liftDOM (((toDocument self) ^. jsf "createComment" [toJSVal data']) >>= fromJSValUnchecked) -- | createCDATASection :: (MonadDOM m, IsDocument self, ToJSString data') => self -> data' -> m (Maybe CDATASection) createCDATASection self data' = liftDOM (((toDocument self) ^. jsf "createCDATASection" [toJSVal data']) >>= fromJSVal) -- | createCDATASection_ :: (MonadDOM m, IsDocument self, ToJSString data') => self -> data' -> m () createCDATASection_ self data' = liftDOM (void ((toDocument self) ^. jsf "createCDATASection" [toJSVal data'])) -- | createCDATASectionUnsafe :: (MonadDOM m, IsDocument self, ToJSString data', HasCallStack) => self -> data' -> m CDATASection createCDATASectionUnsafe self data' = liftDOM ((((toDocument self) ^. jsf "createCDATASection" [toJSVal data']) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | createCDATASectionUnchecked :: (MonadDOM m, IsDocument self, ToJSString data') => self -> data' -> m CDATASection createCDATASectionUnchecked self data' = liftDOM (((toDocument self) ^. jsf "createCDATASection" [toJSVal data']) >>= fromJSValUnchecked) -- | createProcessingInstruction :: (MonadDOM m, IsDocument self, ToJSString target, ToJSString data') => self -> target -> data' -> m (Maybe ProcessingInstruction) createProcessingInstruction self target data' = liftDOM (((toDocument self) ^. jsf "createProcessingInstruction" [toJSVal target, toJSVal data']) >>= fromJSVal) -- | createProcessingInstruction_ :: (MonadDOM m, IsDocument self, ToJSString target, ToJSString data') => self -> target -> data' -> m () createProcessingInstruction_ self target data' = liftDOM (void ((toDocument self) ^. jsf "createProcessingInstruction" [toJSVal target, toJSVal data'])) -- | createProcessingInstructionUnsafe :: (MonadDOM m, IsDocument self, ToJSString target, ToJSString data', HasCallStack) => self -> target -> data' -> m ProcessingInstruction createProcessingInstructionUnsafe self target data' = liftDOM ((((toDocument self) ^. jsf "createProcessingInstruction" [toJSVal target, toJSVal data']) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | createProcessingInstructionUnchecked :: (MonadDOM m, IsDocument self, ToJSString target, ToJSString data') => self -> target -> data' -> m ProcessingInstruction createProcessingInstructionUnchecked self target data' = liftDOM (((toDocument self) ^. jsf "createProcessingInstruction" [toJSVal target, toJSVal data']) >>= fromJSValUnchecked) -- | createAttribute :: (MonadDOM m, IsDocument self, ToJSString name) => self -> name -> m (Maybe Attr) createAttribute self name = liftDOM (((toDocument self) ^. jsf "createAttribute" [toJSVal name]) >>= fromJSVal) -- | createAttribute_ :: (MonadDOM m, IsDocument self, ToJSString name) => self -> name -> m () createAttribute_ self name = liftDOM (void ((toDocument self) ^. jsf "createAttribute" [toJSVal name])) -- | createAttributeUnsafe :: (MonadDOM m, IsDocument self, ToJSString name, HasCallStack) => self -> name -> m Attr createAttributeUnsafe self name = liftDOM ((((toDocument self) ^. jsf "createAttribute" [toJSVal name]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | createAttributeUnchecked :: (MonadDOM m, IsDocument self, ToJSString name) => self -> name -> m Attr createAttributeUnchecked self name = liftDOM (((toDocument self) ^. jsf "createAttribute" [toJSVal name]) >>= fromJSValUnchecked) -- | createEntityReference :: (MonadDOM m, IsDocument self, ToJSString name) => self -> name -> m (Maybe EntityReference) createEntityReference self name = liftDOM (((toDocument self) ^. jsf "createEntityReference" [toJSVal name]) >>= fromJSVal) -- | createEntityReference_ :: (MonadDOM m, IsDocument self, ToJSString name) => self -> name -> m () createEntityReference_ self name = liftDOM (void ((toDocument self) ^. jsf "createEntityReference" [toJSVal name])) -- | createEntityReferenceUnsafe :: (MonadDOM m, IsDocument self, ToJSString name, HasCallStack) => self -> name -> m EntityReference createEntityReferenceUnsafe self name = liftDOM ((((toDocument self) ^. jsf "createEntityReference" [toJSVal name]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | createEntityReferenceUnchecked :: (MonadDOM m, IsDocument self, ToJSString name) => self -> name -> m EntityReference createEntityReferenceUnchecked self name = liftDOM (((toDocument self) ^. jsf "createEntityReference" [toJSVal name]) >>= fromJSValUnchecked) -- | getElementsByTagName :: (MonadDOM m, IsDocument self, ToJSString tagname) => self -> tagname -> m (Maybe NodeList) getElementsByTagName self tagname = liftDOM (((toDocument self) ^. jsf "getElementsByTagName" [toJSVal tagname]) >>= fromJSVal) -- | getElementsByTagName_ :: (MonadDOM m, IsDocument self, ToJSString tagname) => self -> tagname -> m () getElementsByTagName_ self tagname = liftDOM (void ((toDocument self) ^. jsf "getElementsByTagName" [toJSVal tagname])) -- | getElementsByTagNameUnsafe :: (MonadDOM m, IsDocument self, ToJSString tagname, HasCallStack) => self -> tagname -> m NodeList getElementsByTagNameUnsafe self tagname = liftDOM ((((toDocument self) ^. jsf "getElementsByTagName" [toJSVal tagname]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getElementsByTagNameUnchecked :: (MonadDOM m, IsDocument self, ToJSString tagname) => self -> tagname -> m NodeList getElementsByTagNameUnchecked self tagname = liftDOM (((toDocument self) ^. jsf "getElementsByTagName" [toJSVal tagname]) >>= fromJSValUnchecked) -- | importNode :: (MonadDOM m, IsDocument self, IsNode importedNode) => self -> Maybe importedNode -> Bool -> m (Maybe Node) importNode self importedNode deep = liftDOM (((toDocument self) ^. jsf "importNode" [toJSVal importedNode, toJSVal deep]) >>= fromJSVal) -- | importNode_ :: (MonadDOM m, IsDocument self, IsNode importedNode) => self -> Maybe importedNode -> Bool -> m () importNode_ self importedNode deep = liftDOM (void ((toDocument self) ^. jsf "importNode" [toJSVal importedNode, toJSVal deep])) -- | importNodeUnsafe :: (MonadDOM m, IsDocument self, IsNode importedNode, HasCallStack) => self -> Maybe importedNode -> Bool -> m Node importNodeUnsafe self importedNode deep = liftDOM ((((toDocument self) ^. jsf "importNode" [toJSVal importedNode, toJSVal deep]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | importNodeUnchecked :: (MonadDOM m, IsDocument self, IsNode importedNode) => self -> Maybe importedNode -> Bool -> m Node importNodeUnchecked self importedNode deep = liftDOM (((toDocument self) ^. jsf "importNode" [toJSVal importedNode, toJSVal deep]) >>= fromJSValUnchecked) -- | createElementNS :: (MonadDOM m, IsDocument self, ToJSString namespaceURI, ToJSString qualifiedName) => self -> Maybe namespaceURI -> Maybe qualifiedName -> m (Maybe Element) createElementNS self namespaceURI qualifiedName = liftDOM (((toDocument self) ^. jsf "createElementNS" [toJSVal namespaceURI, toJSVal qualifiedName]) >>= fromJSVal) -- | createElementNS_ :: (MonadDOM m, IsDocument self, ToJSString namespaceURI, ToJSString qualifiedName) => self -> Maybe namespaceURI -> Maybe qualifiedName -> m () createElementNS_ self namespaceURI qualifiedName = liftDOM (void ((toDocument self) ^. jsf "createElementNS" [toJSVal namespaceURI, toJSVal qualifiedName])) -- | createElementNSUnsafe :: (MonadDOM m, IsDocument self, ToJSString namespaceURI, ToJSString qualifiedName, HasCallStack) => self -> Maybe namespaceURI -> Maybe qualifiedName -> m Element createElementNSUnsafe self namespaceURI qualifiedName = liftDOM ((((toDocument self) ^. jsf "createElementNS" [toJSVal namespaceURI, toJSVal qualifiedName]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | createElementNSUnchecked :: (MonadDOM m, IsDocument self, ToJSString namespaceURI, ToJSString qualifiedName) => self -> Maybe namespaceURI -> Maybe qualifiedName -> m Element createElementNSUnchecked self namespaceURI qualifiedName = liftDOM (((toDocument self) ^. jsf "createElementNS" [toJSVal namespaceURI, toJSVal qualifiedName]) >>= fromJSValUnchecked) -- | createAttributeNS :: (MonadDOM m, IsDocument self, ToJSString namespaceURI, ToJSString qualifiedName) => self -> Maybe namespaceURI -> Maybe qualifiedName -> m (Maybe Attr) createAttributeNS self namespaceURI qualifiedName = liftDOM (((toDocument self) ^. jsf "createAttributeNS" [toJSVal namespaceURI, toJSVal qualifiedName]) >>= fromJSVal) -- | createAttributeNS_ :: (MonadDOM m, IsDocument self, ToJSString namespaceURI, ToJSString qualifiedName) => self -> Maybe namespaceURI -> Maybe qualifiedName -> m () createAttributeNS_ self namespaceURI qualifiedName = liftDOM (void ((toDocument self) ^. jsf "createAttributeNS" [toJSVal namespaceURI, toJSVal qualifiedName])) -- | createAttributeNSUnsafe :: (MonadDOM m, IsDocument self, ToJSString namespaceURI, ToJSString qualifiedName, HasCallStack) => self -> Maybe namespaceURI -> Maybe qualifiedName -> m Attr createAttributeNSUnsafe self namespaceURI qualifiedName = liftDOM ((((toDocument self) ^. jsf "createAttributeNS" [toJSVal namespaceURI, toJSVal qualifiedName]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | createAttributeNSUnchecked :: (MonadDOM m, IsDocument self, ToJSString namespaceURI, ToJSString qualifiedName) => self -> Maybe namespaceURI -> Maybe qualifiedName -> m Attr createAttributeNSUnchecked self namespaceURI qualifiedName = liftDOM (((toDocument self) ^. jsf "createAttributeNS" [toJSVal namespaceURI, toJSVal qualifiedName]) >>= fromJSValUnchecked) -- | getElementsByTagNameNS :: (MonadDOM m, IsDocument self, ToJSString namespaceURI, ToJSString localName) => self -> Maybe namespaceURI -> localName -> m (Maybe NodeList) getElementsByTagNameNS self namespaceURI localName = liftDOM (((toDocument self) ^. jsf "getElementsByTagNameNS" [toJSVal namespaceURI, toJSVal localName]) >>= fromJSVal) -- | getElementsByTagNameNS_ :: (MonadDOM m, IsDocument self, ToJSString namespaceURI, ToJSString localName) => self -> Maybe namespaceURI -> localName -> m () getElementsByTagNameNS_ self namespaceURI localName = liftDOM (void ((toDocument self) ^. jsf "getElementsByTagNameNS" [toJSVal namespaceURI, toJSVal localName])) -- | getElementsByTagNameNSUnsafe :: (MonadDOM m, IsDocument self, ToJSString namespaceURI, ToJSString localName, HasCallStack) => self -> Maybe namespaceURI -> localName -> m NodeList getElementsByTagNameNSUnsafe self namespaceURI localName = liftDOM ((((toDocument self) ^. jsf "getElementsByTagNameNS" [toJSVal namespaceURI, toJSVal localName]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getElementsByTagNameNSUnchecked :: (MonadDOM m, IsDocument self, ToJSString namespaceURI, ToJSString localName) => self -> Maybe namespaceURI -> localName -> m NodeList getElementsByTagNameNSUnchecked self namespaceURI localName = liftDOM (((toDocument self) ^. jsf "getElementsByTagNameNS" [toJSVal namespaceURI, toJSVal localName]) >>= fromJSValUnchecked) -- | getElementById :: (MonadDOM m, IsDocument self, ToJSString elementId) => self -> elementId -> m (Maybe Element) getElementById self elementId = liftDOM (((toDocument self) ^. jsf "getElementById" [toJSVal elementId]) >>= fromJSVal) -- | getElementById_ :: (MonadDOM m, IsDocument self, ToJSString elementId) => self -> elementId -> m () getElementById_ self elementId = liftDOM (void ((toDocument self) ^. jsf "getElementById" [toJSVal elementId])) -- | getElementByIdUnsafe :: (MonadDOM m, IsDocument self, ToJSString elementId, HasCallStack) => self -> elementId -> m Element getElementByIdUnsafe self elementId = liftDOM ((((toDocument self) ^. jsf "getElementById" [toJSVal elementId]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getElementByIdUnchecked :: (MonadDOM m, IsDocument self, ToJSString elementId) => self -> elementId -> m Element getElementByIdUnchecked self elementId = liftDOM (((toDocument self) ^. jsf "getElementById" [toJSVal elementId]) >>= fromJSValUnchecked) -- | adoptNode :: (MonadDOM m, IsDocument self, IsNode source) => self -> Maybe source -> m (Maybe Node) adoptNode self source = liftDOM (((toDocument self) ^. jsf "adoptNode" [toJSVal source]) >>= fromJSVal) -- | adoptNode_ :: (MonadDOM m, IsDocument self, IsNode source) => self -> Maybe source -> m () adoptNode_ self source = liftDOM (void ((toDocument self) ^. jsf "adoptNode" [toJSVal source])) -- | adoptNodeUnsafe :: (MonadDOM m, IsDocument self, IsNode source, HasCallStack) => self -> Maybe source -> m Node adoptNodeUnsafe self source = liftDOM ((((toDocument self) ^. jsf "adoptNode" [toJSVal source]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | adoptNodeUnchecked :: (MonadDOM m, IsDocument self, IsNode source) => self -> Maybe source -> m Node adoptNodeUnchecked self source = liftDOM (((toDocument self) ^. jsf "adoptNode" [toJSVal source]) >>= fromJSValUnchecked) -- | createEvent :: (MonadDOM m, IsDocument self, ToJSString eventType) => self -> eventType -> m (Maybe Event) createEvent self eventType = liftDOM (((toDocument self) ^. jsf "createEvent" [toJSVal eventType]) >>= fromJSVal) -- | createEvent_ :: (MonadDOM m, IsDocument self, ToJSString eventType) => self -> eventType -> m () createEvent_ self eventType = liftDOM (void ((toDocument self) ^. jsf "createEvent" [toJSVal eventType])) -- | createEventUnsafe :: (MonadDOM m, IsDocument self, ToJSString eventType, HasCallStack) => self -> eventType -> m Event createEventUnsafe self eventType = liftDOM ((((toDocument self) ^. jsf "createEvent" [toJSVal eventType]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | createEventUnchecked :: (MonadDOM m, IsDocument self, ToJSString eventType) => self -> eventType -> m Event createEventUnchecked self eventType = liftDOM (((toDocument self) ^. jsf "createEvent" [toJSVal eventType]) >>= fromJSValUnchecked) -- | createRange :: (MonadDOM m, IsDocument self) => self -> m (Maybe Range) createRange self = liftDOM (((toDocument self) ^. jsf "createRange" ()) >>= fromJSVal) -- | createRange_ :: (MonadDOM m, IsDocument self) => self -> m () createRange_ self = liftDOM (void ((toDocument self) ^. jsf "createRange" ())) -- | createRangeUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m Range createRangeUnsafe self = liftDOM ((((toDocument self) ^. jsf "createRange" ()) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | createRangeUnchecked :: (MonadDOM m, IsDocument self) => self -> m Range createRangeUnchecked self = liftDOM (((toDocument self) ^. jsf "createRange" ()) >>= fromJSValUnchecked) -- | createNodeIterator :: (MonadDOM m, IsDocument self, IsNode root) => self -> Maybe root -> Word -> Maybe NodeFilter -> Bool -> m (Maybe NodeIterator) createNodeIterator self root whatToShow filter expandEntityReferences = liftDOM (((toDocument self) ^. jsf "createNodeIterator" [toJSVal root, toJSVal whatToShow, toJSVal filter, toJSVal expandEntityReferences]) >>= fromJSVal) -- | createNodeIterator_ :: (MonadDOM m, IsDocument self, IsNode root) => self -> Maybe root -> Word -> Maybe NodeFilter -> Bool -> m () createNodeIterator_ self root whatToShow filter expandEntityReferences = liftDOM (void ((toDocument self) ^. jsf "createNodeIterator" [toJSVal root, toJSVal whatToShow, toJSVal filter, toJSVal expandEntityReferences])) -- | createNodeIteratorUnsafe :: (MonadDOM m, IsDocument self, IsNode root, HasCallStack) => self -> Maybe root -> Word -> Maybe NodeFilter -> Bool -> m NodeIterator createNodeIteratorUnsafe self root whatToShow filter expandEntityReferences = liftDOM ((((toDocument self) ^. jsf "createNodeIterator" [toJSVal root, toJSVal whatToShow, toJSVal filter, toJSVal expandEntityReferences]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | createNodeIteratorUnchecked :: (MonadDOM m, IsDocument self, IsNode root) => self -> Maybe root -> Word -> Maybe NodeFilter -> Bool -> m NodeIterator createNodeIteratorUnchecked self root whatToShow filter expandEntityReferences = liftDOM (((toDocument self) ^. jsf "createNodeIterator" [toJSVal root, toJSVal whatToShow, toJSVal filter, toJSVal expandEntityReferences]) >>= fromJSValUnchecked) -- | createTreeWalker :: (MonadDOM m, IsDocument self, IsNode root) => self -> Maybe root -> Word -> Maybe NodeFilter -> Bool -> m (Maybe TreeWalker) createTreeWalker self root whatToShow filter expandEntityReferences = liftDOM (((toDocument self) ^. jsf "createTreeWalker" [toJSVal root, toJSVal whatToShow, toJSVal filter, toJSVal expandEntityReferences]) >>= fromJSVal) -- | createTreeWalker_ :: (MonadDOM m, IsDocument self, IsNode root) => self -> Maybe root -> Word -> Maybe NodeFilter -> Bool -> m () createTreeWalker_ self root whatToShow filter expandEntityReferences = liftDOM (void ((toDocument self) ^. jsf "createTreeWalker" [toJSVal root, toJSVal whatToShow, toJSVal filter, toJSVal expandEntityReferences])) -- | createTreeWalkerUnsafe :: (MonadDOM m, IsDocument self, IsNode root, HasCallStack) => self -> Maybe root -> Word -> Maybe NodeFilter -> Bool -> m TreeWalker createTreeWalkerUnsafe self root whatToShow filter expandEntityReferences = liftDOM ((((toDocument self) ^. jsf "createTreeWalker" [toJSVal root, toJSVal whatToShow, toJSVal filter, toJSVal expandEntityReferences]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | createTreeWalkerUnchecked :: (MonadDOM m, IsDocument self, IsNode root) => self -> Maybe root -> Word -> Maybe NodeFilter -> Bool -> m TreeWalker createTreeWalkerUnchecked self root whatToShow filter expandEntityReferences = liftDOM (((toDocument self) ^. jsf "createTreeWalker" [toJSVal root, toJSVal whatToShow, toJSVal filter, toJSVal expandEntityReferences]) >>= fromJSValUnchecked) -- | getOverrideStyle :: (MonadDOM m, IsDocument self, IsElement element, ToJSString pseudoElement) => self -> Maybe element -> pseudoElement -> m (Maybe CSSStyleDeclaration) getOverrideStyle self element pseudoElement = liftDOM (((toDocument self) ^. jsf "getOverrideStyle" [toJSVal element, toJSVal pseudoElement]) >>= fromJSVal) -- | getOverrideStyle_ :: (MonadDOM m, IsDocument self, IsElement element, ToJSString pseudoElement) => self -> Maybe element -> pseudoElement -> m () getOverrideStyle_ self element pseudoElement = liftDOM (void ((toDocument self) ^. jsf "getOverrideStyle" [toJSVal element, toJSVal pseudoElement])) -- | getOverrideStyleUnsafe :: (MonadDOM m, IsDocument self, IsElement element, ToJSString pseudoElement, HasCallStack) => self -> Maybe element -> pseudoElement -> m CSSStyleDeclaration getOverrideStyleUnsafe self element pseudoElement = liftDOM ((((toDocument self) ^. jsf "getOverrideStyle" [toJSVal element, toJSVal pseudoElement]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getOverrideStyleUnchecked :: (MonadDOM m, IsDocument self, IsElement element, ToJSString pseudoElement) => self -> Maybe element -> pseudoElement -> m CSSStyleDeclaration getOverrideStyleUnchecked self element pseudoElement = liftDOM (((toDocument self) ^. jsf "getOverrideStyle" [toJSVal element, toJSVal pseudoElement]) >>= fromJSValUnchecked) -- | createExpression :: (MonadDOM m, IsDocument self, ToJSString expression) => self -> expression -> Maybe XPathNSResolver -> m (Maybe XPathExpression) createExpression self expression resolver = liftDOM (((toDocument self) ^. jsf "createExpression" [toJSVal expression, toJSVal resolver]) >>= fromJSVal) -- | createExpression_ :: (MonadDOM m, IsDocument self, ToJSString expression) => self -> expression -> Maybe XPathNSResolver -> m () createExpression_ self expression resolver = liftDOM (void ((toDocument self) ^. jsf "createExpression" [toJSVal expression, toJSVal resolver])) -- | createExpressionUnsafe :: (MonadDOM m, IsDocument self, ToJSString expression, HasCallStack) => self -> expression -> Maybe XPathNSResolver -> m XPathExpression createExpressionUnsafe self expression resolver = liftDOM ((((toDocument self) ^. jsf "createExpression" [toJSVal expression, toJSVal resolver]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | createExpressionUnchecked :: (MonadDOM m, IsDocument self, ToJSString expression) => self -> expression -> Maybe XPathNSResolver -> m XPathExpression createExpressionUnchecked self expression resolver = liftDOM (((toDocument self) ^. jsf "createExpression" [toJSVal expression, toJSVal resolver]) >>= fromJSValUnchecked) -- | createNSResolver :: (MonadDOM m, IsDocument self, IsNode nodeResolver) => self -> Maybe nodeResolver -> m (Maybe XPathNSResolver) createNSResolver self nodeResolver = liftDOM (((toDocument self) ^. jsf "createNSResolver" [toJSVal nodeResolver]) >>= fromJSVal) -- | createNSResolver_ :: (MonadDOM m, IsDocument self, IsNode nodeResolver) => self -> Maybe nodeResolver -> m () createNSResolver_ self nodeResolver = liftDOM (void ((toDocument self) ^. jsf "createNSResolver" [toJSVal nodeResolver])) -- | createNSResolverUnsafe :: (MonadDOM m, IsDocument self, IsNode nodeResolver, HasCallStack) => self -> Maybe nodeResolver -> m XPathNSResolver createNSResolverUnsafe self nodeResolver = liftDOM ((((toDocument self) ^. jsf "createNSResolver" [toJSVal nodeResolver]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | createNSResolverUnchecked :: (MonadDOM m, IsDocument self, IsNode nodeResolver) => self -> Maybe nodeResolver -> m XPathNSResolver createNSResolverUnchecked self nodeResolver = liftDOM (((toDocument self) ^. jsf "createNSResolver" [toJSVal nodeResolver]) >>= fromJSValUnchecked) -- | evaluate :: (MonadDOM m, IsDocument self, ToJSString expression, IsNode contextNode) => self -> expression -> Maybe contextNode -> Maybe XPathNSResolver -> Word -> Maybe XPathResult -> m (Maybe XPathResult) evaluate self expression contextNode resolver type' inResult = liftDOM (((toDocument self) ^. jsf "evaluate" [toJSVal expression, toJSVal contextNode, toJSVal resolver, toJSVal type', toJSVal inResult]) >>= fromJSVal) -- | evaluate_ :: (MonadDOM m, IsDocument self, ToJSString expression, IsNode contextNode) => self -> expression -> Maybe contextNode -> Maybe XPathNSResolver -> Word -> Maybe XPathResult -> m () evaluate_ self expression contextNode resolver type' inResult = liftDOM (void ((toDocument self) ^. jsf "evaluate" [toJSVal expression, toJSVal contextNode, toJSVal resolver, toJSVal type', toJSVal inResult])) -- | evaluateUnsafe :: (MonadDOM m, IsDocument self, ToJSString expression, IsNode contextNode, HasCallStack) => self -> expression -> Maybe contextNode -> Maybe XPathNSResolver -> Word -> Maybe XPathResult -> m XPathResult evaluateUnsafe self expression contextNode resolver type' inResult = liftDOM ((((toDocument self) ^. jsf "evaluate" [toJSVal expression, toJSVal contextNode, toJSVal resolver, toJSVal type', toJSVal inResult]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | evaluateUnchecked :: (MonadDOM m, IsDocument self, ToJSString expression, IsNode contextNode) => self -> expression -> Maybe contextNode -> Maybe XPathNSResolver -> Word -> Maybe XPathResult -> m XPathResult evaluateUnchecked self expression contextNode resolver type' inResult = liftDOM (((toDocument self) ^. jsf "evaluate" [toJSVal expression, toJSVal contextNode, toJSVal resolver, toJSVal type', toJSVal inResult]) >>= fromJSValUnchecked) -- | execCommand :: (MonadDOM m, IsDocument self, ToJSString command, ToJSString value) => self -> command -> Bool -> Maybe value -> m Bool execCommand self command userInterface value = liftDOM (((toDocument self) ^. jsf "execCommand" [toJSVal command, toJSVal userInterface, toJSVal value]) >>= valToBool) -- | execCommand_ :: (MonadDOM m, IsDocument self, ToJSString command, ToJSString value) => self -> command -> Bool -> Maybe value -> m () execCommand_ self command userInterface value = liftDOM (void ((toDocument self) ^. jsf "execCommand" [toJSVal command, toJSVal userInterface, toJSVal value])) -- | queryCommandEnabled :: (MonadDOM m, IsDocument self, ToJSString command) => self -> command -> m Bool queryCommandEnabled self command = liftDOM (((toDocument self) ^. jsf "queryCommandEnabled" [toJSVal command]) >>= valToBool) -- | queryCommandEnabled_ :: (MonadDOM m, IsDocument self, ToJSString command) => self -> command -> m () queryCommandEnabled_ self command = liftDOM (void ((toDocument self) ^. jsf "queryCommandEnabled" [toJSVal command])) -- | queryCommandIndeterm :: (MonadDOM m, IsDocument self, ToJSString command) => self -> command -> m Bool queryCommandIndeterm self command = liftDOM (((toDocument self) ^. jsf "queryCommandIndeterm" [toJSVal command]) >>= valToBool) -- | queryCommandIndeterm_ :: (MonadDOM m, IsDocument self, ToJSString command) => self -> command -> m () queryCommandIndeterm_ self command = liftDOM (void ((toDocument self) ^. jsf "queryCommandIndeterm" [toJSVal command])) -- | queryCommandState :: (MonadDOM m, IsDocument self, ToJSString command) => self -> command -> m Bool queryCommandState self command = liftDOM (((toDocument self) ^. jsf "queryCommandState" [toJSVal command]) >>= valToBool) -- | queryCommandState_ :: (MonadDOM m, IsDocument self, ToJSString command) => self -> command -> m () queryCommandState_ self command = liftDOM (void ((toDocument self) ^. jsf "queryCommandState" [toJSVal command])) -- | queryCommandSupported :: (MonadDOM m, IsDocument self, ToJSString command) => self -> command -> m Bool queryCommandSupported self command = liftDOM (((toDocument self) ^. jsf "queryCommandSupported" [toJSVal command]) >>= valToBool) -- | queryCommandSupported_ :: (MonadDOM m, IsDocument self, ToJSString command) => self -> command -> m () queryCommandSupported_ self command = liftDOM (void ((toDocument self) ^. jsf "queryCommandSupported" [toJSVal command])) -- | queryCommandValue :: (MonadDOM m, IsDocument self, ToJSString command, FromJSString result) => self -> command -> m result queryCommandValue self command = liftDOM (((toDocument self) ^. jsf "queryCommandValue" [toJSVal command]) >>= fromJSValUnchecked) -- | queryCommandValue_ :: (MonadDOM m, IsDocument self, ToJSString command) => self -> command -> m () queryCommandValue_ self command = liftDOM (void ((toDocument self) ^. jsf "queryCommandValue" [toJSVal command])) -- | getElementsByName :: (MonadDOM m, IsDocument self, ToJSString elementName) => self -> elementName -> m (Maybe NodeList) getElementsByName self elementName = liftDOM (((toDocument self) ^. jsf "getElementsByName" [toJSVal elementName]) >>= fromJSVal) -- | getElementsByName_ :: (MonadDOM m, IsDocument self, ToJSString elementName) => self -> elementName -> m () getElementsByName_ self elementName = liftDOM (void ((toDocument self) ^. jsf "getElementsByName" [toJSVal elementName])) -- | getElementsByNameUnsafe :: (MonadDOM m, IsDocument self, ToJSString elementName, HasCallStack) => self -> elementName -> m NodeList getElementsByNameUnsafe self elementName = liftDOM ((((toDocument self) ^. jsf "getElementsByName" [toJSVal elementName]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getElementsByNameUnchecked :: (MonadDOM m, IsDocument self, ToJSString elementName) => self -> elementName -> m NodeList getElementsByNameUnchecked self elementName = liftDOM (((toDocument self) ^. jsf "getElementsByName" [toJSVal elementName]) >>= fromJSValUnchecked) -- | elementFromPoint :: (MonadDOM m, IsDocument self) => self -> Int -> Int -> m (Maybe Element) elementFromPoint self x y = liftDOM (((toDocument self) ^. jsf "elementFromPoint" [toJSVal x, toJSVal y]) >>= fromJSVal) -- | elementFromPoint_ :: (MonadDOM m, IsDocument self) => self -> Int -> Int -> m () elementFromPoint_ self x y = liftDOM (void ((toDocument self) ^. jsf "elementFromPoint" [toJSVal x, toJSVal y])) -- | elementFromPointUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> Int -> Int -> m Element elementFromPointUnsafe self x y = liftDOM ((((toDocument self) ^. jsf "elementFromPoint" [toJSVal x, toJSVal y]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | elementFromPointUnchecked :: (MonadDOM m, IsDocument self) => self -> Int -> Int -> m Element elementFromPointUnchecked self x y = liftDOM (((toDocument self) ^. jsf "elementFromPoint" [toJSVal x, toJSVal y]) >>= fromJSValUnchecked) -- | caretRangeFromPoint :: (MonadDOM m, IsDocument self) => self -> Int -> Int -> m (Maybe Range) caretRangeFromPoint self x y = liftDOM (((toDocument self) ^. jsf "caretRangeFromPoint" [toJSVal x, toJSVal y]) >>= fromJSVal) -- | caretRangeFromPoint_ :: (MonadDOM m, IsDocument self) => self -> Int -> Int -> m () caretRangeFromPoint_ self x y = liftDOM (void ((toDocument self) ^. jsf "caretRangeFromPoint" [toJSVal x, toJSVal y])) -- | caretRangeFromPointUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> Int -> Int -> m Range caretRangeFromPointUnsafe self x y = liftDOM ((((toDocument self) ^. jsf "caretRangeFromPoint" [toJSVal x, toJSVal y]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | caretRangeFromPointUnchecked :: (MonadDOM m, IsDocument self) => self -> Int -> Int -> m Range caretRangeFromPointUnchecked self x y = liftDOM (((toDocument self) ^. jsf "caretRangeFromPoint" [toJSVal x, toJSVal y]) >>= fromJSValUnchecked) -- | getSelection :: (MonadDOM m, IsDocument self) => self -> m (Maybe Selection) getSelection self = liftDOM (((toDocument self) ^. jsf "getSelection" ()) >>= fromJSVal) -- | getSelection_ :: (MonadDOM m, IsDocument self) => self -> m () getSelection_ self = liftDOM (void ((toDocument self) ^. jsf "getSelection" ())) -- | getSelectionUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m Selection getSelectionUnsafe self = liftDOM ((((toDocument self) ^. jsf "getSelection" ()) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getSelectionUnchecked :: (MonadDOM m, IsDocument self) => self -> m Selection getSelectionUnchecked self = liftDOM (((toDocument self) ^. jsf "getSelection" ()) >>= fromJSValUnchecked) -- | getCSSCanvasContext :: (MonadDOM m, IsDocument self, ToJSString contextId, ToJSString name) => self -> contextId -> name -> Int -> Int -> m (Maybe CanvasRenderingContext) getCSSCanvasContext self contextId name width height = liftDOM (((toDocument self) ^. jsf "getCSSCanvasContext" [toJSVal contextId, toJSVal name, toJSVal width, toJSVal height]) >>= fromJSVal) -- | getCSSCanvasContext_ :: (MonadDOM m, IsDocument self, ToJSString contextId, ToJSString name) => self -> contextId -> name -> Int -> Int -> m () getCSSCanvasContext_ self contextId name width height = liftDOM (void ((toDocument self) ^. jsf "getCSSCanvasContext" [toJSVal contextId, toJSVal name, toJSVal width, toJSVal height])) -- | getCSSCanvasContextUnsafe :: (MonadDOM m, IsDocument self, ToJSString contextId, ToJSString name, HasCallStack) => self -> contextId -> name -> Int -> Int -> m CanvasRenderingContext getCSSCanvasContextUnsafe self contextId name width height = liftDOM ((((toDocument self) ^. jsf "getCSSCanvasContext" [toJSVal contextId, toJSVal name, toJSVal width, toJSVal height]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getCSSCanvasContextUnchecked :: (MonadDOM m, IsDocument self, ToJSString contextId, ToJSString name) => self -> contextId -> name -> Int -> Int -> m CanvasRenderingContext getCSSCanvasContextUnchecked self contextId name width height = liftDOM (((toDocument self) ^. jsf "getCSSCanvasContext" [toJSVal contextId, toJSVal name, toJSVal width, toJSVal height]) >>= fromJSValUnchecked) -- | getElementsByClassName :: (MonadDOM m, IsDocument self, ToJSString tagname) => self -> tagname -> m (Maybe NodeList) getElementsByClassName self tagname = liftDOM (((toDocument self) ^. jsf "getElementsByClassName" [toJSVal tagname]) >>= fromJSVal) -- | getElementsByClassName_ :: (MonadDOM m, IsDocument self, ToJSString tagname) => self -> tagname -> m () getElementsByClassName_ self tagname = liftDOM (void ((toDocument self) ^. jsf "getElementsByClassName" [toJSVal tagname])) -- | getElementsByClassNameUnsafe :: (MonadDOM m, IsDocument self, ToJSString tagname, HasCallStack) => self -> tagname -> m NodeList getElementsByClassNameUnsafe self tagname = liftDOM ((((toDocument self) ^. jsf "getElementsByClassName" [toJSVal tagname]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getElementsByClassNameUnchecked :: (MonadDOM m, IsDocument self, ToJSString tagname) => self -> tagname -> m NodeList getElementsByClassNameUnchecked self tagname = liftDOM (((toDocument self) ^. jsf "getElementsByClassName" [toJSVal tagname]) >>= fromJSValUnchecked) -- | hasFocus :: (MonadDOM m, IsDocument self) => self -> m Bool hasFocus self = liftDOM (((toDocument self) ^. jsf "hasFocus" ()) >>= valToBool) -- | hasFocus_ :: (MonadDOM m, IsDocument self) => self -> m () hasFocus_ self = liftDOM (void ((toDocument self) ^. jsf "hasFocus" ())) -- | querySelector :: (MonadDOM m, IsDocument self, ToJSString selectors) => self -> selectors -> m (Maybe Element) querySelector self selectors = liftDOM (((toDocument self) ^. jsf "querySelector" [toJSVal selectors]) >>= fromJSVal) -- | querySelector_ :: (MonadDOM m, IsDocument self, ToJSString selectors) => self -> selectors -> m () querySelector_ self selectors = liftDOM (void ((toDocument self) ^. jsf "querySelector" [toJSVal selectors])) -- | querySelectorUnsafe :: (MonadDOM m, IsDocument self, ToJSString selectors, HasCallStack) => self -> selectors -> m Element querySelectorUnsafe self selectors = liftDOM ((((toDocument self) ^. jsf "querySelector" [toJSVal selectors]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | querySelectorUnchecked :: (MonadDOM m, IsDocument self, ToJSString selectors) => self -> selectors -> m Element querySelectorUnchecked self selectors = liftDOM (((toDocument self) ^. jsf "querySelector" [toJSVal selectors]) >>= fromJSValUnchecked) -- | querySelectorAll :: (MonadDOM m, IsDocument self, ToJSString selectors) => self -> selectors -> m (Maybe NodeList) querySelectorAll self selectors = liftDOM (((toDocument self) ^. jsf "querySelectorAll" [toJSVal selectors]) >>= fromJSVal) -- | querySelectorAll_ :: (MonadDOM m, IsDocument self, ToJSString selectors) => self -> selectors -> m () querySelectorAll_ self selectors = liftDOM (void ((toDocument self) ^. jsf "querySelectorAll" [toJSVal selectors])) -- | querySelectorAllUnsafe :: (MonadDOM m, IsDocument self, ToJSString selectors, HasCallStack) => self -> selectors -> m NodeList querySelectorAllUnsafe self selectors = liftDOM ((((toDocument self) ^. jsf "querySelectorAll" [toJSVal selectors]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | querySelectorAllUnchecked :: (MonadDOM m, IsDocument self, ToJSString selectors) => self -> selectors -> m NodeList querySelectorAllUnchecked self selectors = liftDOM (((toDocument self) ^. jsf "querySelectorAll" [toJSVal selectors]) >>= fromJSValUnchecked) -- | webkitCancelFullScreen :: (MonadDOM m, IsDocument self) => self -> m () webkitCancelFullScreen self = liftDOM (void ((toDocument self) ^. jsf "webkitCancelFullScreen" ())) -- | webkitExitFullscreen :: (MonadDOM m, IsDocument self) => self -> m () webkitExitFullscreen self = liftDOM (void ((toDocument self) ^. jsf "webkitExitFullscreen" ())) -- | exitPointerLock :: (MonadDOM m, IsDocument self) => self -> m () exitPointerLock self = liftDOM (void ((toDocument self) ^. jsf "exitPointerLock" ())) -- | webkitGetNamedFlows :: (MonadDOM m, IsDocument self) => self -> m (Maybe DOMNamedFlowCollection) webkitGetNamedFlows self = liftDOM (((toDocument self) ^. jsf "webkitGetNamedFlows" ()) >>= fromJSVal) -- | webkitGetNamedFlows_ :: (MonadDOM m, IsDocument self) => self -> m () webkitGetNamedFlows_ self = liftDOM (void ((toDocument self) ^. jsf "webkitGetNamedFlows" ())) -- | webkitGetNamedFlowsUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m DOMNamedFlowCollection webkitGetNamedFlowsUnsafe self = liftDOM ((((toDocument self) ^. jsf "webkitGetNamedFlows" ()) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | webkitGetNamedFlowsUnchecked :: (MonadDOM m, IsDocument self) => self -> m DOMNamedFlowCollection webkitGetNamedFlowsUnchecked self = liftDOM (((toDocument self) ^. jsf "webkitGetNamedFlows" ()) >>= fromJSValUnchecked) -- | createTouch :: (MonadDOM m, IsDocument self, IsEventTarget target) => self -> Maybe Window -> Maybe target -> Int -> Int -> Int -> Int -> Int -> Int -> Int -> Float -> Float -> m (Maybe Touch) createTouch self window target identifier pageX pageY screenX screenY webkitRadiusX webkitRadiusY webkitRotationAngle webkitForce = liftDOM (((toDocument self) ^. jsf "createTouch" [toJSVal window, toJSVal target, toJSVal identifier, toJSVal pageX, toJSVal pageY, toJSVal screenX, toJSVal screenY, toJSVal webkitRadiusX, toJSVal webkitRadiusY, toJSVal webkitRotationAngle, toJSVal webkitForce]) >>= fromJSVal) -- | createTouch_ :: (MonadDOM m, IsDocument self, IsEventTarget target) => self -> Maybe Window -> Maybe target -> Int -> Int -> Int -> Int -> Int -> Int -> Int -> Float -> Float -> m () createTouch_ self window target identifier pageX pageY screenX screenY webkitRadiusX webkitRadiusY webkitRotationAngle webkitForce = liftDOM (void ((toDocument self) ^. jsf "createTouch" [toJSVal window, toJSVal target, toJSVal identifier, toJSVal pageX, toJSVal pageY, toJSVal screenX, toJSVal screenY, toJSVal webkitRadiusX, toJSVal webkitRadiusY, toJSVal webkitRotationAngle, toJSVal webkitForce])) -- | createTouchUnsafe :: (MonadDOM m, IsDocument self, IsEventTarget target, HasCallStack) => self -> Maybe Window -> Maybe target -> Int -> Int -> Int -> Int -> Int -> Int -> Int -> Float -> Float -> m Touch createTouchUnsafe self window target identifier pageX pageY screenX screenY webkitRadiusX webkitRadiusY webkitRotationAngle webkitForce = liftDOM ((((toDocument self) ^. jsf "createTouch" [toJSVal window, toJSVal target, toJSVal identifier, toJSVal pageX, toJSVal pageY, toJSVal screenX, toJSVal screenY, toJSVal webkitRadiusX, toJSVal webkitRadiusY, toJSVal webkitRotationAngle, toJSVal webkitForce]) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | createTouchUnchecked :: (MonadDOM m, IsDocument self, IsEventTarget target) => self -> Maybe Window -> Maybe target -> Int -> Int -> Int -> Int -> Int -> Int -> Int -> Float -> Float -> m Touch createTouchUnchecked self window target identifier pageX pageY screenX screenY webkitRadiusX webkitRadiusY webkitRotationAngle webkitForce = liftDOM (((toDocument self) ^. jsf "createTouch" [toJSVal window, toJSVal target, toJSVal identifier, toJSVal pageX, toJSVal pageY, toJSVal screenX, toJSVal screenY, toJSVal webkitRadiusX, toJSVal webkitRadiusY, toJSVal webkitRotationAngle, toJSVal webkitForce]) >>= fromJSValUnchecked) -- | createTouchList :: (MonadDOM m, IsDocument self) => self -> m (Maybe TouchList) createTouchList self = liftDOM (((toDocument self) ^. jsf "createTouchList" ()) >>= fromJSVal) -- | createTouchList_ :: (MonadDOM m, IsDocument self) => self -> m () createTouchList_ self = liftDOM (void ((toDocument self) ^. jsf "createTouchList" ())) -- | createTouchListUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m TouchList createTouchListUnsafe self = liftDOM ((((toDocument self) ^. jsf "createTouchList" ()) >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | createTouchListUnchecked :: (MonadDOM m, IsDocument self) => self -> m TouchList createTouchListUnchecked self = liftDOM (((toDocument self) ^. jsf "createTouchList" ()) >>= fromJSValUnchecked) -- | getDoctype :: (MonadDOM m, IsDocument self) => self -> m (Maybe DocumentType) getDoctype self = liftDOM (((toDocument self) ^. js "doctype") >>= fromJSVal) -- | getDoctypeUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m DocumentType getDoctypeUnsafe self = liftDOM ((((toDocument self) ^. js "doctype") >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getDoctypeUnchecked :: (MonadDOM m, IsDocument self) => self -> m DocumentType getDoctypeUnchecked self = liftDOM (((toDocument self) ^. js "doctype") >>= fromJSValUnchecked) -- | getImplementation :: (MonadDOM m, IsDocument self) => self -> m (Maybe DOMImplementation) getImplementation self = liftDOM (((toDocument self) ^. js "implementation") >>= fromJSVal) -- | getImplementationUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m DOMImplementation getImplementationUnsafe self = liftDOM ((((toDocument self) ^. js "implementation") >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getImplementationUnchecked :: (MonadDOM m, IsDocument self) => self -> m DOMImplementation getImplementationUnchecked self = liftDOM (((toDocument self) ^. js "implementation") >>= fromJSValUnchecked) -- | getDocumentElement :: (MonadDOM m, IsDocument self) => self -> m (Maybe Element) getDocumentElement self = liftDOM (((toDocument self) ^. js "documentElement") >>= fromJSVal) -- | getDocumentElementUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m Element getDocumentElementUnsafe self = liftDOM ((((toDocument self) ^. js "documentElement") >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getDocumentElementUnchecked :: (MonadDOM m, IsDocument self) => self -> m Element getDocumentElementUnchecked self = liftDOM (((toDocument self) ^. js "documentElement") >>= fromJSValUnchecked) -- | getInputEncoding :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m (Maybe result) getInputEncoding self = liftDOM (((toDocument self) ^. js "inputEncoding") >>= fromMaybeJSString) -- | getInputEncodingUnsafe :: (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) => self -> m result getInputEncodingUnsafe self = liftDOM ((((toDocument self) ^. js "inputEncoding") >>= fromMaybeJSString) >>= maybe (Prelude.error "Nothing to return") return) -- | getInputEncodingUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result getInputEncodingUnchecked self = liftDOM (((toDocument self) ^. js "inputEncoding") >>= fromJSValUnchecked) -- | getXmlEncoding :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m (Maybe result) getXmlEncoding self = liftDOM (((toDocument self) ^. js "xmlEncoding") >>= fromMaybeJSString) -- | getXmlEncodingUnsafe :: (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) => self -> m result getXmlEncodingUnsafe self = liftDOM ((((toDocument self) ^. js "xmlEncoding") >>= fromMaybeJSString) >>= maybe (Prelude.error "Nothing to return") return) -- | getXmlEncodingUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result getXmlEncodingUnchecked self = liftDOM (((toDocument self) ^. js "xmlEncoding") >>= fromJSValUnchecked) -- | setXmlVersion :: (MonadDOM m, IsDocument self, ToJSString val) => self -> Maybe val -> m () setXmlVersion self val = liftDOM ((toDocument self) ^. jss "xmlVersion" (toJSVal val)) -- | getXmlVersion :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m (Maybe result) getXmlVersion self = liftDOM (((toDocument self) ^. js "xmlVersion") >>= fromMaybeJSString) -- | getXmlVersionUnsafe :: (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) => self -> m result getXmlVersionUnsafe self = liftDOM ((((toDocument self) ^. js "xmlVersion") >>= fromMaybeJSString) >>= maybe (Prelude.error "Nothing to return") return) -- | getXmlVersionUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result getXmlVersionUnchecked self = liftDOM (((toDocument self) ^. js "xmlVersion") >>= fromJSValUnchecked) -- | setXmlStandalone :: (MonadDOM m, IsDocument self) => self -> Bool -> m () setXmlStandalone self val = liftDOM ((toDocument self) ^. jss "xmlStandalone" (toJSVal val)) -- | getXmlStandalone :: (MonadDOM m, IsDocument self) => self -> m Bool getXmlStandalone self = liftDOM (((toDocument self) ^. js "xmlStandalone") >>= valToBool) -- | getDocumentURI :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m (Maybe result) getDocumentURI self = liftDOM (((toDocument self) ^. js "documentURI") >>= fromMaybeJSString) -- | getDocumentURIUnsafe :: (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) => self -> m result getDocumentURIUnsafe self = liftDOM ((((toDocument self) ^. js "documentURI") >>= fromMaybeJSString) >>= maybe (Prelude.error "Nothing to return") return) -- | getDocumentURIUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result getDocumentURIUnchecked self = liftDOM (((toDocument self) ^. js "documentURI") >>= fromJSValUnchecked) -- | getDefaultView :: (MonadDOM m, IsDocument self) => self -> m (Maybe Window) getDefaultView self = liftDOM (((toDocument self) ^. js "defaultView") >>= fromJSVal) -- | getDefaultViewUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m Window getDefaultViewUnsafe self = liftDOM ((((toDocument self) ^. js "defaultView") >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getDefaultViewUnchecked :: (MonadDOM m, IsDocument self) => self -> m Window getDefaultViewUnchecked self = liftDOM (((toDocument self) ^. js "defaultView") >>= fromJSValUnchecked) -- | getStyleSheets :: (MonadDOM m, IsDocument self) => self -> m (Maybe StyleSheetList) getStyleSheets self = liftDOM (((toDocument self) ^. js "styleSheets") >>= fromJSVal) -- | getStyleSheetsUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m StyleSheetList getStyleSheetsUnsafe self = liftDOM ((((toDocument self) ^. js "styleSheets") >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getStyleSheetsUnchecked :: (MonadDOM m, IsDocument self) => self -> m StyleSheetList getStyleSheetsUnchecked self = liftDOM (((toDocument self) ^. js "styleSheets") >>= fromJSValUnchecked) -- | getContentType :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result getContentType self = liftDOM (((toDocument self) ^. js "contentType") >>= fromJSValUnchecked) -- | setTitle :: (MonadDOM m, IsDocument self, ToJSString val) => self -> Maybe val -> m () setTitle self val = liftDOM ((toDocument self) ^. jss "title" (toJSVal val)) -- | getTitle :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m (Maybe result) getTitle self = liftDOM (((toDocument self) ^. js "title") >>= fromMaybeJSString) -- | getTitleUnsafe :: (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) => self -> m result getTitleUnsafe self = liftDOM ((((toDocument self) ^. js "title") >>= fromMaybeJSString) >>= maybe (Prelude.error "Nothing to return") return) -- | getTitleUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result getTitleUnchecked self = liftDOM (((toDocument self) ^. js "title") >>= fromJSValUnchecked) -- | getReferrer :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result getReferrer self = liftDOM (((toDocument self) ^. js "referrer") >>= fromJSValUnchecked) -- | setDomain :: (MonadDOM m, IsDocument self, ToJSString val) => self -> Maybe val -> m () setDomain self val = liftDOM ((toDocument self) ^. jss "domain" (toJSVal val)) -- | getDomain :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m (Maybe result) getDomain self = liftDOM (((toDocument self) ^. js "domain") >>= fromMaybeJSString) -- | getDomainUnsafe :: (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) => self -> m result getDomainUnsafe self = liftDOM ((((toDocument self) ^. js "domain") >>= fromMaybeJSString) >>= maybe (Prelude.error "Nothing to return") return) -- | getDomainUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result getDomainUnchecked self = liftDOM (((toDocument self) ^. js "domain") >>= fromJSValUnchecked) -- | getURL :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result getURL self = liftDOM (((toDocument self) ^. js "URL") >>= fromJSValUnchecked) -- | setCookie :: (MonadDOM m, IsDocument self, ToJSString val) => self -> Maybe val -> m () setCookie self val = liftDOM ((toDocument self) ^. jss "cookie" (toJSVal val)) -- | getCookie :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m (Maybe result) getCookie self = liftDOM (((toDocument self) ^. js "cookie") >>= fromMaybeJSString) -- | getCookieUnsafe :: (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) => self -> m result getCookieUnsafe self = liftDOM ((((toDocument self) ^. js "cookie") >>= fromMaybeJSString) >>= maybe (Prelude.error "Nothing to return") return) -- | getCookieUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result getCookieUnchecked self = liftDOM (((toDocument self) ^. js "cookie") >>= fromJSValUnchecked) -- | setBody :: (MonadDOM m, IsDocument self, IsHTMLElement val) => self -> Maybe val -> m () setBody self val = liftDOM ((toDocument self) ^. jss "body" (toJSVal val)) -- | getBody :: (MonadDOM m, IsDocument self) => self -> m (Maybe HTMLElement) getBody self = liftDOM (((toDocument self) ^. js "body") >>= fromJSVal) -- | getBodyUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m HTMLElement getBodyUnsafe self = liftDOM ((((toDocument self) ^. js "body") >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getBodyUnchecked :: (MonadDOM m, IsDocument self) => self -> m HTMLElement getBodyUnchecked self = liftDOM (((toDocument self) ^. js "body") >>= fromJSValUnchecked) -- | getHead :: (MonadDOM m, IsDocument self) => self -> m (Maybe HTMLHeadElement) getHead self = liftDOM (((toDocument self) ^. js "head") >>= fromJSVal) -- | getHeadUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m HTMLHeadElement getHeadUnsafe self = liftDOM ((((toDocument self) ^. js "head") >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getHeadUnchecked :: (MonadDOM m, IsDocument self) => self -> m HTMLHeadElement getHeadUnchecked self = liftDOM (((toDocument self) ^. js "head") >>= fromJSValUnchecked) -- | getImages :: (MonadDOM m, IsDocument self) => self -> m (Maybe HTMLCollection) getImages self = liftDOM (((toDocument self) ^. js "images") >>= fromJSVal) -- | getImagesUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m HTMLCollection getImagesUnsafe self = liftDOM ((((toDocument self) ^. js "images") >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getImagesUnchecked :: (MonadDOM m, IsDocument self) => self -> m HTMLCollection getImagesUnchecked self = liftDOM (((toDocument self) ^. js "images") >>= fromJSValUnchecked) -- | getApplets :: (MonadDOM m, IsDocument self) => self -> m (Maybe HTMLCollection) getApplets self = liftDOM (((toDocument self) ^. js "applets") >>= fromJSVal) -- | getAppletsUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m HTMLCollection getAppletsUnsafe self = liftDOM ((((toDocument self) ^. js "applets") >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getAppletsUnchecked :: (MonadDOM m, IsDocument self) => self -> m HTMLCollection getAppletsUnchecked self = liftDOM (((toDocument self) ^. js "applets") >>= fromJSValUnchecked) -- | getLinks :: (MonadDOM m, IsDocument self) => self -> m (Maybe HTMLCollection) getLinks self = liftDOM (((toDocument self) ^. js "links") >>= fromJSVal) -- | getLinksUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m HTMLCollection getLinksUnsafe self = liftDOM ((((toDocument self) ^. js "links") >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getLinksUnchecked :: (MonadDOM m, IsDocument self) => self -> m HTMLCollection getLinksUnchecked self = liftDOM (((toDocument self) ^. js "links") >>= fromJSValUnchecked) -- | getForms :: (MonadDOM m, IsDocument self) => self -> m (Maybe HTMLCollection) getForms self = liftDOM (((toDocument self) ^. js "forms") >>= fromJSVal) -- | getFormsUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m HTMLCollection getFormsUnsafe self = liftDOM ((((toDocument self) ^. js "forms") >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getFormsUnchecked :: (MonadDOM m, IsDocument self) => self -> m HTMLCollection getFormsUnchecked self = liftDOM (((toDocument self) ^. js "forms") >>= fromJSValUnchecked) -- | getAnchors :: (MonadDOM m, IsDocument self) => self -> m (Maybe HTMLCollection) getAnchors self = liftDOM (((toDocument self) ^. js "anchors") >>= fromJSVal) -- | getAnchorsUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m HTMLCollection getAnchorsUnsafe self = liftDOM ((((toDocument self) ^. js "anchors") >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getAnchorsUnchecked :: (MonadDOM m, IsDocument self) => self -> m HTMLCollection getAnchorsUnchecked self = liftDOM (((toDocument self) ^. js "anchors") >>= fromJSValUnchecked) -- | getLastModified :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result getLastModified self = liftDOM (((toDocument self) ^. js "lastModified") >>= fromJSValUnchecked) -- | setLocation :: (MonadDOM m, IsDocument self) => self -> Maybe Location -> m () setLocation self val = liftDOM ((toDocument self) ^. jss "location" (toJSVal val)) -- | getLocation :: (MonadDOM m, IsDocument self) => self -> m (Maybe Location) getLocation self = liftDOM (((toDocument self) ^. js "location") >>= fromJSVal) -- | getLocationUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m Location getLocationUnsafe self = liftDOM ((((toDocument self) ^. js "location") >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getLocationUnchecked :: (MonadDOM m, IsDocument self) => self -> m Location getLocationUnchecked self = liftDOM (((toDocument self) ^. js "location") >>= fromJSValUnchecked) -- | setCharset :: (MonadDOM m, IsDocument self, ToJSString val) => self -> Maybe val -> m () setCharset self val = liftDOM ((toDocument self) ^. jss "charset" (toJSVal val)) -- | getCharset :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m (Maybe result) getCharset self = liftDOM (((toDocument self) ^. js "charset") >>= fromMaybeJSString) -- | getCharsetUnsafe :: (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) => self -> m result getCharsetUnsafe self = liftDOM ((((toDocument self) ^. js "charset") >>= fromMaybeJSString) >>= maybe (Prelude.error "Nothing to return") return) -- | getCharsetUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result getCharsetUnchecked self = liftDOM (((toDocument self) ^. js "charset") >>= fromJSValUnchecked) -- | getDefaultCharset :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m (Maybe result) getDefaultCharset self = liftDOM (((toDocument self) ^. js "defaultCharset") >>= fromMaybeJSString) -- | getDefaultCharsetUnsafe :: (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) => self -> m result getDefaultCharsetUnsafe self = liftDOM ((((toDocument self) ^. js "defaultCharset") >>= fromMaybeJSString) >>= maybe (Prelude.error "Nothing to return") return) -- | getDefaultCharsetUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result getDefaultCharsetUnchecked self = liftDOM (((toDocument self) ^. js "defaultCharset") >>= fromJSValUnchecked) -- | getReadyState :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m (Maybe result) getReadyState self = liftDOM (((toDocument self) ^. js "readyState") >>= fromMaybeJSString) -- | getReadyStateUnsafe :: (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) => self -> m result getReadyStateUnsafe self = liftDOM ((((toDocument self) ^. js "readyState") >>= fromMaybeJSString) >>= maybe (Prelude.error "Nothing to return") return) -- | getReadyStateUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result getReadyStateUnchecked self = liftDOM (((toDocument self) ^. js "readyState") >>= fromJSValUnchecked) -- | getCharacterSet :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m (Maybe result) getCharacterSet self = liftDOM (((toDocument self) ^. js "characterSet") >>= fromMaybeJSString) -- | getCharacterSetUnsafe :: (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) => self -> m result getCharacterSetUnsafe self = liftDOM ((((toDocument self) ^. js "characterSet") >>= fromMaybeJSString) >>= maybe (Prelude.error "Nothing to return") return) -- | getCharacterSetUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result getCharacterSetUnchecked self = liftDOM (((toDocument self) ^. js "characterSet") >>= fromJSValUnchecked) -- | getPreferredStylesheetSet :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m (Maybe result) getPreferredStylesheetSet self = liftDOM (((toDocument self) ^. js "preferredStylesheetSet") >>= fromMaybeJSString) -- | getPreferredStylesheetSetUnsafe :: (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) => self -> m result getPreferredStylesheetSetUnsafe self = liftDOM ((((toDocument self) ^. js "preferredStylesheetSet") >>= fromMaybeJSString) >>= maybe (Prelude.error "Nothing to return") return) -- | getPreferredStylesheetSetUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result getPreferredStylesheetSetUnchecked self = liftDOM (((toDocument self) ^. js "preferredStylesheetSet") >>= fromJSValUnchecked) -- | setSelectedStylesheetSet :: (MonadDOM m, IsDocument self, ToJSString val) => self -> Maybe val -> m () setSelectedStylesheetSet self val = liftDOM ((toDocument self) ^. jss "selectedStylesheetSet" (toJSVal val)) -- | getSelectedStylesheetSet :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m (Maybe result) getSelectedStylesheetSet self = liftDOM (((toDocument self) ^. js "selectedStylesheetSet") >>= fromMaybeJSString) -- | getSelectedStylesheetSetUnsafe :: (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) => self -> m result getSelectedStylesheetSetUnsafe self = liftDOM ((((toDocument self) ^. js "selectedStylesheetSet") >>= fromMaybeJSString) >>= maybe (Prelude.error "Nothing to return") return) -- | getSelectedStylesheetSetUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result getSelectedStylesheetSetUnchecked self = liftDOM (((toDocument self) ^. js "selectedStylesheetSet") >>= fromJSValUnchecked) -- | getActiveElement :: (MonadDOM m, IsDocument self) => self -> m (Maybe Element) getActiveElement self = liftDOM (((toDocument self) ^. js "activeElement") >>= fromJSVal) -- | getActiveElementUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m Element getActiveElementUnsafe self = liftDOM ((((toDocument self) ^. js "activeElement") >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getActiveElementUnchecked :: (MonadDOM m, IsDocument self) => self -> m Element getActiveElementUnchecked self = liftDOM (((toDocument self) ^. js "activeElement") >>= fromJSValUnchecked) -- | getCompatMode :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result getCompatMode self = liftDOM (((toDocument self) ^. js "compatMode") >>= fromJSValUnchecked) -- | getWebkitIsFullScreen :: (MonadDOM m, IsDocument self) => self -> m Bool getWebkitIsFullScreen self = liftDOM (((toDocument self) ^. js "webkitIsFullScreen") >>= valToBool) -- | getWebkitFullScreenKeyboardInputAllowed :: (MonadDOM m, IsDocument self) => self -> m Bool getWebkitFullScreenKeyboardInputAllowed self = liftDOM (((toDocument self) ^. js "webkitFullScreenKeyboardInputAllowed") >>= valToBool) -- | getWebkitCurrentFullScreenElement :: (MonadDOM m, IsDocument self) => self -> m (Maybe Element) getWebkitCurrentFullScreenElement self = liftDOM (((toDocument self) ^. js "webkitCurrentFullScreenElement") >>= fromJSVal) -- | getWebkitCurrentFullScreenElementUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m Element getWebkitCurrentFullScreenElementUnsafe self = liftDOM ((((toDocument self) ^. js "webkitCurrentFullScreenElement") >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getWebkitCurrentFullScreenElementUnchecked :: (MonadDOM m, IsDocument self) => self -> m Element getWebkitCurrentFullScreenElementUnchecked self = liftDOM (((toDocument self) ^. js "webkitCurrentFullScreenElement") >>= fromJSValUnchecked) -- | getWebkitFullscreenEnabled :: (MonadDOM m, IsDocument self) => self -> m Bool getWebkitFullscreenEnabled self = liftDOM (((toDocument self) ^. js "webkitFullscreenEnabled") >>= valToBool) -- | getWebkitFullscreenElement :: (MonadDOM m, IsDocument self) => self -> m (Maybe Element) getWebkitFullscreenElement self = liftDOM (((toDocument self) ^. js "webkitFullscreenElement") >>= fromJSVal) -- | getWebkitFullscreenElementUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m Element getWebkitFullscreenElementUnsafe self = liftDOM ((((toDocument self) ^. js "webkitFullscreenElement") >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getWebkitFullscreenElementUnchecked :: (MonadDOM m, IsDocument self) => self -> m Element getWebkitFullscreenElementUnchecked self = liftDOM (((toDocument self) ^. js "webkitFullscreenElement") >>= fromJSValUnchecked) -- | getPointerLockElement :: (MonadDOM m, IsDocument self) => self -> m (Maybe Element) getPointerLockElement self = liftDOM (((toDocument self) ^. js "pointerLockElement") >>= fromJSVal) -- | getPointerLockElementUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m Element getPointerLockElementUnsafe self = liftDOM ((((toDocument self) ^. js "pointerLockElement") >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getPointerLockElementUnchecked :: (MonadDOM m, IsDocument self) => self -> m Element getPointerLockElementUnchecked self = liftDOM (((toDocument self) ^. js "pointerLockElement") >>= fromJSValUnchecked) -- | getFonts :: (MonadDOM m, IsDocument self) => self -> m (Maybe FontLoader) getFonts self = liftDOM (((toDocument self) ^. js "fonts") >>= fromJSVal) -- | getFontsUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m FontLoader getFontsUnsafe self = liftDOM ((((toDocument self) ^. js "fonts") >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getFontsUnchecked :: (MonadDOM m, IsDocument self) => self -> m FontLoader getFontsUnchecked self = liftDOM (((toDocument self) ^. js "fonts") >>= fromJSValUnchecked) -- | abort :: (IsDocument self, IsEventTarget self) => EventName self UIEvent abort = unsafeEventName (toJSString "abort") -- | blur :: (IsDocument self, IsEventTarget self) => EventName self FocusEvent blur = unsafeEventName (toJSString "blur") -- | change :: (IsDocument self, IsEventTarget self) => EventName self Event change = unsafeEventName (toJSString "change") -- | click :: (IsDocument self, IsEventTarget self) => EventName self MouseEvent click = unsafeEventName (toJSString "click") -- | contextMenu :: (IsDocument self, IsEventTarget self) => EventName self MouseEvent contextMenu = unsafeEventName (toJSString "contextmenu") -- | dblClick :: (IsDocument self, IsEventTarget self) => EventName self MouseEvent dblClick = unsafeEventName (toJSString "dblclick") -- | drag :: (IsDocument self, IsEventTarget self) => EventName self MouseEvent drag = unsafeEventName (toJSString "drag") -- | dragEnd :: (IsDocument self, IsEventTarget self) => EventName self MouseEvent dragEnd = unsafeEventName (toJSString "dragend") -- | dragEnter :: (IsDocument self, IsEventTarget self) => EventName self MouseEvent dragEnter = unsafeEventName (toJSString "dragenter") -- | dragLeave :: (IsDocument self, IsEventTarget self) => EventName self MouseEvent dragLeave = unsafeEventName (toJSString "dragleave") -- | dragOver :: (IsDocument self, IsEventTarget self) => EventName self MouseEvent dragOver = unsafeEventName (toJSString "dragover") -- | dragStart :: (IsDocument self, IsEventTarget self) => EventName self MouseEvent dragStart = unsafeEventName (toJSString "dragstart") -- | drop :: (IsDocument self, IsEventTarget self) => EventName self MouseEvent drop = unsafeEventName (toJSString "drop") -- | error :: (IsDocument self, IsEventTarget self) => EventName self UIEvent error = unsafeEventName (toJSString "error") -- | focus :: (IsDocument self, IsEventTarget self) => EventName self FocusEvent focus = unsafeEventName (toJSString "focus") -- | input :: (IsDocument self, IsEventTarget self) => EventName self Event input = unsafeEventName (toJSString "input") -- | invalid :: (IsDocument self, IsEventTarget self) => EventName self Event invalid = unsafeEventName (toJSString "invalid") -- | keyDown :: (IsDocument self, IsEventTarget self) => EventName self KeyboardEvent keyDown = unsafeEventName (toJSString "keydown") -- | keyPress :: (IsDocument self, IsEventTarget self) => EventName self KeyboardEvent keyPress = unsafeEventName (toJSString "keypress") -- | keyUp :: (IsDocument self, IsEventTarget self) => EventName self KeyboardEvent keyUp = unsafeEventName (toJSString "keyup") -- | load :: (IsDocument self, IsEventTarget self) => EventName self UIEvent load = unsafeEventName (toJSString "load") -- | mouseDown :: (IsDocument self, IsEventTarget self) => EventName self MouseEvent mouseDown = unsafeEventName (toJSString "mousedown") -- | mouseEnter :: (IsDocument self, IsEventTarget self) => EventName self MouseEvent mouseEnter = unsafeEventName (toJSString "mouseenter") -- | mouseLeave :: (IsDocument self, IsEventTarget self) => EventName self MouseEvent mouseLeave = unsafeEventName (toJSString "mouseleave") -- | mouseMove :: (IsDocument self, IsEventTarget self) => EventName self MouseEvent mouseMove = unsafeEventName (toJSString "mousemove") -- | mouseOut :: (IsDocument self, IsEventTarget self) => EventName self MouseEvent mouseOut = unsafeEventName (toJSString "mouseout") -- | mouseOver :: (IsDocument self, IsEventTarget self) => EventName self MouseEvent mouseOver = unsafeEventName (toJSString "mouseover") -- | mouseUp :: (IsDocument self, IsEventTarget self) => EventName self MouseEvent mouseUp = unsafeEventName (toJSString "mouseup") -- | mouseWheel :: (IsDocument self, IsEventTarget self) => EventName self MouseEvent mouseWheel = unsafeEventName (toJSString "mousewheel") -- | readyStateChange :: (IsDocument self, IsEventTarget self) => EventName self Event readyStateChange = unsafeEventName (toJSString "readystatechange") -- | scroll :: (IsDocument self, IsEventTarget self) => EventName self UIEvent scroll = unsafeEventName (toJSString "scroll") -- | select :: (IsDocument self, IsEventTarget self) => EventName self UIEvent select = unsafeEventName (toJSString "select") -- | submit :: (IsDocument self, IsEventTarget self) => EventName self Event submit = unsafeEventName (toJSString "submit") -- | wheel :: (IsDocument self, IsEventTarget self) => EventName self WheelEvent wheel = unsafeEventName (toJSString "wheel") -- | beforeCut :: (IsDocument self, IsEventTarget self) => EventName self Event beforeCut = unsafeEventName (toJSString "beforecut") -- | cut :: (IsDocument self, IsEventTarget self) => EventName self Event cut = unsafeEventName (toJSString "cut") -- | beforeCopy :: (IsDocument self, IsEventTarget self) => EventName self Event beforeCopy = unsafeEventName (toJSString "beforecopy") -- | copy :: (IsDocument self, IsEventTarget self) => EventName self Event copy = unsafeEventName (toJSString "copy") -- | beforePaste :: (IsDocument self, IsEventTarget self) => EventName self Event beforePaste = unsafeEventName (toJSString "beforepaste") -- | paste :: (IsDocument self, IsEventTarget self) => EventName self Event paste = unsafeEventName (toJSString "paste") -- | reset :: (IsDocument self, IsEventTarget self) => EventName self Event reset = unsafeEventName (toJSString "reset") -- | search :: (IsDocument self, IsEventTarget self) => EventName self Event search = unsafeEventName (toJSString "search") -- | selectStart :: (IsDocument self, IsEventTarget self) => EventName self Event selectStart = unsafeEventName (toJSString "selectstart") -- | selectionchange :: (IsDocument self, IsEventTarget self) => EventName self onselectionchange selectionchange = unsafeEventName (toJSString "selectionchange") -- | touchStart :: (IsDocument self, IsEventTarget self) => EventName self TouchEvent touchStart = unsafeEventName (toJSString "touchstart") -- | touchMove :: (IsDocument self, IsEventTarget self) => EventName self TouchEvent touchMove = unsafeEventName (toJSString "touchmove") -- | touchEnd :: (IsDocument self, IsEventTarget self) => EventName self TouchEvent touchEnd = unsafeEventName (toJSString "touchend") -- | touchCancel :: (IsDocument self, IsEventTarget self) => EventName self TouchEvent touchCancel = unsafeEventName (toJSString "touchcancel") -- | webKitFullscreenChange :: (IsDocument self, IsEventTarget self) => EventName self Event webKitFullscreenChange = unsafeEventName (toJSString "webkitfullscreenchange") -- | webKitFullscreenError :: (IsDocument self, IsEventTarget self) => EventName self Event webKitFullscreenError = unsafeEventName (toJSString "webkitfullscreenerror") -- | pointerlockchange :: (IsDocument self, IsEventTarget self) => EventName self Event pointerlockchange = unsafeEventName (toJSString "pointerlockchange") -- | pointerlockerror :: (IsDocument self, IsEventTarget self) => EventName self Event pointerlockerror = unsafeEventName (toJSString "pointerlockerror") -- | securitypolicyviolation :: (IsDocument self, IsEventTarget self) => EventName self onsecuritypolicyviolation securitypolicyviolation = unsafeEventName (toJSString "securitypolicyviolation") -- | webKitWillRevealBottom :: (IsDocument self, IsEventTarget self) => EventName self Event webKitWillRevealBottom = unsafeEventName (toJSString "webkitwillrevealbottom") -- | webKitWillRevealLeft :: (IsDocument self, IsEventTarget self) => EventName self Event webKitWillRevealLeft = unsafeEventName (toJSString "webkitwillrevealleft") -- | webKitWillRevealRight :: (IsDocument self, IsEventTarget self) => EventName self Event webKitWillRevealRight = unsafeEventName (toJSString "webkitwillrevealright") -- | webKitWillRevealTop :: (IsDocument self, IsEventTarget self) => EventName self Event webKitWillRevealTop = unsafeEventName (toJSString "webkitwillrevealtop") -- | getVisibilityState :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result getVisibilityState self = liftDOM (((toDocument self) ^. js "visibilityState") >>= fromJSValUnchecked) -- | getHidden :: (MonadDOM m, IsDocument self) => self -> m Bool getHidden self = liftDOM (((toDocument self) ^. js "hidden") >>= valToBool) -- | getSecurityPolicy :: (MonadDOM m, IsDocument self) => self -> m (Maybe SecurityPolicy) getSecurityPolicy self = liftDOM (((toDocument self) ^. js "securityPolicy") >>= fromJSVal) -- | getSecurityPolicyUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m SecurityPolicy getSecurityPolicyUnsafe self = liftDOM ((((toDocument self) ^. js "securityPolicy") >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getSecurityPolicyUnchecked :: (MonadDOM m, IsDocument self) => self -> m SecurityPolicy getSecurityPolicyUnchecked self = liftDOM (((toDocument self) ^. js "securityPolicy") >>= fromJSValUnchecked) -- | getCurrentScript :: (MonadDOM m, IsDocument self) => self -> m (Maybe HTMLScriptElement) getCurrentScript self = liftDOM (((toDocument self) ^. js "currentScript") >>= fromJSVal) -- | getCurrentScriptUnsafe :: (MonadDOM m, IsDocument self, HasCallStack) => self -> m HTMLScriptElement getCurrentScriptUnsafe self = liftDOM ((((toDocument self) ^. js "currentScript") >>= fromJSVal) >>= maybe (Prelude.error "Nothing to return") return) -- | getCurrentScriptUnchecked :: (MonadDOM m, IsDocument self) => self -> m HTMLScriptElement getCurrentScriptUnchecked self = liftDOM (((toDocument self) ^. js "currentScript") >>= fromJSValUnchecked) -- | getOrigin :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result getOrigin self = liftDOM (((toDocument self) ^. js "origin") >>= fromJSValUnchecked)