CompositionEvent: thuộc tính locale
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
Non-standard: This feature is not standardized. We do not recommend using non-standard features in production, as they have limited browser support, and may change or be removed. However, they can be a suitable alternative in specific cases where no standard option exists.
Thuộc tính chỉ đọc locale của giao diện CompositionEvent trả về ngôn ngữ của phương thức nhập hiện tại (ví dụ, ngôn ngữ bố cục bàn phím nếu quá trình soạn thảo liên quan đến một Input method editor).
Warning:
Ngay cả đối với các trình duyệt hỗ trợ nó, đừng tin tưởng giá trị chứa trong thuộc tính này.
Ngay cả khi về mặt kỹ thuật nó có thể truy cập được, cách thiết lập nó khi tạo một CompositionEvent không được đảm bảo là nhất quán.
Giá trị
Một chuỗi biểu diễn ngôn ngữ của phương thức nhập hiện tại.
Đặc điểm kỹ thuật
Thuộc tính này đã có trong các phiên bản đầu của các đặc tả khác nhau. Hiện tại nó chỉ được giữ lại cho mục đích tương thích, và cách đặt giá trị của nó khi tạo một CompositionEvent là không được xác định rõ.