Generates an <html> tag and performs error handling within its body.
<netui:html
[dir="string_dir"]
[scopeId="string_scopeId"]
[useLocale="boolean_useLocale"] />
JavaScript
The <netui:html> tag writes out the following JavaScript functions. These functions are used to map the tagId attributes specified in <netui> tags to the id attributes that are written to the rendered HTML tags.
Some application containers may alter the id attribute of the rendered HTML tags to ensure that all elements on the page have a unique id. (Portal containers can sometimes do this.) In such cases a mapping is created between the tagId's and actual id's rendered in the HTML tags. The following functions are used to return the rendered id values based on the tagId values.
function getNetuiTagName(id, tag) { if (scopeId == "") return netui_names[id]; else return netui_names[portletId__id]; } function getScopeId(tag) { if (tag == null) return ""; if (tag.scopeId != null) return tag.scopeId; return getScopeId(tag.parentElement); }
<netui:html dir="LTR" useLocale="true" />