- Read-up on the relevant spec.
- Add
.webidlfile(s) in this folder for each interface that you want to implement. If one already exists, you want to add the missing parts to it. - For each interface, this will generate a trait named
{interface_name}Methods, accessible viause crate::dom::bindings::codegen::Bindings::{interface_name}Binding. - Use this trait by:
- Adding a matching struct, using
#[dom_struct]
- Adding a matching struct, using
- Adding methods with
todo!bodies.