Module: Content

Content

Source:

Members

<inner> ALLOWED_CHILDREN

The complete set of HTML(5) elements, mapped to their respective content models, which define what types of HTML nodes are permitted as their children. http://www.w3.org/html/wg/drafts/html/master/index.html#elements-1 http://www.whatwg.org/specs/web-apps/current-work/#elements-1
Source:

Methods

<inner> allowsNesting(outer, inner) → {boolean}

Checks whether the node name `outer` is allowed to contain in a node with the node name `inner` as a direct descendant based on the HTML5 specification. Reference: http://www.w3.org/html/wg/drafts/html/master/index.html#elements-1 http://www.whatwg.org/specs/web-apps/current-work/#elements-1
Parameters:
Name Type Description
outer String The node which would contain the other.
inner String The node to be nested a child of `outer`.
Source:
Returns:
True if `inner` is allowed a direct child of `outer`.
Type
boolean