Git Product home page Git Product logo

Comments (1)

yamoo9 avatar yamoo9 commented on May 23, 2024

XML DOM vs HTML DOM

DOM 방식의 차이 입니다.

XML DOM.xml, .html, .htm 모두 사용 가능하지만,

list.setAttribute('style', 'display: none')

HTML DOM.xml에서는 사용할 수 없습니다.

list.style.display='none'

textContent VS innerText

textContent와 innerText의 차이점은 다음과 같습니다.

  • textContent는 HTML 텍스트 코드를 단순히 텍스트로 출력한다.
  • textContent는 모든 요소의 내용을 가져올 수 있다. 반면 innerText는 그렇지 않다.
  • innerTexttextContent와 달리 숨겨진 요소들의 텍스트는 반환하지 않는다.
  • textContent 속성은 IE 9+ 지원되지만, innerText는 모든 브라우저에서 지원된다.

from jj_camp_fundamental.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.