mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
LibWeb: Remove DOM element deprecated_get_attribute()
This commit is contained in:
committed by
Andrew Kaster
parent
c477f90df7
commit
a681429dff
@@ -369,7 +369,7 @@ String HTMLInputElement::value() const
|
||||
|| type_state() == TypeAttributeState::ResetButton
|
||||
|| type_state() == TypeAttributeState::Button) {
|
||||
// On getting, if the element has a value content attribute, return that attribute's value; otherwise, return the empty string.
|
||||
return get_attribute(AttributeNames::value).value_or(String {});
|
||||
return get_attribute_value(AttributeNames::value);
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/input.html#range-state-(type=range):attr-input-value
|
||||
@@ -1015,7 +1015,7 @@ void HTMLInputElement::reset_algorithm()
|
||||
m_dirty_checkedness = false;
|
||||
|
||||
// set the value of the element to the value of the value content attribute, if there is one, or the empty string otherwise,
|
||||
m_value = get_attribute(AttributeNames::value).value_or(String {});
|
||||
m_value = get_attribute_value(AttributeNames::value);
|
||||
|
||||
// set the checkedness of the element to true if the element has a checked content attribute and false if it does not,
|
||||
m_checked = has_attribute(AttributeNames::checked);
|
||||
|
||||
Reference in New Issue
Block a user