export function getInputElement ( element ) { return < HTMLInputElement > element . querySelector ( 'input' ) ; } export function getLabelElement ( element ) { return < HTMLLabelElement > element . querySelector ( 'label' ) ; } export function getErrorElement ( element ) { return < HTMLDivElement > element . querySelector ( '.slds-form-element__help' ) ; } export function getRequiredElement ( element ) { return < HTMLDivElement > element . querySelector ( 'abbr' ) ; }