Qualify or remove $.fn.text caveat

Aperta
#1,055 2 commenti 1 reazione 1 assegnatario Vedi su GitHub

@AurelioDeRosa ci sta già lavorando.

Dal 3/1/2018.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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 a script element, 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.

Lingua principale
HTML
Stelle
324
Fork
259
Merge medio
1g 30m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di jquery/api.jquery.com

Tutte le issue di jquery/api.jquery.com

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.