moebius#121: DOM - Selection API - getSelection() should exist on XMLDocument / Selection.type

https://github.com/MoonchildProductions/moebius/pull/121
This commit is contained in:
janekptacijarabaci 2018-04-23 09:16:50 +02:00 committed by Roy Tam
commit 9db39c42c0
10 changed files with 43 additions and 32 deletions

View file

@ -33,6 +33,7 @@ interface Selection {
void deleteFromDocument();
readonly attribute unsigned long rangeCount;
readonly attribute DOMString type;
[Throws]
Range getRangeAt(unsigned long index);
[Throws]
@ -77,7 +78,7 @@ partial interface Selection {
void removeSelectionListener(nsISelectionListener listenerToRemove);
[ChromeOnly,BinaryName="rawType"]
readonly attribute short type;
readonly attribute short selectionType;
[ChromeOnly,Throws,Pref="dom.testing.selection.GetRangesForInterval"]
sequence<Range> GetRangesForInterval(Node beginNode, long beginOffset, Node endNode, long endOffset,