Re: [閒聊] 過時的架構
: 推 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
07/31 13:31, 1F
推
07/31 14:02, , 2F
07/31 14:02, 2F
推
07/31 17:42, , 3F
07/31 17:42, 3F
討論串 (同標題文章)
本文引述了以下文章的的內容:
3
9
以下文章回應了本文:
5
8
完整討論串 (本文為第 7 之 11 篇):
14
57
4
9
6
36
2
3
5
8
3
9
3
3
5
8
4
13
0
4
Web_Design 近期熱門文章
PTT數位生活區 即時熱門文章