Skip to content

Priority of dom bindings

Josh Matthews edited this page Jul 24, 2013 · 10 revisions

Status: unprioritized, incomplete information dump

High priority:

  • Move nodes and elements to generated bindings
    • Generate stubs (ie. empty interfaces) for any inherited interfaces required
    • Comment out anything referring to types that aren't generated yet (that aren't in the Node hierarchy)
    • Make the codegen require all generated types to provide a trace hook function (ie. NameOfInterface::trace) and make use of it

Unimplemented webIDL/binding features:

  • Unions (used by Canvas, for example)
  • Expando properties
  • Cross-domain wrappers
  • Sequences
  • Exceptions
  • Constants
  • Callbacks
  • Arrays
  • Date
  • Annotations
  • Clamping
  • Ability to set up Window as the global object
  • ...

See https://github.com/mozilla/servo/blob/master/src/components/script/dom/bindings/codegen/test/TestCodeGen.webidl

Incomplete work:

  • Majority of proxy hooks
  • DOMString conversions according to spec
  • Nonfatal enumeration behaviour
  • ...

Untested:

  • Overloads