mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:37:34 +00:00
LibWeb: Add Range.detach
This commit is contained in:
parent
8a755726ad
commit
4c08757ff9
2 changed files with 8 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue