mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-09 19:16:02 +00:00
LibVT: Clear the href ID by setting it to None instead of ""
This commit is contained in:
parent
a8c7448ccb
commit
f10dc9cb14
Notes:
sideshowbarker
2024-07-17 04:21:32 +09:00
Author: https://github.com/alimpfard
Commit: f10dc9cb14
Pull-request: https://github.com/SerenityOS/serenity/pull/21466
Issue: https://github.com/SerenityOS/serenity/issues/21463
Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 2 additions and 2 deletions
|
@ -1275,8 +1275,8 @@ void Terminal::execute_osc_sequence(OscParameters parameters, u8 last_byte)
|
||||||
dbgln("Attempted to set href but gave too few parameters");
|
dbgln("Attempted to set href but gave too few parameters");
|
||||||
} else if (parameters[1].is_empty() && parameters[2].is_empty()) {
|
} else if (parameters[1].is_empty() && parameters[2].is_empty()) {
|
||||||
// Clear hyperlink
|
// Clear hyperlink
|
||||||
m_current_state.attribute.href = DeprecatedString();
|
m_current_state.attribute.href = {};
|
||||||
m_current_state.attribute.href_id = DeprecatedString();
|
m_current_state.attribute.href_id = {};
|
||||||
} else {
|
} else {
|
||||||
m_current_state.attribute.href = stringview_ify(2);
|
m_current_state.attribute.href = stringview_ify(2);
|
||||||
// FIXME: Respect the provided ID
|
// FIXME: Respect the provided ID
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue