Elementals.js

Latest Version: 3.0 RC 1 17 July 2017

"Constant" _.NON_CONTENT_TAGS

Summary:

An Array containing elements that typically would not wrap content. This includes all HTML "empty/void" tags as well as other tags like <object> and <textarea> which would not have Element.textContent or Element.innerText.

Current Values

From _.EMPTY_TAGS

"AREA", "BASE", "BR", "COL", "COMMAND", "EMBED", "HR", "IMG", "INPUT", "KEYGEN", "LINK", "META", "PARAM", "SOURCE", "TRACK", "WBR"

Additional Values

"AUDIO", "COLGROUP", "HEAD", "MAP", "METER", "PROGRESS", "OBJECT", "SCRIPT", "STYLE", "TEXTAREA", "VIDEO"

Whilst JavaScript does not have true constant/define, Elementals uses the all upper-case naming convention as a reminder that you should NOT be trying to change the values of this array -- even though you CAN.