angular.js icon indicating copy to clipboard operation
angular.js copied to clipboard

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

Open imamovic opened this issue 10 years ago • 2 comments

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

imamovic avatar May 26 '15 12:05 imamovic

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

mgol avatar Mar 29 '18 07:03 mgol

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

mgol avatar Jul 27 '18 17:07 mgol