Important differences between textContent and innerText

Sdílet
Vložit
  • čas přidán 13. 05. 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...

Komentáře • 12

  • @RaghavendraMorisetty-ze6uu
    @RaghavendraMorisetty-ze6uu Před 6 měsíci

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

  • @Icode2395
    @Icode2395 Před 9 měsíci +1

    Thanks A Lot For Your Clear Explaination.

  • @lonniesmith8093
    @lonniesmith8093 Před rokem +1

    Great explanation!

  • @user-ud9gr9ix8k
    @user-ud9gr9ix8k Před rokem +2

    thanks steve

  • @ajithmoni1712
    @ajithmoni1712 Před rokem +1

    Thank you very much. This was really useful

  • @Konstantin19877
    @Konstantin19877 Před rokem

    Thanks

  • @devstefancho
    @devstefancho Před rokem

    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  Před rokem +1

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

  • @romeojoseph766
    @romeojoseph766 Před rokem

    I am in!

  • @Wakkyguy
    @Wakkyguy Před rokem

    👏🏻 👏🏻 👏🏻

  • @user-yq7ip3jy3r
    @user-yq7ip3jy3r Před 4 měsíci

    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??

  • @anasouardini
    @anasouardini Před rokem

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