Это видео недоступно.
Сожалеем об этом.

Nodes Versus Elements in the DOM

Поделиться
HTML-код
  • Опубликовано: 15 авг 2017
  • When you are using JavaScript to traverse or manipulate the DOM it is very important to understand the difference between Nodes and Elements.
    There are many methods available in JavaScript which can fetch lists or individual Elements or Nodes. You need to know which one you are getting so you can handle it appropriately.
    The Node Types
    1 - Element Node
    3 - Text Node
    8 - Comment Nodes
    9 - Document Node
    10 - Document Type Node
    11 - Document Fragment Node

Комментарии • 35

  • @sanketrajgarhia5532
    @sanketrajgarhia5532 3 года назад +7

    Very concise and to the point, yet great coverage on the topic.

  • @Ernest_Ahorgah
    @Ernest_Ahorgah Год назад

    Perfect. You just simplified a whole month lectures in minutes.

  • @johnnygarces2216
    @johnnygarces2216 5 лет назад +9

    love how your dog is getting in on the JS action :)

  • @suprabond
    @suprabond 6 лет назад +7

    THANK YOU THANK YOU THANK YOU SO MUCH!!!!
    I'm watching a lot of your videos and I LOVE the way you explain evething so clear. All the things that seemed so difficult to understand now are making sense!
    You've just earned a loyal subscriber!

  • @beans923
    @beans923 3 года назад

    So, I finished watching an earlier video of yours, and wanted to delve deeper into one of the topics. I did a quick google search.. and lo and behold, another one of your videos popped right up! Spoiler: It was this one, and it answered my questions expertly. Guess the only search bar I need is the one in your channel, haha. Thank you for the wealth of knowledge you are sharing with us Steve, people like you make the world a better place :)

  • @ramapinnimty
    @ramapinnimty 4 года назад +2

    Loads of love. Thank you so much. I wish there was a functionality to like the video MORE THAN ONCE... You got a subscriber mate. I'm going to binge-watch your content.

  • @sasayaki
    @sasayaki 6 лет назад +3

    I wanted to thank you for making these videos. I'm taking an online web dev course and was having trouble planning out an assignment that had to be done. After watching your DOM manipulation videos I was finally able to get moving and got a good code review. I feel like things are starting to make more sense now.

  • @mortimetalhead
    @mortimetalhead 3 года назад +1

    Thank you so much, your explanation is so simple and understandable! You're giving a lot of examples which many others don't.

  • @tinpham6413
    @tinpham6413 3 года назад

    Im sharing your channel with my friends. Honestly you are the best at explain. Very clear. That have been a month when I learning at your channel. I have been improved a lot

  • @ajithmoni1712
    @ajithmoni1712 Год назад

    Excellent! Thank you for the following takeways for me.
    A Element is a type of node. Text and Comment nodes are not element nodes.
    The Parent of a node is always an element node.

  • @SharronV
    @SharronV 4 года назад

    I am entirely grateful for your videos. Your explanation is beyond outstanding!!

  • @rotrose7531
    @rotrose7531 4 года назад

    Thank you very much for explaining these fundamentals thoroughly. It helps us a lot.

  • @anoopvasudevan
    @anoopvasudevan 4 года назад

    That was very useful ! Thank you

  • @retroprime7244
    @retroprime7244 2 года назад

    Thank you

  • @anurajms
    @anurajms 2 года назад

    thank you

  • @ewertonal
    @ewertonal 5 лет назад

    Loved it, man! Thank you!

  • @codekracked2377
    @codekracked2377 4 года назад

    really useful video

  • @rujutabatavia3456
    @rujutabatavia3456 3 года назад

    AMAZINGGG!!

  • @colekedz9413
    @colekedz9413 4 года назад

    you said that only element nodes can be parents but aren't Document nodes a parent of element nodes?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  4 года назад

      Yes, documents can be parents but they are not nodes.

    • @CatholicaTV
      @CatholicaTV 3 года назад

      @@SteveGriffith-Prof3ssorSt3v3 Great vid Steve! But a quick question from your reply here: “Document” is listed as a node type (number 10) in your video here. So what do you mean when you say that documents are not nodes? How can there be a document node type if that is so? Thank you in advance!

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  3 года назад +1

      @@CatholicaTV document is a type of node. It's not a text or element node, but it is a node.

    • @CatholicaTV
      @CatholicaTV 3 года назад +1

      @@SteveGriffith-Prof3ssorSt3v3 Thank you

  • @kirthiramakrishna393
    @kirthiramakrishna393 2 года назад

    All elements are Nodes.. but not all Nodes are elements..

  • @Mynameisez
    @Mynameisez 2 года назад

    this just got me more confused lmao

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  2 года назад +2

      All elements are nodes but not all nodes are elements. Just like all apples are fruit but not all fruit are apples.

  • @natb007
    @natb007 8 месяцев назад

    Merci !

  • @yarik83men51
    @yarik83men51 4 года назад

    +++

  • @natb007
    @natb007 8 месяцев назад

    Merci !

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  8 месяцев назад +1

      Thank you very much! ❤️ 🙏😀

    • @natb007
      @natb007 8 месяцев назад

      @@SteveGriffith-Prof3ssorSt3v3 I have to thank you for the great content!