dart:html Element.setInnerHtml signature accepts null but throws if passed #41699
Labels
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
library-html
NNBD
Issues related to NNBD Release
web-libraries
Issues impacting dart:html, etc., libraries
The new signature is in the Null Safe SDK is
But within the body
html!
appears which causes an error when you pass null.Repro:
Compiling with DDC and running in a browser will cause the error:
Uncaught Error: NoSuchMethodError: '<Unexpected Null Value>'
cc @srujzs
The text was updated successfully, but these errors were encountered: