John Barton (2014-01-27T23:49:40.000Z)
domenic at domenicdenicola.com (2014-01-31T14:46:12.217Z)
On Mon, Jan 27, 2014 at 3:24 PM, Marius Gundersen <gundersen at gmail.com>wrote: > But I don't think that would be good for DOM manipulation. If innerHTML is > used to add a lot of markup and an existing module to the DOM, should an > error be thrown? In my opinion, attempting to overwrite a Loader's module entry would cause an error yes. > Should none of the other markup be added to the DOM? Whatever DOM does is DOM's business. > What would the error message look like to adequately indicate the source > of the error? `The module name ${moduleName} has already been defined.` I don't suggest we try to issue an error message special to this circumstance, such as "Adding a module via innerHTML is craziness". We'll just let folks work that part out themselves.