mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 17:28:30 +00:00
LibWeb: Remove ByteString usage in input element placeholder_value()
This commit is contained in:
committed by
Tim Flynn
parent
3fd1164171
commit
b4bae912c9
@@ -689,7 +689,7 @@ String HTMLInputElement::placeholder() const
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/input.html#attr-input-placeholder
|
||||
Optional<ByteString> HTMLInputElement::placeholder_value() const
|
||||
Optional<String> HTMLInputElement::placeholder_value() const
|
||||
{
|
||||
if (!m_text_node || !m_text_node->data().is_empty())
|
||||
return {};
|
||||
@@ -697,7 +697,7 @@ Optional<ByteString> HTMLInputElement::placeholder_value() const
|
||||
return {};
|
||||
if (!has_attribute(HTML::AttributeNames::placeholder))
|
||||
return {};
|
||||
return placeholder().to_byte_string();
|
||||
return placeholder();
|
||||
}
|
||||
|
||||
void HTMLInputElement::create_shadow_tree_if_needed()
|
||||
|
||||
Reference in New Issue
Block a user