mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
LibWeb: Remove DOM element deprecated_get_attribute()
This commit is contained in:
parent
c477f90df7
commit
a681429dff
40 changed files with 114 additions and 122 deletions
|
@ -1073,7 +1073,8 @@ Messages::WebDriverClient::GetElementAttributeResponse WebDriverConnection::get_
|
|||
// -> Otherwise
|
||||
else {
|
||||
// The result of getting an attribute by name name.
|
||||
result = element->deprecated_get_attribute(name);
|
||||
if (auto attr = element->get_attribute(name); attr.has_value())
|
||||
result = attr->to_byte_string();
|
||||
}
|
||||
|
||||
// 5. Return success with data result.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue