LibWeb: Add Range.detach

This commit is contained in:
Luke Wilde 2022-01-31 18:58:08 +00:00 committed by Andreas Kling
parent 8a755726ad
commit 4c08757ff9
Notes: sideshowbarker 2024-07-17 18:14:20 +09:00
2 changed files with 8 additions and 0 deletions

View File

@ -50,6 +50,13 @@ public:
NonnullRefPtr<Node> common_ancestor_container() const;
// https://dom.spec.whatwg.org/#dom-range-detach
void detach() const
{
// The detach() method steps are to do nothing.
// Note: Its functionality (disabling a Range object) was removed, but the method itself is preserved for compatibility.
}
private:
explicit Range(Document&);

View File

@ -25,5 +25,6 @@ interface Range : AbstractRange {
short compareBoundaryPoints(unsigned short how, Range sourceRange);
Range cloneRange();
undefined detach();
};