angular / angular.js

AngularJS - HTML enhanced for web apps!
https://angularjs.org
MIT License
58.85k stars 27.52k forks source link

jqLite text() function has different behavior then jquery text() function #11943

Open imamovic opened 9 years ago

imamovic commented 9 years ago
angular.element('<div></div>').text(undefined) 

is returning empty string ("")

$('<div></div>').text(undefined)

is returning DOM object (Object[div])

Tested version: 1.3.15

mgol commented 6 years ago

This actually affects way more APIs than just .text(). We'd have to review them all & update.

mgol commented 6 years ago

Since we're reaching feature freeze, this is a won't fix at this point. Sorry!