News for hackers. Stuff that matters.
Re:PlainJS – The Vanilla JavaScript Repository by dlbucci on Wednesday May 13, 2015 @11:29AM (#9539655)
"There is no "document.createElement" in the Javascript spec." Uh... https://developer.mozilla.org/en-US/docs/Web/API/Document/cr...
Re:PlainJS – The Vanilla JavaScript Repository by matchu on Wednesday May 13, 2015 @11:34AM (#9539703)
Yes, document.createElement exists and is documented. But check the links at the bottom of the page: the function comes from the DOM and HTML5 specs, not from the Javascript spec.
Re:PlainJS – The Vanilla JavaScript Repository by BinaryIdiot on Wednesday May 13, 2015 @11:34AM (#9539699)
Your link actually shows it's not part of the EMCAScript specification :)

No worries just a common misconception; the DOM API is part of HTML and DOM specifications.

Re:PlainJS – The Vanilla JavaScript Repository by aikah on Wednesday May 13, 2015 @11:35AM (#9539711)
Yeah well , this IS the ecmascript AKA javascript spec :

https://es5.github.io/

you pointed to a mozilla wiki which has a entry under "web" directory

     >"There is no "document.createElement" in the Javascript spec." Uh... https://developer.mozilla.org/en-US/docs/Web/API/Document/cr...
well, I hope you learned something today because your link isn't the javascript spec.