80 String convertedName = convertAttributeNameToPropertyName(attributeName);
81 return (convertedName == propertyName);
78 const UChar* property = propertyName.characters();
79 const UChar* attribute = attributeName.characters();
80 unsigned propertyLength = propertyName.length();
81 unsigned attributeLength = attributeName.length();
82
83 unsigned a = 5;
84 unsigned p = 0;
85 bool wordBoundary = false;
86 while (a < attributeLength && p < propertyLength) {
87 if (attribute[a] == '-' && a + 1 < attributeLength && attribute[a + 1] != '-')
88 wordBoundary = true;
89 else {
90 if ((wordBoundary ? toASCIIUpper(attribute[a]) : attribute[a]) != property[p])
91 return false;
92 p++;
93 wordBoundary = false;
94 }
95 a++;
96 }
97
98 return (a == attributeLength && p == propertyLength);