TAILIEUCHUNG - HTML & CSS: The Complete Reference- P4

Tham khảo tài liệu 'html & css: the complete reference- p4', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 126 Part I Core Markup It is interesting that many developers are quite okay with the use of innerHTML but are quick to deride the use of JavaScript s eval statement. In many ways these are the same concepts the former provides direct access to the markup parser and the latter provides direct access to the JavaScript interpreter. Regardless of the consistency of Web developers thinking patterns the codification of innerHTML is quite a welcome change. The embrace of common practices by HTML5 isn t limited to innerHTML the specification supports all sorts of features such as designMode features that allow for browser-based WYSIWYG editing commonly used DOM workarounds like insertAdjacentHTML emerging DOM methods like getElementsByClassName more-esoteric DOM specifications like ranges and selections and more. The specification also provides APIs for what it introduces. We explored just such an API earlier in the chapter when we experimented with canvas scripting. Similarly elements like audio and video expose a number of properties such as volume and methods such as play . There is much to be discovered when reading the HTML5 specification closely. Consider for example how browsers handle runaway script code. There really is nothing online that defines how or when this is done but the HTML5 specification actually starts to address such problems section User agents may impose resource limitations on scripts for example CPU quotas memory limits total execution time limits or bandwidth limitations. When a script exceeds a limit the user agent may either throw a QUOTA_EXCEEDED_ ERR exception abort the script without an exception prompt the user or throttle script execution. If you take the time to read the specification you will find many passages such as this that offer hope that someday troubling corner cases in Web development will be reduced or even eliminated. However you might also get a sense that the aims of the specification are a bit too grand. You can .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.