mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
LibWeb: Make getElementsByClassName() case-insensitive in quirks mode
From https://dom.spec.whatwg.org/#concept-getelementsbyclassname: The comparisons for the classes must be done in an ASCII case- insensitive manner if root’s node document’s mode is "quirks", and in an identical to manner otherwise.
This commit is contained in:
parent
5a9094a70a
commit
2a38f008bf
3 changed files with 8 additions and 4 deletions
|
@ -73,7 +73,7 @@ public:
|
|||
callback(attribute.name(), attribute.value());
|
||||
}
|
||||
|
||||
bool has_class(const FlyString&) const;
|
||||
bool has_class(const FlyString&, CaseSensitivity = CaseSensitivity::CaseSensitive) const;
|
||||
const Vector<FlyString>& class_names() const { return m_classes; }
|
||||
|
||||
virtual void apply_presentational_hints(CSS::StyleProperties&) const { }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue