- [Instructor] I want to go over two special properties…of the node class, the nodeType…and nodeName.…Now the nodeType is a property that…represents the type of node…and it returns an integer value assigned…to a particular type of node.…This type of node is also the read-only property,…which means that you cannot change its value.…Now the other one the nodeName property…is one that would return the name of…a current node that you're trying to select.…This is also a read-only property,…which means you cannot change its value.…
Now these two nodes are really interesting,…they're really important, because…sometimes you want to use them to get…a certain type of node or get their values…to make a certain decision based on the type of…node that you want to select.…Every object in the DOM is a node…and so it turns out that there are about…12 different types of nodes and there used to be more,…but many of them are now deprecated and they're low in use.…So the question is how do you find out what they are…and what they are called?…
Author
Released
8/14/2017- What is the DOM?
- Working with properties, objects, and methods
- Traversing the DOM tree
- Manipulating elements with JavaScript
- Adding, appending, and deleting nodes with JavaScript
- Selecting content in the DOM with jQuery
- Updating the DOM tree with jQuery or AngularJS
- Making live updates for content
- Understanding React's virtual DOM approach
Skill Level Intermediate
Duration
Views
Related Courses
-
JavaScript: Enhancing the DOM
with Ray Villalobos2h 3m Intermediate -
jQuery Essential Training
with Joe Marini3h 37m Beginner
-
Introduction
-
Welcome1m
-
What you should know6m 9s
-
Using the exercise files1m 42s
-
-
1. The DOM Tree
-
Developer tools7m 12s
-
What is the DOM?5m 18s
-
The DOM tree5m 59s
-
The Node interface10m 50s
-
The Document object12m 8s
-
The Document methods10m 27s
-
Element objects10m 24s
-
Modifying text in the DOM9m 16s
-
Event objects11m 54s
-
Window object6m 56s
-
CSS properties and the DOM13m 50s
-
Traversing the DOM tree10m 18s
-
-
2. Manipulate the DOM with JavaScript
-
Updating content in place4m 16s
-
3. jQuery and the DOM
-
jQuery application structure15m 12s
-
Selecting content in the DOM10m 9s
-
-
4. AngularJS and the DOM
-
Angular application structure12m 15s
-
Updating the DOM tree10m 25s
-
From the DOM to directives11m 56s
-
-
5. The React Virtual DOM
-
React application structure10m 50s
-
Encapsulating code in components20m 43s
-
Live updates for content15m 57s
-
-
Conclusion
-
Next steps42s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: nodeType and nodeName properties