1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:27:45 +00:00

LibWeb: Port Range interface from DeprecatedString to String

This commit is contained in:
Shannon Booth 2023-08-26 16:46:33 +12:00 committed by Andrew Kaster
parent 9f047819a5
commit 7b79324548
3 changed files with 8 additions and 8 deletions

View file

@ -427,7 +427,7 @@ String Selection::to_string() const
// See https://www.w3.org/Bugs/Public/show_bug.cgi?id=10583
if (!m_range)
return String {};
return String::from_deprecated_string(m_range->to_deprecated_string()).release_value();
return m_range->to_string();
}
JS::NonnullGCPtr<DOM::Document> Selection::document() const