void EmailInputType::countUsage() { countUsageIfVisible(UseCounter::InputTypeEmail); bool hasMaxLength = element().fastHasAttribute(HTMLNames::maxlengthAttr); if (hasMaxLength) countUsageIfVisible(UseCounter::InputTypeEmailMaxLength); if (element().multiple()) { countUsageIfVisible(UseCounter::InputTypeEmailMultiple); if (hasMaxLength) countUsageIfVisible(UseCounter::InputTypeEmailMultipleMaxLength); } }
void TelephoneInputType::countUsage() { countUsageIfVisible(UseCounter::InputTypeTel); }
void URLInputType::countUsage() { countUsageIfVisible(UseCounter::InputTypeURL); }
void PasswordInputType::countUsage() { countUsageIfVisible(UseCounter::InputTypePassword); if (element().fastHasAttribute(HTMLNames::maxlengthAttr)) countUsageIfVisible(UseCounter::InputTypePasswordMaxLength); }
void NumberInputType::countUsage() { countUsageIfVisible(UseCounter::InputTypeNumber); }