mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:37:35 +00:00
LibWeb: Remove more DeprecatedString null state remnants
This commit is contained in:
parent
988c6568a9
commit
0937d88869
4 changed files with 7 additions and 7 deletions
|
@ -170,9 +170,9 @@ JS::NonnullGCPtr<HTMLCollection> ParentNode::get_elements_by_tag_name_ns(Depreca
|
|||
auto local_name = MUST(FlyString::from_deprecated_fly_string(deprecated_local_name));
|
||||
|
||||
// 1. If namespace is the empty string, set it to null.
|
||||
DeprecatedString namespace_ = nullable_namespace;
|
||||
if (namespace_.is_empty())
|
||||
namespace_ = {};
|
||||
DeprecatedFlyString namespace_;
|
||||
if (!nullable_namespace.is_null() && !nullable_namespace.is_empty())
|
||||
namespace_ = nullable_namespace;
|
||||
|
||||
// 2. If both namespace and localName are "*" (U+002A), return a HTMLCollection rooted at root, whose filter matches descendant elements.
|
||||
if (namespace_ == "*" && local_name == "*") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue