mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:18:12 +00:00

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. :^)
7 lines
183 B
Text
7 lines
183 B
Text
interface Document : Node {
|
|
|
|
Element? getElementById(DOMString id);
|
|
Element? querySelector(DOMString selectors);
|
|
ArrayFromVector querySelectorAll(DOMString selectors);
|
|
|
|
}
|