text() setter method on textnode

text() setter method on textnode

Hello,

I asked question on stackoverflow  but still not sure what could be the reason for this method to not set textnode value.

Code sample:

  1. $('div').contents().filter(function(){
  2.   return this.nodeType === 3; // text node
  3. }).text("no change!");

Wouldn't it be an improvement to handle it?

What could be the downside/issue?

Regards.