Closed Bug 308100 Opened 19 years ago Closed 7 years ago

Case-insensitive class comparisons only work for ASCII

Categories

(Core :: DOM: Core & HTML, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: bzbarsky, Unassigned)

References

Details

The code in nsGenericHTMLElement::HasClass is: 1932 const char *class1, *class2; 1933 aClass->GetUTF8String(&class1); 1934 val->GetAtomValue()->GetUTF8String(&class2); 1935 1936 return nsCRT::strcasecmp(class1, class2) == 0; (and same in the loop later in the method). This should either be using nsAString or using the UTF8 comparator we don't have yet (bug 231782).
Assignee: general → nobody
QA Contact: ian → general
It should be ASCII case-insensitive (in quirks mode anyway).
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.