mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibWeb: Add Range.detach
This commit is contained in:
parent
8a755726ad
commit
4c08757ff9
Notes:
sideshowbarker
2024-07-17 18:14:20 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/4c08757ff9 Pull-request: https://github.com/SerenityOS/serenity/pull/12774
@ -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&);
|
||||
|
||||
|
@ -25,5 +25,6 @@ interface Range : AbstractRange {
|
||||
short compareBoundaryPoints(unsigned short how, Range sourceRange);
|
||||
|
||||
Range cloneRange();
|
||||
undefined detach();
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user