MOLECULAR COMPONENTS
Html_element
CLASS
Overview
The Html_element class is pretty much the penultimate core Molecular Components data class and file.
Basically, this class is used as a static starting point for inheritable HTML5 attributes that are valid on any and all HTML5 tags!
// ./js/modules/html_elememts/data/Html_element.js
class Html_element {
constructor () {
this._defaults = {
attributes : {
accesskey : null,
autocapitalize : null,
class : null,
contenteditable : null,
dir : null,
draggable : null,
exportparts : null,
hidden : null,
id : null,
inputmode : null,
is : null,
itemid : null,
itemprop : null,
itemref : null,
itemscope : null,
itemtype : null,
lang : null,
part : null,
slot : null,
spellcheck : null,
style : null,
tabindex : null,
title : null,
translate : null
},
text : null
};
}
}
Take note of the this._defaults{...} aspect of this class!
Keep in mind that because this class is static, there is no functionality to allow a developer to override these settings at this point in the inheritance chain! That happens later on, when classes inherit from this Html_element class while merging any developer defined overrides of these inherited properties.