summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Bindings/Wrappable.cpp
AgeCommit message (Collapse)Author
2020-03-15LibWeb: Add missing copyright headersAndreas Kling
2020-03-14LibWeb: Start implementing basic JavaScript DOM bindingsAndreas Kling
This patch introduces the Wrapper and Wrappable classes. Node now inherits from Wrappable, and can be wrapped in a GC-allocated Bindings::NodeWrapper object. The only property we expose right now is the very simple nodeName property. When a Document's JS::Interpreter is first instantiated, we add a "document" property with a DocumentWrapper object to the global object. This is pretty cool! :^)