mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:37:44 +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;
|
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:
|
private:
|
||||||
explicit Range(Document&);
|
explicit Range(Document&);
|
||||||
|
|
||||||
|
|
|
@ -25,5 +25,6 @@ interface Range : AbstractRange {
|
||||||
short compareBoundaryPoints(unsigned short how, Range sourceRange);
|
short compareBoundaryPoints(unsigned short how, Range sourceRange);
|
||||||
|
|
||||||
Range cloneRange();
|
Range cloneRange();
|
||||||
|
undefined detach();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue