Qualify or remove $.fn.text caveat

Đang mở
#1,055 2 bình luận 1 reaction 1 người được giao Xem trên GitHub

@AurelioDeRosa đang làm issue này rồi.

Từ ngày 3/1/2018.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.

Ngôn ngữ chính
HTML
Star
324
Fork
259
Merge trung bình
1 ngày 30 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của jquery/api.jquery.com

Tất cả issue của jquery/api.jquery.com

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.