api.jquery.com
api.jquery.com copied to clipboard
Qualify or remove $.fn.text caveat
The docs for $.fn.text contain the following recommendation:
The
.text()method cannot be used on form inputs or scripts. [...] To get the value of ascriptelement, use the.html()method.
As far as I am aware, this is only relevant for Internet Explorer versions 8
and below (all other browsers include the text content of script elements).
Because jQuery no longer supports those browsers, I'm wondering if the text
should be removed or perhaps updated to qualify for users of jQuery 1.x.
Reasonable. I'll take a look at this tomorrow.
@AurelioDeRosa this has some bearing on an issue filed against the Cheerio project. Would you mind taking a look?