Open njam opened 4 years ago
Hm, the tests are using DomBuilder
, but html!
is creating Dom
.
I've now replaced DomBuilder::new(create_element_ns(...))
with DomBuilder::new_html(...)
, does that make sense?
btw, how are you running the tests? :D
I tried running tests with "wasm-bindgen-test" in Chrome, and got 3/6 failing tests.
Oh, I'm sorry, I somehow missed this issue. I don't actually run any of the tests, I just use them for compile-time type checking.
Just making the code compile
The const
HTML_NAMESPACE
is used in the same file, in thetests
module. Not sure if you prefer defining the constant in thetests
module, to avoid it being "dead code"?