src code

constructor new Spah.DOM.Document

new Spah.DOM.Document(jQ, jQDocument, docType, modifiers)
  • jQ (Object) – The jQuery context for this document.
  • contextWindow (DOMWindow) – The window containing the jQuery context.
  • docType (String) – The docType for rendering purposes. Defaults to the HTML5 doctype “<!DOCTYPE html>”
  • modifiers (Array) – An optional array of modifiers to be registered. If not supplied, the default modifiers are registered. See #addModifier to learn about document modifiers. You may always append Spah.DOM.Document.defaultModifiers later, if you wish.

Create a new Document instance ready for manipulation.