Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel

fluid.dom.cleanseScripts(element)


Cleanse the children of a DOM node by removing all <script> tags. This is necessary to prevent the possibility that these blocks are reevaluated if the node were reattached to the document.

fluid.dom.cleaseScripts.MARKER


Constant: "fluid-scripts-cleansed"

fluid.dom.computeAbsolutePosition(element)


Returns the absolute position of a supplied DOM node in pixels. Implementation taken from quirksmode http://www.quirksmode.org/js/findpos.htmlImage Added

Return: curleft, curtop

fluid.dom.getElementText(element)


Returns the element text from the supplied DOM node as a single String.

Return: String

fluid.dom.insertAfter(newChild, refChild)


Mockup of a missing DOM function

Inserts newChild as the next sibling of refChild.

fluid.dom.isContainer(container, containee)


Checks if the specified container is actually the parent of containee.

Return: Boolean

fluid.dom.isIgnorableNode(node)


Determine if a node should be ignored by the iterator functions.
It will return true if the node is a Text node that is all whitespace or a comment node.

Return: Boolean

fluid.dom.isWhitespaceNode(node)


Determine whether a node's text content is entirely whitespace

Return: Boolean

fluid.dom.iterateDom(node, acceptor, allNodes)


Walks the DOM, applying the specified acceptor function to each element. There is a special case for the acceptor, allowing for quick deletion of elements and their children.

if acceptor is d

fluid.dom.iterateDom.DOM_BAIL_DEPTH

...