mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibWeb: Rename Element::attribute to Element::deprecated_attribute
This should allow us to add a Element::attribute which returns an Optional<String>. Eventually all callers should be ported to switch from the DeprecatedString version, but in the meantime, this should allow us to port some more IDL interfaces away from DeprecatedString.
This commit is contained in:
@@ -51,7 +51,7 @@ void HTMLProgressElement::progress_position_updated()
|
||||
|
||||
double HTMLProgressElement::value() const
|
||||
{
|
||||
auto const& value_characters = attribute(HTML::AttributeNames::value);
|
||||
auto const& value_characters = deprecated_attribute(HTML::AttributeNames::value);
|
||||
if (value_characters == nullptr)
|
||||
return 0;
|
||||
|
||||
@@ -78,7 +78,7 @@ WebIDL::ExceptionOr<void> HTMLProgressElement::set_value(double value)
|
||||
|
||||
double HTMLProgressElement::max() const
|
||||
{
|
||||
auto const& max_characters = attribute(HTML::AttributeNames::max);
|
||||
auto const& max_characters = deprecated_attribute(HTML::AttributeNames::max);
|
||||
if (max_characters == nullptr)
|
||||
return 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user