mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:57:35 +00:00
LibWeb: Implement a large chunk of the Selection API
This patch implements enough of the Selection API specification that we stop hitting unimplemented functions when loading Twitter.
This commit is contained in:
parent
317ab7a04b
commit
e77798f5fd
3 changed files with 270 additions and 54 deletions
|
@ -360,8 +360,9 @@ JS::GCPtr<Selection::Selection> Document::get_selection()
|
|||
if (!browsing_context()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (!m_selection) {
|
||||
m_selection = Selection::Selection::create(realm());
|
||||
m_selection = Selection::Selection::create(realm(), *this);
|
||||
}
|
||||
return m_selection;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue