substr -> slice
simplify HTML escaping in DOM.emmet
DOM.format can accept functions in arg map
defineAttribute -> define, drop defineProperty
improve $Element#define interface