Skip to content

AndreasMadsen/wasm-dom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebAssembly DOM

HTML5/DOM interface for C++ and WebAssembly

work in progress (well it is unlikely I will finish it).

Idea

By having the entire DOM Interface wrapped in C++ one could write a full webpage in only C++. This will would also make static analysis very easy, as that comes for free with clang and gcc.

How

The HTML, DOM, and CSSOM specifications have all the interfaces specified in WebIDL. This can be scraped from the specification pages [1, 2, 3] using webidl-extract. W3C has a parser for this format called webidl2 which can be used to turn it into a JSON format, see ./webidl. From this JSON structure one could automatically generate C++ (header and code) which wraps emscripten::val.

About

WIP: Implements a DOM wrapper for WebAssembly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published