static String canonicalName ( String elementOrAttribName ) { return elementOrAttribName . indexOf ( ' ' ) >= 0 ? elementOrAttribName : Strings . toLowerCase ( elementOrAttribName ) ; }
Normalize case of names that are not name - spaced . This lower - cases HTML element and attribute names but not ones for embedded SVG or MATHML .