Warning: Use of undefined constant Symbol - assumed 'Symbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215 Warning: Use of undefined constant JavaScriptSymbol - assumed 'JavaScriptSymbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215

dojox/html/_base.js

  • Provides:

    • dojox.html._base
  • Requires:

    • dojo.html in common
  • dojox.html._ContentSetter

    • type
      Function
    • chains:
      • dojo.html._ContentSetter: (prototype)
      • dojo.html._ContentSetter: (call)
  • dojox.html._ContentSetter.adjustPaths

    • type
      Boolean
    • summary
      Adjust relative paths in html string content to point to this page
      Only useful if you grab content from a another folder than the current one
  • dojox.html._ContentSetter.referencePath

    • type
      String
  • dojox.html._ContentSetter.renderStyles

    • type
      bool
  • dojox.html._ContentSetter.executeScripts

    • type
      bool
  • dojox.html._ContentSetter.scriptHasHooks

    • type
      bool
  • dojox.html._ContentSetter.scriptHookReplacement

    • type
      Object
  • dojox.html._ContentSetter._renderStyles

    • parameters:
      • styles
    • type
      Function
  • dojox.html._ContentSetter._styleNodes

    • type
      Array
  • dojox.html._ContentSetter.node.ownerDocument

  • dojox.html._ContentSetter.empty

    • type
      Function
  • dojox.html._ContentSetter._styles

    • type
      Array
  • dojox.html._ContentSetter.onBegin

    • type
      Function
  • dojox.html._ContentSetter.node

  • dojox.html._ContentSetter._code

  • dojox.html._ContentSetter.content

  • dojox.html._ContentSetter.onEnd

    • type
      Function
  • dojox.html._ContentSetter.tearDown

    • type
      Function
  • dojox.html._adjustCssPaths

    • parameters:
      • cssUrl
      • cssText
    • summary
      adjusts relative paths in cssText to be relative to cssUrl
      a path is considered relative if it doesn't start with '/' and not contains ':'
    • description
      Say we fetch a HTML page from level1/page.html
      It has some inline CSS:
      @import "css/page.css" tv, screen;
      ...
      background-image: url(images/aplhaimage.png);
      
      as we fetched this HTML and therefore this CSS
      from level1/page.html, these paths needs to be adjusted to:
      @import 'level1/css/page.css' tv, screen;
      ...
      background-image: url(level1/images/alphaimage.png);
      
      In IE it will also adjust relative paths in AlphaImageLoader()
      filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/alphaimage.png');
      will be adjusted to:
      filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='level1/images/alphaimage.png');
      
      Please note that any relative paths in AlphaImageLoader in external css files wont work, as
      the paths in AlphaImageLoader is MUST be declared relative to the HTML page,
      not relative to the CSS file that declares it
    • type
      Function
  • dojox.html._adjustHtmlPaths

    • parameters:
      • htmlUrl
      • cont
    • type
      Function
  • dojox.html._snarfStyles

    • parameters:
      • cssUrl: (typeof String)
      • cont: (typeof String)
      • styles: (typeof Array)
    • type
      Function
  • dojox.html._snarfScripts

    • parameters:
      • cont
      • byRef
    • type
      Function
  • dojox.html.evalInGlobal

    • parameters:
      • code
      • appendNode
    • type
      Function
  • dojox.html.set

    • parameters:
      • node: (typeof DomNode)
        the parent element that will receive the content
      • cont: (typeof String|DomNode|NodeList)
        the content to be set on the parent element.
        This can be an html string, a node reference or a NodeList, dojo.NodeList, Array or other enumerable list of nodes
      • params: (typeof Object)
        Optional flags/properties to configure the content-setting. See dojo.html._ContentSetter
    • summary
      inserts (replaces) the given content into the given node
    • example
      A safe string/node/nodelist content replacement/injection with hooks for extension
      Example Usage:
      dojo.html.set(node, "some string");
      dojo.html.set(node, contentNode, {options});
      dojo.html.set(node, myNode.childNodes, {options});
    • type
      Function
  • dojox.html._base

    • type
      Object
  • dojox.html

    • type
      Object
  • dojox

    • type
      Object