HTMLnesting module
This module defines allowed HTML nesting of elements for use by HTMLDocument. It is unlikely to be especially useful except for its use in that module.
Functions
- Bool alwaysEmpty(String el) - Is the element an empty element?
- Bool containsBlock(String el) - Can the element contain block-level elements?
- Bool containsCData(String el) - Can the block-level element contain text?
- Bool containsCDataOnly(String el) - Can the element only contain text?
- HashSet<String> getAlwaysEmpty() - Retrieve dictionary of all empty elements
- Bool isAlwaysBlock(String el) - Must the element be block-level?
- [String] isAlwaysEmpty() - List all empty elements
- Bool isBlock(String el) - Might the element be block-level?
- Bool nestingExceptions(Pair<String, String> ex) - Is an exception to the general nesting rules allowed?
- Bool pretendEmpty(String el) - Do special nesting rules apply?