Important differences between textContent and innerText

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 พ.ค. 2023
  • Did you know that textContent and innerText, while similar properties, actually have differences in their values that could impact your project?
    Code from video: gist.github.com/prof3ssorSt3v...

ความคิดเห็น • 12

  • @RaghavendraMorisetty-ze6uu
    @RaghavendraMorisetty-ze6uu 6 หลายเดือนก่อน

    Thanks...after seeing so many videos at last your video made me clear

  • @lonniesmith8093
    @lonniesmith8093 ปีที่แล้ว +1

    Great explanation!

  • @Icode2395
    @Icode2395 9 หลายเดือนก่อน +1

    Thanks A Lot For Your Clear Explaination.

  • @user-ud9gr9ix8k
    @user-ud9gr9ix8k ปีที่แล้ว +2

    thanks steve

  • @ajithmoni1712
    @ajithmoni1712 ปีที่แล้ว +1

    Thank you very much. This was really useful

  • @Konstantin19877
    @Konstantin19877 ปีที่แล้ว

    Thanks

  • @romeojoseph766
    @romeojoseph766 ปีที่แล้ว

    I am in!

  • @devstefancho
    @devstefancho ปีที่แล้ว

    Thanks, If I understand right, innerText is a better option for navigator.writeText to copy contents same as what user see in web page.

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  ปีที่แล้ว +1

      Probably. My point is just to be aware that there is a difference and consider how it impacts what you are building.

  • @Wakkyguy
    @Wakkyguy ปีที่แล้ว

    👏🏻 👏🏻 👏🏻

  • @anasouardini
    @anasouardini ปีที่แล้ว

    Hmm, I can't find your channel on odysee!!
    Good content BTW.

  • @user-yq7ip3jy3r
    @user-yq7ip3jy3r 4 หลายเดือนก่อน

    textContent shows the element in the page or console if its hidden by Css display: none; , but innerText doesnt . so how u saying it doesnt shown on textContent Feature??