diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-11-04 16:15:00 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-11-04 16:15:00 +0000 |
commit | b54174e54a7f55cb6e11b6fb20f6615b37f5b65a (patch) | |
tree | c1f29af37eae95b6b9e7dd58c47b9bcb03887a2b /javascript/WebIDL/dom-parsing.idl | |
parent | a7324d39a46a561535dcb26fac3fbd8f593dbf94 (diff) | |
download | netsurf-b54174e54a7f55cb6e11b6fb20f6615b37f5b65a.tar.gz netsurf-b54174e54a7f55cb6e11b6fb20f6615b37f5b65a.tar.bz2 |
Add CSS object model and DOM parsing IDL ready for implementation
Diffstat (limited to 'javascript/WebIDL/dom-parsing.idl')
-rw-r--r-- | javascript/WebIDL/dom-parsing.idl | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/javascript/WebIDL/dom-parsing.idl b/javascript/WebIDL/dom-parsing.idl new file mode 100644 index 000000000..d2581328e --- /dev/null +++ b/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); +}; |