mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +00:00
LibWeb: Port DOMException interface from DeprecatedString to String
This commit is contained in:
parent
bcb6851c07
commit
41928c2902
65 changed files with 296 additions and 296 deletions
|
@ -30,7 +30,7 @@ WebIDL::ExceptionOr<JS::GCPtr<Element>> ParentNode::query_selector(StringView se
|
|||
|
||||
// 2. If s is failure, then throw a "SyntaxError" DOMException.
|
||||
if (!maybe_selectors.has_value())
|
||||
return WebIDL::SyntaxError::create(realm(), "Failed to parse selector");
|
||||
return WebIDL::SyntaxError::create(realm(), "Failed to parse selector"_fly_string);
|
||||
|
||||
auto selectors = maybe_selectors.value();
|
||||
|
||||
|
@ -62,7 +62,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<NodeList>> ParentNode::query_selector_all(S
|
|||
|
||||
// 2. If s is failure, then throw a "SyntaxError" DOMException.
|
||||
if (!maybe_selectors.has_value())
|
||||
return WebIDL::SyntaxError::create(realm(), "Failed to parse selector");
|
||||
return WebIDL::SyntaxError::create(realm(), "Failed to parse selector"_fly_string);
|
||||
|
||||
auto selectors = maybe_selectors.value();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue