summaryrefslogtreecommitdiff
path: root/content/handlers/javascript/WebIDL/dom-parsing.idl
diff options
context:
space:
mode:
Diffstat (limited to 'content/handlers/javascript/WebIDL/dom-parsing.idl')
-rw-r--r--content/handlers/javascript/WebIDL/dom-parsing.idl35
1 files changed, 35 insertions, 0 deletions
diff --git a/content/handlers/javascript/WebIDL/dom-parsing.idl b/content/handlers/javascript/WebIDL/dom-parsing.idl
new file mode 100644
index 000000000..d2581328e
--- /dev/null
+++ b/content/handlers/javascript/WebIDL/dom-parsing.idl
@@ -0,0 +1,35 @@
+// Retrived from http://www.w3.org/TR/DOM-Parsing/
+// Wed Nov 4 15:39:43 GMT 2015
+// Manually extracted IDL
+
+enum SupportedType {
+ "text/html",
+ "text/xml",
+ "application/xml",
+ "application/xhtml+xml",
+ "image/svg+xml"
+};
+
+[Constructor]
+interface DOMParser {
+ [NewObject]
+ Document parseFromString (DOMString str, SupportedType type);
+};
+
+[Constructor]
+interface XMLSerializer {
+ DOMString serializeToString (Node root);
+};
+
+partial interface Element {
+ [TreatNullAs=EmptyString]
+ attribute DOMString innerHTML;
+ [TreatNullAs=EmptyString]
+ attribute DOMString outerHTML;
+ void insertAdjacentHTML (DOMString position, DOMString text);
+};
+
+partial interface Range {
+ [NewObject]
+ DocumentFragment createContextualFragment (DOMString fragment);
+};