innerHTML innerHTML์ ๊ฒฝ์ฐ ๊ธฐ๋ณธ์ ์ผ๋ก ํ๊ทธ๋ฅผ ์ผ๋ฐ text ๋ฌธ์๋ก ์ธ์ํ๊ฒ๋ ๋์ด ์์ต๋๋ค. ์ด๋ https://www.w3.org/TR/2008/WD-html5-20080610/dom.html#innerhtml0 ํด๋น ๋งํฌ์์ ๋์ ์๋ฏ์ด script elements inserted using innerHTML do not execute when they are inserted. code injection๊ณผ ๊ฐ์ ๊ฒฝ์ฐ๋ฅผ ๋ฐฉ์งํ๊ธฐ ์ํด์๋ผ๋๊ตฐ์. ๋ฐ๋ผ์ ajax๋ก ํ์ด์ง๋ฅผ ๋ถ์ผ ๋ innerHTML์ ์ ์ธํ๊ณ ๋ฅผ ์ ์ฉ ์ํค๋ ๋ฐฉ๋ฒ์ ์ด 2๊ฐ์ง๊ฐ ์์ต๋๋ค. elemental.innerHTML=string ๋์ jQuery์ $(elemental).html(string)์ ์ฌ์ฉํ๋ฉด ๋ฉ๋๋ค. ..