Home | History | Annotate | Download | only in webapp

Lines Matching refs:element

27  * Localize an element by setting its innerText according to the specified tag
30 * @param {Element} element The element to localize.
38 l10n.localizeElementFromTag = function(element, tag, opt_substitutions,
42 element.innerHTML = translation;
44 element.innerText = translation;
50 * Localize an element by setting its innerText according to its i18n-content
53 * @param {Element} element The element to localize.
60 l10n.localizeElement = function(element, opt_substitutions, opt_asHtml) {
61 var tag = element.getAttribute('i18n-content');
62 return l10n.localizeElementFromTag(element, tag, opt_substitutions,
77 /** @type {Element} */ var element = elements[i];
82 if (element.hasAttribute(value)) {
83 substitutions.push(element.getAttribute(value));
84 } else if (element.hasAttribute(valueName)) {
85 var name = element.getAttribute(valueName);
97 var titleTag = element.getAttribute('i18n-title');
99 element.title = l10n.getTranslationOrError(titleTag, substitutions);
101 l10n.localizeElement(element, substitutions,