Re: [閒聊] 過時的架構

看板Web_Design作者 (么柏)時間16年前 (2008/07/31 12:31), 編輯推噓3(300)
留言3則, 3人參與, 最新討論串7/11 (看更多)
: 推 alpe:好像 innerHTML innerXXX 都不是標準之內的東西 XD 07/31 09:50 還真的不是 囧" http://www.w3.org/TR/WCAG20-TECHS/SCR21.html Description The objective of this technique is to demonstrate how to use functions of the Document Object Model (DOM) to add content to a page instead of using document.write or object.innerHTML. The document.write() method does not work with XHTML when served with the correct MIME type (application/xhtml+xml), and the innerHTML property is not part of the DOM specification and thus should be avoided. If the DOM functions are used to add the content, user agents can access the DOM to retrieve the content. The createElement() function can be used to create elements within the DOM. The createTextNode() is used to create text associated with elements. The appendChild(), removeChild(), insertBefore() and replaceChild() functions are used to add and remove elements and nodes. Other DOM functions are used to assign attributes to the created elements. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.134.147.245

07/31 13:31, , 1F
不是標準,但是在很多ajax套件都看的到,例如YUI
07/31 13:31, 1F

07/31 14:02, , 2F
原來如此,受教了...
07/31 14:02, 2F

07/31 17:42, , 3F
我還滿常用innerHTML噎...
07/31 17:42, 3F
文章代碼(AID): #18aK0Cfp (Web_Design)
討論串 (同標題文章)
本文引述了以下文章的的內容:
以下文章回應了本文
完整討論串 (本文為第 7 之 11 篇):
14
57
文章代碼(AID): #18aK0Cfp (Web_Design)