1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:18:12 +00:00
serenity/Libraries/LibWeb/DOM/Document.idl
Andreas Kling 1ffffa0053 LibWeb: Start generating JS wrappers from (simplified) WebIDL :^)
This patch introduces a hackish but functional IDL parser and uses it
to generate the JS bindings for Node and Document.

We'll see how far this simple parser takes us. The important thing
right now is generating code, not being a perfect IDL parser. :^)
2020-06-21 00:58:55 +02:00

7 lines
183 B
Text

interface Document : Node {
Element? getElementById(DOMString id);
Element? querySelector(DOMString selectors);
ArrayFromVector querySelectorAll(DOMString selectors);
}