innerHTML의 단점 #146
Unanswered
innerstella
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
사용자로부터 받은 입력값을 innerHTML에 할당할 경우 XSS 공격에 취약
innerHTML에 HTML 마크업 문자열을 할당하면 기존 노드가 제거되고 처음부터 새롭게 생성되기 때문에 비효율적
새로운 요소 삽입 시 위치 지정 불가능
Beta Was this translation helpful? Give feedback.
All reactions