mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-01 03:47:48 +02:00
Multiple APIs have moved from the DOM Parsing and Serialization spec to HTML. Updates spec URLs and comments. Delete InnerHTML file: - Make parse_fragment a member of Element, matching serialize_fragment on Node. - Move inner_html_setter inline into Element and ShadowRoot as per the spec. Add FIXME to Range.idl for Trusted Types createContextualFragment (cherry picked from commit 9171c3518358cd2d146ffbd7582e4c1247a1daa7)
53 lines
1.8 KiB
Plaintext
53 lines
1.8 KiB
Plaintext
#import <DOM/Node.idl>
|
|
#import <DOM/AbstractRange.idl>
|
|
#import <Geometry/DOMRect.idl>
|
|
|
|
// https://dom.spec.whatwg.org/#interface-range
|
|
[Exposed=Window]
|
|
interface Range : AbstractRange {
|
|
|
|
constructor();
|
|
|
|
readonly attribute Node commonAncestorContainer;
|
|
|
|
undefined setStart(Node node, unsigned long offset);
|
|
undefined setEnd(Node node, unsigned long offset);
|
|
undefined setStartBefore(Node node);
|
|
undefined setStartAfter(Node node);
|
|
undefined setEndBefore(Node node);
|
|
undefined setEndAfter(Node node);
|
|
undefined collapse(optional boolean toStart = false);
|
|
undefined selectNode(Node node);
|
|
undefined selectNodeContents(Node node);
|
|
|
|
const unsigned short START_TO_START = 0;
|
|
const unsigned short START_TO_END = 1;
|
|
const unsigned short END_TO_END = 2;
|
|
const unsigned short END_TO_START = 3;
|
|
short compareBoundaryPoints(unsigned short how, Range sourceRange);
|
|
|
|
[CEReactions] undefined deleteContents();
|
|
[CEReactions, NewObject] DocumentFragment extractContents();
|
|
[CEReactions, NewObject] DocumentFragment cloneContents();
|
|
[CEReactions] undefined insertNode(Node node);
|
|
[CEReactions] undefined surroundContents(Node newParent);
|
|
|
|
Range cloneRange();
|
|
undefined detach();
|
|
|
|
boolean isPointInRange(Node node, unsigned long offset);
|
|
short comparePoint(Node node, unsigned long offset);
|
|
|
|
boolean intersectsNode(Node node);
|
|
|
|
DOMRectList getClientRects();
|
|
DOMRect getBoundingClientRect();
|
|
|
|
stringifier;
|
|
|
|
// https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-range-createcontextualfragment
|
|
// FIXME: [CEReactions, NewObject] DocumentFragment createContextualFragment((TrustedHTML or DOMString) string);
|
|
[CEReactions, NewObject] DocumentFragment createContextualFragment(DOMString string);
|
|
|
|
};
|