<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Node Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/node/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/node/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:30:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>error in ./resources/assets/sass/app.scss</title>
		<link>https://www.scmgalaxy.com/tutorials/error-in-resources-assets-sass-app-scss/</link>
					<comments>https://www.scmgalaxy.com/tutorials/error-in-resources-assets-sass-app-scss/#respond</comments>
		
		<dc:creator><![CDATA[Ashwani Kumar]]></dc:creator>
		<pubDate>Sat, 07 Aug 2021 12:05:32 +0000</pubDate>
				<category><![CDATA[Node js]]></category>
		<category><![CDATA[dart-sass]]></category>
		<category><![CDATA[error in ./resources/assets/sass/app.scss]]></category>
		<category><![CDATA[Node]]></category>
		<category><![CDATA[node-sass]]></category>
		<category><![CDATA[node-sass not found]]></category>
		<category><![CDATA[nodejs]]></category>
		<category><![CDATA[not found]]></category>
		<category><![CDATA[npm]]></category>
		<category><![CDATA[npm err!]]></category>
		<category><![CDATA[NPM error]]></category>
		<category><![CDATA[npm run development]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7586</guid>

					<description><![CDATA[<p>If you are getting this error (error in ./resources/assets/sass/app.scss) in Node module please follow some steps which is have mentioned [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/error-in-resources-assets-sass-app-scss/">error in ./resources/assets/sass/app.scss</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">If you are getting this error (error in ./resources/assets/sass/app.scss) in Node module please follow some steps which is have mentioned in the following</p>



<h4 class="wp-block-heading">Error:-</h4>



<p class="wp-block-paragraph">Many of you get this error when you did not change anything in <code>app.scss</code>, but when I run <code>npm run watch</code> I get the following errors:</p>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-cyan-blue-color"> error  in ./resources/sass/app.scss                                                                      

Module build failed (from ./node_modules/sass-loader/lib/loader.js):                                      
Unsupported operation: Cannot extract a file path from a URI with a fragment component                    

@ ./resources/sass/app.scss 2:14-254                                                                     

    Asset      Size   Chunks             Chunk Names                                                     
/js/app.js  2.46 MiB  /js/app  &#91;emitted]  /js/app                                                         

ERROR in ./resources/sass/app.scss                                                                        
Module build failed (from ./node_modules/css-loader/index.js):                                            
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/lib/loader.js):                    

undefined                                                                                                 
      ^                                                                                                  
      Join(null, "variables"): part 0 was null, but part 1 was not.                                       
@import 'variables';                                                                                      
        ^^^^^^^^^^^                                                                                       
  stdin 2:9  root stylesheet                                                                              
      in C:\Users\TAQI VAHEED\Desktop\#Coding\resPro\resources\sass\app.scss (line 2, column 9)           
    at runLoaders (C:\Users\TAQI VAHEED\Desktop\#Coding\resPro\node_modules\webpack\lib\NormalModule.js:30
    at C:\Users\TAQI VAHEED\Desktop\#Coding\resPro\node_modules\loader-runner\lib\LoaderRunner.js:364:11  
    at C:\Users\TAQI VAHEED\Desktop\#Coding\resPro\node_modules\loader-runner\lib\LoaderRunner.js:230:18  
    at context.callback (C:\Users\TAQI VAHEED\Desktop\#Coding\resPro\node_modules\loader-runner\lib\Loader
13)</span></code></pre>



<h4 class="wp-block-heading">Solution:-</h4>



<p class="wp-block-paragraph">The main issue which we have found that is related to<code><span class="has-inline-color has-vivid-red-color"> dart-sass</span></code> being used instead of <code><span class="has-inline-color has-vivid-red-color">node-sass</span></code> with <code>laravel</code></p>



<p class="wp-block-paragraph">You have to just follow one step:-</p>



<p class="wp-block-paragraph"><strong>Step 1:-</strong> You have to run this Command and all the things will solve .</p>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-red-color">npm install node-sass</span></code></pre>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/error-in-resources-assets-sass-app-scss/">error in ./resources/assets/sass/app.scss</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/error-in-resources-assets-sass-app-scss/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>&#8216;cross-env&#8217; is not recognized as an internal or external command, operable program or batch file.</title>
		<link>https://www.scmgalaxy.com/tutorials/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/</link>
					<comments>https://www.scmgalaxy.com/tutorials/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/#respond</comments>
		
		<dc:creator><![CDATA[Ashwani Kumar]]></dc:creator>
		<pubDate>Sat, 07 Aug 2021 11:48:32 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cross-env]]></category>
		<category><![CDATA[Node]]></category>
		<category><![CDATA[node error]]></category>
		<category><![CDATA[nodejs]]></category>
		<category><![CDATA[not recognized]]></category>
		<category><![CDATA[npm]]></category>
		<category><![CDATA[npm err!]]></category>
		<category><![CDATA[NPM error]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7571</guid>

					<description><![CDATA[<p>Hey if you are getting some error like (&#8216;cross-env&#8217; is not recognized as an internal or external command, operable program [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/">&#8216;cross-env&#8217; is not recognized as an internal or external command, operable program or batch file.</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Hey if  you are getting some error like (&#8216;cross-env&#8217; is not recognized as an internal or external command, operable program or batch file.) in your Node please follow the steps which i have mentioned in following:-</p>



<p class="wp-block-paragraph"><strong>You need to make cross-env working globally instead of having it in the project.</strong></p>



<p class="wp-block-paragraph"><strong>Step 1:-</strong> remove <strong><code>node_modules</code></strong> folder</p>



<p class="wp-block-paragraph"><strong>Step 2:-</strong>  run this Command so that you <strong>cross-env </strong>work globally.</p>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-red-color">npm install --global cross-env</span></code></pre>



<p class="wp-block-paragraph"><strong>Step 3:-</strong> Remove &#8220;cross-env&#8221;: &#8220;5.0.1&#8221; from the devDependencies section of the package.json file. You may actually skip this step and keep package.json. If you&#8217;d want.</p>



<p class="wp-block-paragraph"><strong>Step 4:-</strong> Then run this command.</p>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-red-color">npm install --no-bin-links</span></code></pre>



<p class="wp-block-paragraph"><strong>Step 5:-</strong> After this finally you can run your main command </p>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-red-color">npm run dev</span></code></pre>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/">&#8216;cross-env&#8217; is not recognized as an internal or external command, operable program or batch file.</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Insert( ) Method in JavaScript</title>
		<link>https://www.scmgalaxy.com/tutorials/insert-method-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/insert-method-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Sat, 07 Aug 2021 11:26:17 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Method]]></category>
		<category><![CDATA[Node]]></category>
		<category><![CDATA[property]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7559</guid>

					<description><![CDATA[<p>The insertBefore() method is used to insert a node before the reference node as a child of a specified parent [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/insert-method-in-javascript/">Insert( ) Method in JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">The insertBefore() method is used to insert a node before the reference node as a child of a specified parent node. If the given child is a reference to an existing node in the document, insertBefore( ) moves it from its current position to the new position.</p>



<p class="wp-block-paragraph">If referenceNode is null, the newNode is inserted at the end of the list of child nodes.</p>



<p class="wp-block-paragraph"><strong>Syntax: &#8211;</strong></p>



<script src="https://gist.github.com/vijaypk376/a8298d0e359b1d1b1e718cf63793bc7f.js"></script>



<h2 class="wp-block-heading">parentNode.insertBefore(newNode, referenceNode);</h2>



<script src="https://gist.github.com/vijaypk376/ad655b559e730ed2300ceed76d4e1bf9.js"></script>



<h2 class="wp-block-heading"><strong>insertAdjacentElement ( ) Method</strong></h2>



<p class="wp-block-paragraph">The insertAdjacentElement() method inserts the specified element into a given specified position. It returns the element that was inserted, or null if the insertion failed.</p>



<p class="wp-block-paragraph"><strong>Syntax:-</strong></p>



<script src="https://gist.github.com/vijaypk376/b81040638a96e27743810fb3590d4ce3.js"></script>



<p class="wp-block-paragraph">element &#8211; The element to be inserted into the tree.<br>The beforebegin and afterend positions work only if the node is in a tree and has an element parent.</p>



<h2 class="wp-block-heading"><strong>insertAdjacentHTML ( ) Method</strong></h2>



<p class="wp-block-paragraph">The insertAdjacentHTML() method is used to insert a text as HTML (parses the specified text as HTML or XML) into a specified position.</p>



<p class="wp-block-paragraph"><strong>Syntax:-</strong></p>



<script src="https://gist.github.com/vijaypk376/7f1fe12c71264b4b67ee4f958933e865.js"></script>



<p class="wp-block-paragraph">text &#8211; The string to be parsed as HTML or XML and inserted into the tree.<br>It is recommended you not use insertAdjacentHTML when inserting plain text instead, use the node.textContent property</p>



<h2 class="wp-block-heading"><strong>insertAdjacentText ( ) Method</strong></h2>



<p class="wp-block-paragraph">The insertAdjacentText() method inserts the specified element into a specified position.</p>



<p class="wp-block-paragraph"><strong>Syntax:-</strong></p>



<script src="https://gist.github.com/vijaypk376/3e9c3ac5b9540dcf7161a60d932571d5.js"></script>



<p class="wp-block-paragraph">text – The text which is about to insert.<br>The beforebegin and afterend positions work only if the node is in a tree and has an element parent.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/insert-method-in-javascript/">Insert( ) Method in JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/insert-method-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How is Node.js created with JavaScript?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-is-node-js-created-with-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-is-node-js-created-with-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Sat, 07 Aug 2021 09:51:39 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Creating Nodes]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Method]]></category>
		<category><![CDATA[Node]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7557</guid>

					<description><![CDATA[<p>Creating Nodes createElement(element_name) createTextNode(string) createComment(string) createDocumentFragment( ) Create Element Node The createElement(element_name) method is used to create the HTML element [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-is-node-js-created-with-javascript/">How is Node.js created with JavaScript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>Creating Nodes</strong></h2>



<ul class="wp-block-list"><li><strong>createElement(element_name)</strong></li><li><strong>createTextNode(string)</strong></li><li><strong>createComment(string)</strong></li><li><strong>createDocumentFragment( )</strong></li></ul>



<h2 class="wp-block-heading"><strong>Create Element Node</strong></h2>



<p class="wp-block-paragraph">The createElement(element_name) method is used to create the HTML element specified by tagName, or an HTMLUnknownElement if tagName isn&#8217;t recognized. It returns the New Element.</p>



<p class="wp-block-paragraph"><strong>Syntax:-<br>createElement(element_name)</strong></p>



<script src="https://gist.github.com/vijaypk376/34c15626162fac8ba62b0f573c4ed81c.js"></script>



<h2 class="wp-block-heading"><strong>Create Text Node</strong></h2>



<p class="wp-block-paragraph">The createTextNode(string) method is used to create the Text Node with the specified text (string).</p>



<p class="wp-block-paragraph"><strong>Syntax:-<br>createTextNode(string)</strong></p>



<script src="https://gist.github.com/vijaypk376/97708d1cbec9cf2cd98339c07b9a5f15.js"></script>



<h2 class="wp-block-heading"><strong>Create Comment Node</strong></h2>



<p class="wp-block-paragraph">The createComment(string) method is used to create the Comment Node with the specified string and returns it.</p>



<p class="wp-block-paragraph"><strong>Syntax:-<br>createComment (string)</strong></p>



<script src="https://gist.github.com/vijaypk376/e4df6fc09f92d126d7ec4e3a0c13a552.js"></script>



<h2 class="wp-block-heading"><strong>Document Fragment</strong></h2>



<ul class="wp-block-list"><li>The DocumentFragment interface represents a minimal document object that has no parent.</li><li>A common use for Document Fragment is to create one, assemble a DOM subtree within it, then append or insert the fragment into the DOM using Node interface methods such as appendChild( ) or insertBefore( ).</li><li>Document fragment isn&#8217;t part of the active document tree structure, changes made to the fragment don&#8217;t affect the document.</li><li>Doing this moves the fragment&#8217;s nodes into the DOM, leaving behind an empty Document Fragment.</li><li>An empty Document Fragment can be created using the document.createDocumentFragment() method.</li></ul>



<h2 class="wp-block-heading"><strong>Create Document Fragment</strong></h2>



<p class="wp-block-paragraph">The createDocumentFragment() method creates a imaginary Node object, with all the properties and methods of the Node object.</p>



<script src="https://gist.github.com/vijaypk376/261c28528a9b7721cfa74889aec2e8ba.js"></script>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-is-node-js-created-with-javascript/">How is Node.js created with JavaScript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-is-node-js-created-with-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Traverse The DOM In JavaScript?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-traverse-the-dom-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-traverse-the-dom-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Sat, 07 Aug 2021 09:22:38 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[DOM Traversal]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Node]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7538</guid>

					<description><![CDATA[<p>DOM Traversal parentNode – Returns parent node parentElement – Returns parent element node childNodes – Returns collection of an element’s [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-traverse-the-dom-in-javascript/">How To Traverse The DOM In JavaScript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>DOM Traversal</strong></h2>



<ul class="wp-block-list"><li><strong>parentNode – Returns parent node</strong></li><li><strong>parentElement – Returns parent element node</strong></li><li><strong>childNodes – Returns collection of an element’s child nodes (including text and comment nodes)</strong></li><li><strong>children – Returns a collection of an element’s child element node (do not include text and comment nodes)</strong></li><li><strong>firstChild – Returns first child node of an element (it can be text or comment node)</strong></li><li><strong>firstElementChild – Returns first child element node of an element</strong></li><li><strong>lastChild &#8211; Returns last child node of an element (it can be text or comment node)</strong></li><li><strong>lastElementChild – Returns last child element node of an element</strong></li><li><strong>previousSibling &#8211; Returns previous node of the same level (it can be text or comment node)</strong></li><li><strong>previousElementSibling – Returns previous element node of the same level</strong></li><li><strong>nextSibling &#8211; Returns next node of same level (it can be text or comment node)</strong></li><li><strong>nextElementSibling – Returns next element of same level</strong></li></ul>



<h2 class="wp-block-heading"><strong>parentNode and parentElement</strong></h2>



<p class="wp-block-paragraph">The parentNode read-only property returns the parent of the specified node in the DOM tree.</p>



<p class="wp-block-paragraph">The parentElement property returns the parent element of the specified element. If the parent node is not an element node, it returns null.</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="631" height="296" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/element-node-document-2.png" alt="" class="wp-image-7552" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/element-node-document-2.png 631w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/element-node-document-2-300x141.png 300w" sizes="(max-width: 631px) 100vw, 631px" /></figure>



<h2 class="wp-block-heading"><strong>childNodes</strong></h2>



<p class="wp-block-paragraph">The childNode<strong>s</strong> read-only property returns a live NodeList of child nodes of the given element where the first child node is assigned index 0. childNodes includes all child nodes, including non-element nodes like text and comment nodes.</p>



<ul class="wp-block-list"><li>Whitespace inside elements is considered as text, and text is considered as nodes.</li><li>Any whitespace will create a #text node, from a single space to multiple spaces, returns, tabs, and so on.</li><li>You can use the length property of the NodeList object to determine the number of child nodes, then you can loop through all child nodes and extract the other info.</li></ul>



<h2 class="wp-block-heading"><strong>children</strong></h2>



<p class="wp-block-paragraph">The children property returns collection of child elements of the given element where the first child is assigned index 0. children include only element nodes (no whitespace, text node, and comment node).</p>



<ul class="wp-block-list"><li>You can use the length property of the NodeList object to determine the number of child nodes, then you can loop through all child nodes and extract the other info.</li></ul>



<h2 class="wp-block-heading"><strong>firstChild</strong></h2>



<p class="wp-block-paragraph">The firstChild property returns the node&#8217;s first child in the tree, or null if the node has no children. If the node is a Document, it returns the first node in the list of its direct children. It includes a text node and a comment node.</p>



<ul class="wp-block-list"><li>Whitespace inside elements is considered as text, and text is considered as nodes.</li><li>Any whitespace will create a #text node, from a single space to multiple spaces, returns, tabs, and so on.</li></ul>



<h2 class="wp-block-heading"><strong>firstElementChild</strong></h2>



<p class="wp-block-paragraph">The firstElementChild property returns the element&#8217;s first child element node in the tree, or null if the node has no children element. It ignores text node and comment node or any whitespaces.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="631" height="296" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/element-node-document-1.png" alt="" class="wp-image-7550" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/element-node-document-1.png 631w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/element-node-document-1-300x141.png 300w" sizes="(max-width: 631px) 100vw, 631px" /></figure>



<h2 class="wp-block-heading"><strong>lastChild</strong></h2>



<p class="wp-block-paragraph">The lastChild read-only property returns the last child of the node. If its parent is an element, then the child is generally an element node, a text node, or a comment node. It returns null if there are no child elements.</p>



<ul class="wp-block-list"><li>Whitespace inside elements is considered as text, and text is considered as nodes.</li><li>Any whitespace will create a #text node, from a single space to multiple spaces, returns, tabs, and so on.</li></ul>



<h2 class="wp-block-heading"><strong>lastElementChild</strong></h2>



<p class="wp-block-paragraph">The lastElementChild property returns the element&#8217;s last child element node in the tree, or null if the node has no children element. It ignores text node and comment node or any whitespaces.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="631" height="296" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/element-node-document.png" alt="" class="wp-image-7547" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/element-node-document.png 631w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/element-node-document-300x141.png 300w" sizes="(max-width: 631px) 100vw, 631px" /></figure>



<h2 class="wp-block-heading"><strong>previousSibling</strong></h2>



<p class="wp-block-paragraph">The previousSibling read-only property returns the node immediately preceding the specified one in its parent&#8217;s childNodes list, or null if the specified node is the first in that list. It includes text node and comment node or any whitespace.</p>



<h2 class="wp-block-heading"><strong>previousElementSibling</strong></h2>



<p class="wp-block-paragraph">The previousElementSibling property returns the element node immediately preceding the specified one in its parent&#8217;s node list, or null if the specified node is the first in that list. It ignores the text node and comment node or any whitespace.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="635" height="292" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/element-node-2.png" alt="" class="wp-image-7545" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/element-node-2.png 635w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/element-node-2-300x138.png 300w" sizes="auto, (max-width: 635px) 100vw, 635px" /></figure>



<h2 class="wp-block-heading"><strong>nextSibling</strong></h2>



<p class="wp-block-paragraph">The nextSibling read-only property returns the node immediately following the specified one in its parent&#8217;s childNodes list, or null if the specified node is the last node in that list. It includes text node and comment node or any whitespace.</p>



<h2 class="wp-block-heading"><strong>nextElementSibling</strong></h2>



<p class="wp-block-paragraph">The nextElementSibling read-only property returns the element node immediately following the specified one in its parent&#8217;s node list, or null if the specified node is the last node in that list. It ignores the text node and comment node or any whitespace.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="639" height="307" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/element-node.png" alt="" class="wp-image-7544" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/element-node.png 639w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/element-node-300x144.png 300w" sizes="auto, (max-width: 639px) 100vw, 639px" /></figure>



<h2 class="wp-block-heading"><strong>ownerDocument</strong></h2>



<p class="wp-block-paragraph">The ownerDocument read-only property returns the top-level document object for this node. In HTML, the HTML document itself is always the ownerDocument of an element.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-traverse-the-dom-in-javascript/">How To Traverse The DOM In JavaScript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-traverse-the-dom-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Use CSS Selector in javascript?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-do-i-manipulate-css-with-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-do-i-manipulate-css-with-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Fri, 06 Aug 2021 13:21:20 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Method]]></category>
		<category><![CDATA[Node]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7496</guid>

					<description><![CDATA[<p>querySelector(“CSS Selector”) The method querySelector() returns the first Element match of the specified selector or group of selectors. If no [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-do-i-manipulate-css-with-javascript/">How to Use CSS Selector in javascript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">querySelector(“CSS Selector”)</h2>



<p class="wp-block-paragraph">The method querySelector() returns the first Element match of the specified selector or group of selectors. If no matches are found, null is returned.</p>



<script src="https://gist.github.com/vijaypk376/7b6dcc12059a06ca91a7a198abbb33b8.js"></script>



<h2 class="wp-block-heading">querySelectorAll(“CSS Selector”)</h2>



<p class="wp-block-paragraph">The method querySelectorAll() returns a static (not live) NodeList representing a list of the document&#8217;s elements that match the specified group of selectors.</p>



<ul class="wp-block-list"><li>The NodeList object represents a collection of nodes. The nodes can be accessed by index numbers. The index starts at 0.</li><li>You can use the length property of the NodeList object to determine the number of elements that matches the specified selector, then you can loop through all elements and extract the info you want.</li><li>If the specified selectors include a CSS pseudo-element, the returned list is always empty.</li></ul>



<h2 class="wp-block-heading">querySelectorAll(“CSS Selector”)</h2>



<script src="https://gist.github.com/vijaypk376/3b8463fa85c1e0627333fe6b9fb14982.js"></script>



<h2 class="wp-block-heading">querySelectorAll(“CSS Selector”)</h2>



<h3 class="wp-block-heading"><strong>More specific</strong></h3>



<script src="https://gist.github.com/vijaypk376/02371374e63bdae9c7b62b6b9222cd59.js"></script>



<h2 class="wp-block-heading">querySelectorAll(“CSS Selector”)</h2>



<ul class="wp-block-list"><li><strong>Length Property</strong></li></ul>



<script src="https://gist.github.com/vijaypk376/8ea435f4ad00cc6a95237ee6de1044af.js"></script>



<ul class="wp-block-list"><li><strong>Loop</strong></li></ul>



<script src="https://gist.github.com/vijaypk376/3d60ff3937c269ab4f754fceace8032b.js"></script>



<h2 class="wp-block-heading">innerHTML</h2>



<p class="wp-block-paragraph">The innerHTML property defines the HTML content.</p>



<script src="https://gist.github.com/vijaypk376/fefebf38d0413f8fea6bfbf65276af1e.js"></script>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-do-i-manipulate-css-with-javascript/">How to Use CSS Selector in javascript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-do-i-manipulate-css-with-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the Purpose of the Node Object Property in JavaScript</title>
		<link>https://www.scmgalaxy.com/tutorials/what-is-node-js-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/what-is-node-js-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Fri, 06 Aug 2021 12:54:06 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Node]]></category>
		<category><![CDATA[Node Object]]></category>
		<category><![CDATA[nodeType]]></category>
		<category><![CDATA[nodeValue]]></category>
		<category><![CDATA[properties]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7506</guid>

					<description><![CDATA[<p>Properties of Node Object The Node object represents a single node in the document tree. nodeName nodeValue nodeType textContent parentNode [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-node-js-in-javascript/">What is the Purpose of the Node Object Property in JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>Properties of Node Object</strong></h2>



<p class="wp-block-paragraph">The Node object represents a single node in the document tree.</p>



<ul class="wp-block-list"><li><strong>nodeName</strong></li><li><strong>nodeValue</strong></li><li><strong>nodeType</strong></li><li><strong>textContent</strong></li><li><strong>parentNode</strong></li><li><strong>childNodes</strong></li><li><strong>firstChild</strong></li><li><strong>lastChild</strong></li><li><strong>previousSibling</strong></li><li><strong>nextSibling</strong></li></ul>



<h2 class="wp-block-heading"><strong>nodeName</strong></h2>



<p class="wp-block-paragraph">The nodeName read-only property returns the name of the current node as a string.</p>



<ul class="wp-block-list"><li>CDATASection                &#8220;#cdata-section&#8221;</li><li>Comment                       &#8220;#comment&#8221;</li><li>Document                      &#8220;#document&#8221;</li><li>DocumentFragment       &#8220;#document-fragment&#8221;</li><li>DocumentType                The value of DocumentType.name</li><li>Element                           The value of Element.tagName</li><li>Entity                               The entity name</li><li>EntityReference               The name of entity reference</li><li>Notation                          The notation name</li><li>ProcessingInstruction     The value of ProcessingInstruction.target</li><li>Text                                  &#8220;#text&#8221;</li></ul>



<h2 class="wp-block-heading"><strong>nodeValue</strong></h2>



<p class="wp-block-paragraph">The nodeValue property returns or sets the value of the current node.</p>



<ul class="wp-block-list"><li>CDATASection                     content of the CDATA Section</li><li>Comment                            content of the comment</li><li>Document                           null</li><li>DocumentFragment            null</li><li>DocumentType                    null</li><li>Element                               null</li><li>NamedNodeMap                null</li><li>EntityReference                   null</li><li>Notation                              null</li><li>ProcessingInstruction         entire content excluding the target</li><li>Text                                     content of the text node</li></ul>



<h2 class="wp-block-heading"><strong>nodeType</strong></h2>



<p class="wp-block-paragraph">The read-only Node.nodeType property represents the type of the node.</p>



<figure class="wp-block-table"><table><tbody><tr><td class="has-text-align-left" data-align="left"><strong>Constant</strong></td><td class="has-text-align-center" data-align="center"><strong>Node Type</strong></td><td><strong>Description</strong></td></tr><tr><td class="has-text-align-left" data-align="left">Node.ELEMENT_NODE</td><td class="has-text-align-center" data-align="center">1</td><td>An element such as &lt;h1&gt; or &lt;div&gt;</td></tr><tr><td class="has-text-align-left" data-align="left">Node.TEXT_NODE</td><td class="has-text-align-center" data-align="center">3</td><td>The actual Text of Element or Attribute ex: &#8211; “Hello”</td></tr><tr><td class="has-text-align-left" data-align="left">Node.PROCESSING_INSTRUCTION_NODE</td><td class="has-text-align-center" data-align="center">7</td><td>An instruction to a parser on aspect of the document &lt;?xml version=“1.0”?&gt;</td></tr><tr><td class="has-text-align-left" data-align="left">Node.COMMENT_NODE</td><td class="has-text-align-center" data-align="center">8</td><td>A comment such as &lt; &#8211; &#8211; Something &#8211; &#8211; &gt;</td></tr><tr><td class="has-text-align-left" data-align="left">Node.DOCUMENT_NODE</td><td class="has-text-align-center" data-align="center">9</td><td>A Document Node</td></tr><tr><td class="has-text-align-left" data-align="left">Node.DOCUMENT_TYPE_NODE</td><td class="has-text-align-center" data-align="center">10</td><td>A doctype statement &lt;!DOCTYPE html&gt;</td></tr><tr><td class="has-text-align-left" data-align="left">Node.DOCUMENT_FRAGMENT_NODE</td><td class="has-text-align-center" data-align="center">11</td><td>A document fragment, which represents a lightweight structure to hold a collection of DOM nodes for manipulation or insertion.</td></tr></tbody></table></figure>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-node-js-in-javascript/">What is the Purpose of the Node Object Property in JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/what-is-node-js-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Access an Element in HTML DOM using JavaScript?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-access-an-element-in-html-dom-using-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-access-an-element-in-html-dom-using-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Fri, 06 Aug 2021 12:24:59 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Element Access Methods]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Node]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7489</guid>

					<description><![CDATA[<p>Element Access Methods Method Description document.getElementById(“ID”) Get the element with the specified ID document.getElementsByTagName(“Tag_Name&#8221;); Get all the specified element by [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-access-an-element-in-html-dom-using-javascript/">How to Access an Element in HTML DOM using JavaScript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>Element Access Methods</strong></h2>



<figure class="wp-block-table"><table><tbody><tr><td><strong>Method</strong></td><td><strong>Description</strong></td></tr><tr><td>document.getElementById(“ID”)</td><td>Get the element with the specified ID</td></tr><tr><td>document.getElementsByTagName(“Tag_Name&#8221;);</td><td>Get all the specified element by the Tag Name</td></tr><tr><td>document.getElementsByClassName(“Class_Name&#8221;);</td><td>Get all the specified element by the Class Name</td></tr><tr><td>document.querySelector(“CSS_Selector&#8221;);</td><td>It returns the first match of the passed selector string</td></tr><tr><td>document.querySelectorAll(&#8220;CSS_Selector&#8221;);</td><td>It returns a node list of DOM elements that match the query</td></tr></tbody></table></figure>



<h2 class="wp-block-heading">getElementById(“ID_Name”)</h2>



<p class="wp-block-paragraph">The method get<strong>E</strong>lement<strong>B</strong>y<strong>I</strong>d(“ID_Name”) returns an Element object representing the element whose id property matches the specified string. Since element IDs are required to be unique if specified, they&#8217;re a useful way to get access to a specific element quickly.</p>



<script src="https://gist.github.com/vijaypk376/6ddcfb35441e7833bc9eab2905a0f20c.js"></script>



<h2 class="wp-block-heading">getElementsByTagName(“Tag_Name”)</h2>



<p class="wp-block-paragraph">The method get<strong>E</strong>lements<strong>B</strong>y<strong>T</strong>ag<strong>N</strong>ame(“Tag_Name”) returns a live node list meaning that it updates itself with the DOM tree automatically, so modification of the DOM tree will be reflected in the returned collection. The returned Node List or Collection of Nodes can be accessed by index numbers starting with index 0.</p>



<ul class="wp-block-list"><li>This method accepts a string indicating the type of elements that be retrieved, a special value “ * ” returns all elements in the documents.</li><li>You can use the length property of the NodeList object to determine the number of elements with the specified tag name, then you can loop through all elements and extract the info you want.</li></ul>



<h2 class="wp-block-heading">getElementsByTagName(“Tag_Name”)</h2>



<script src="https://gist.github.com/vijaypk376/c4ec9fdfd468eda0c547fd9a74fb7aa4.js"></script>



<h2 class="wp-block-heading">getElementsByTagName(“Tag_Name”)</h2>



<h3 class="wp-block-heading"><strong>More specific</strong></h3>



<script src="https://gist.github.com/vijaypk376/beb049b4674e759296a1962317363db1.js"></script>



<h2 class="wp-block-heading">getElementsByTagName(“Tag_Name”)</h2>



<ul class="wp-block-list"><li><strong>Length Property</strong></li></ul>



<script src="https://gist.github.com/vijaypk376/3e235b9c309b2478a78618493f8ca8f9.js"></script>



<ul class="wp-block-list"><li><strong>Loop</strong></li></ul>



<script src="https://gist.github.com/vijaypk376/cd7e6ac24025066061affc0d6f8954f2.js"></script>



<h2 class="wp-block-heading">getElementsByClassName(“Class_Name”)</h2>



<p class="wp-block-paragraph">The Method getElementsByClassName() returns a live node list meaning that it updates itself with the DOM tree automatically, so modification of the DOM tree will be reflected in the returned collection. The returned Node List or Collection of Nodes can be accessed by index numbers starting with index 0.</p>



<p class="wp-block-paragraph">•This method accepts string indicating the class name of elements that be retrieved •</p>



<p class="wp-block-paragraph">We can also pass multiple class name. For matching, all the class names should match. •You can use the length property of the NodeList object to determine the number of elements with the specified class name, then you can loop through all elements and extract the info you want.</p>



<ul class="wp-block-list"><li>This method accepts string indicating the class name of elements that be retrieved</li><li>We can also pass multiple class name. For matching, all the class name should match.</li><li>You can use the length property of the NodeList object to determine the number of elements with the specified class name, then you can loop through all elements and extract the info you want.</li></ul>



<h2 class="wp-block-heading">getElementsByClassName(“Class_Name”)</h2>



<script src="https://gist.github.com/vijaypk376/fb2f06c98a6b2dc004f159ba5b0ccd25.js"></script>



<h2 class="wp-block-heading">getElementsByClassName(“Class_Name”)</h2>



<h3 class="wp-block-heading"><strong>More specific</strong></h3>



<script src="https://gist.github.com/vijaypk376/9014d51e812d909c9fd5fe8746735365.js"></script>



<h2 class="wp-block-heading">getElementsByClassName(“Class_Name”)</h2>



<ul class="wp-block-list"><li><strong>Length Property</strong></li></ul>



<script src="https://gist.github.com/vijaypk376/efc998b6f18351389c90af5f074475aa.js"></script>



<ul class="wp-block-list"><li><strong>Loop</strong></li></ul>



<script src="https://gist.github.com/vijaypk376/617c5755e99b6cf7272ee4cd5a79b905.js"></script>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-access-an-element-in-html-dom-using-javascript/">How to Access an Element in HTML DOM using JavaScript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-access-an-element-in-html-dom-using-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the use of the document object model in JavaScript?</title>
		<link>https://www.scmgalaxy.com/tutorials/what-is-the-use-of-the-document-object-model-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/what-is-the-use-of-the-document-object-model-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Fri, 06 Aug 2021 11:48:02 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[document object]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Node]]></category>
		<category><![CDATA[Node Relationship]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7483</guid>

					<description><![CDATA[<p>Document Object Model The Document Object Model (DOM) is an Application Programming Interface (API) for HTML and XML documents. With [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-the-use-of-the-document-object-model-in-javascript/">What is the use of the document object model in JavaScript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>Document Object Model</strong></h2>



<ul class="wp-block-list"><li>The Document Object Model (DOM) is an Application Programming Interface (API) for HTML and XML documents.</li><li>With the Document Object Model, programmers can create and build documents, navigate their structure, and add, modify, or delete elements and content.</li><li>The DOM is an object-oriented representation of the web page, which can be modified with a scripting language such as JavaScript.</li><li>The DOM model represents a document with a logical tree.</li><li>According to Document Object Model (DOM), every HTML-tag is an object. Nested tags are called “children” of the enclosing one. All operations on the DOM start with the document object. From it, we can access any node.</li><li>The Document Object Model can be used with any programming language.</li></ul>



<h2 class="wp-block-heading"><strong>DOM Levels</strong></h2>



<ul class="wp-block-list"><li>DOM Level 0 – This level supports the common document object collections – form[ ], image[ ], anchors[ ], links[ ] and applets[ ]. This is also known as classic or traditional JavaScript Object Model. • </li></ul>



<ul class="wp-block-list"><li>DOM Level 1- It provides the ability to manipulate all elements in a document through a common set of functions. In this level, all elements are exposed and parts of the page can be read and written to at all times. </li></ul>



<ul class="wp-block-list"><li> DOM Level 2 – It provides further access to page elements primarily related to CSS and focuses on combining Level 0 and Level 1 while adding improved support for working with XML documents.</li></ul>



<h2 class="wp-block-heading"><strong>DOM Levels</strong></h2>



<ul class="wp-block-list"><li>DOM Level 3 – Enhanced Level of Level 1 and Level 2 and added support for XPath and keyboard event handling.</li></ul>



<ul class="wp-block-list"><li>DOM Level 4 – Enhanced  year 2015</li></ul>



<h2 class="wp-block-heading"><strong>Categories of DOM</strong></h2>



<ul class="wp-block-list"><li>DOM Core – It specifies a generic model for viewing and manipulating a marked-up document as a tree structure.</li></ul>



<ul class="wp-block-list"><li>DOM HTML – It specifies an extension to the core DOM for use with HTML. This represents DOM Level 0 with capabilities for manipulating all of the HTML element objects.</li></ul>



<ul class="wp-block-list"><li>DOM CSS – It specifies the interfaces necessary to manipulate CSS rules programmatically.</li></ul>



<ul class="wp-block-list"><li>DOM Events – It adds event handling to the DOM.</li></ul>



<ul class="wp-block-list"><li>DOM XML – It specifies an extension to the Core Dom for use with XML.</li></ul>



<h2 class="wp-block-heading"><strong>Document Tree</strong></h2>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="600" height="300" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/document-tree.png" alt="" class="wp-image-7485" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/document-tree.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/document-tree-300x150.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="558" height="348" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/document-tree-code.png" alt="" class="wp-image-7486" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/document-tree-code.png 558w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/document-tree-code-300x187.png 300w" sizes="auto, (max-width: 558px) 100vw, 558px" /></figure>



<h2 class="wp-block-heading"><strong>DOM Node Types</strong></h2>



<figure class="wp-block-table"><table><tbody><tr><td><strong>Constant</strong></td><td class="has-text-align-center" data-align="center"><strong>Node Type</strong></td><td><strong>Description</strong></td></tr><tr><td>Node.ELEMENT_NODE</td><td class="has-text-align-center" data-align="center">1</td><td>An element such as &lt;h1> or &lt;div></td></tr><tr><td>Node.TEXT_NODE</td><td class="has-text-align-center" data-align="center">3</td><td>The actual Text of Element or Attribute ex: &#8211; “Hello”</td></tr><tr><td>Node.PROCESSING_INSTRUCTION_NODE</td><td class="has-text-align-center" data-align="center">7</td><td>An instruction to a parser on aspect of the document &lt;?xml version=“1.0”?></td></tr><tr><td>Node.COMMENT_NODE</td><td class="has-text-align-center" data-align="center">8</td><td>A comment such as &lt; &#8211; &#8211; Something &#8211; &#8211; ></td></tr><tr><td>Node.DOCUMENT_NODE</td><td class="has-text-align-center" data-align="center">9</td><td>A Document Node</td></tr><tr><td>Node.DOCUMENT_TYPE_NODE</td><td class="has-text-align-center" data-align="center">10</td><td>A doctype statement &lt;!DOCTYPE html></td></tr><tr><td>Node.DOCUMENT_FRAGMENT_NODE</td><td class="has-text-align-center" data-align="center">11</td><td>A document fragment, which represents a lightweight structure to hold a collection of DOM nodes for manipulation or insertion.</td></tr></tbody></table></figure>



<h2 class="wp-block-heading"><strong>Node Relationship</strong></h2>



<ul class="wp-block-list"><li><strong>Parent</strong></li><li><strong>Children</strong></li><li><strong>First Child</strong></li><li><strong>Previous Sibling</strong></li><li><strong>Next Sibling</strong></li><li><strong>Last child</strong></li></ul>



<h2 class="wp-block-heading"><strong>DOM Node Properties</strong></h2>



<figure class="wp-block-table"><table><tbody><tr><td class="has-text-align-center" data-align="center"><strong>Properties</strong></td><td><strong>Description</strong></td></tr><tr><td class="has-text-align-center" data-align="center">nodeName</td><td>Contains the name of the node</td></tr><tr><td class="has-text-align-center" data-align="center">nodeValue</td><td>Contains the value within the node; generally only applicable to text nodes</td></tr><tr><td class="has-text-align-center" data-align="center">nodeType</td><td>Holds a number corresponding to the type of node</td></tr><tr><td class="has-text-align-center" data-align="center">parentNode</td><td>Reference to the parent node of the element, if one exists</td></tr><tr><td class="has-text-align-center" data-align="center">childNodes</td><td>Access to the list of child nodes</td></tr><tr><td class="has-text-align-center" data-align="center">firstChild</td><td>Reference to the first child node of the element, if one exists</td></tr><tr><td class="has-text-align-center" data-align="center">lastChild</td><td>Points to the last child node of the element, if one exists</td></tr><tr><td class="has-text-align-center" data-align="center">previousSibling</td><td>Reference to the previous sibling of the node; for example, if its parent node has multiple children</td></tr><tr><td class="has-text-align-center" data-align="center">nextSibling</td><td>Reference to the next sibling of the node; for example, if its parent node has multiple children</td></tr><tr><td class="has-text-align-center" data-align="center">attributes</td><td>The list of the attributes for the element</td></tr><tr><td class="has-text-align-center" data-align="center">ownerDocument</td><td>Points to the HTML Document object in which the element is contained</td></tr></tbody></table></figure>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-the-use-of-the-document-object-model-in-javascript/">What is the use of the document object model in JavaScript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/what-is-the-use-of-the-document-object-model-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Bootstrap a Microsoft Windows node using Chef</title>
		<link>https://www.scmgalaxy.com/tutorials/bootstrap-a-microsoft-windows-node-using-chef/</link>
					<comments>https://www.scmgalaxy.com/tutorials/bootstrap-a-microsoft-windows-node-using-chef/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 21 Aug 2015 12:15:14 +0000</pubDate>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Bootstrap]]></category>
		<category><![CDATA[Bootstrap Microsoft Windows Node]]></category>
		<category><![CDATA[Bootstrap Node]]></category>
		<category><![CDATA[Chef]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Node]]></category>
		<category><![CDATA[Node using Chef]]></category>
		<category><![CDATA[Windows Server Node]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2015/08/21/bootstrap-a-microsoft-windows-node-using-chef/</guid>

					<description><![CDATA[<p>Bootstrap a Microsoft Windows node, the &#8220;knife windows&#8221; plugin is required,  More info about knife window tool, http://docs.chef.io/plugin_knife_windows.html knife bootstrap [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/bootstrap-a-microsoft-windows-node-using-chef/">Bootstrap a Microsoft Windows node using Chef</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3392 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/08/bootstrap-a-microsoft-windo.png" alt="" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/08/bootstrap-a-microsoft-windo.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/08/bootstrap-a-microsoft-windo-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>Bootstrap a Microsoft Windows node, the &#8220;knife windows&#8221; plugin is required, </strong></p>
<p>More info about knife window tool, http://docs.chef.io/plugin_knife_windows.html</p>
<p>knife bootstrap windows winrm uvo1eak9a5geec05f7z.vm.cld.sr &#8211;winrm-user administrator &#8211;winrm-password &#8216;Rx4m7W4PQu&#8217; &#8211;node-name firefox_win &#8211;run-list &#8216;recipe[snc_firefox]&#8217;</p>
<p>nife bootstrap windows winrm uvo1eak9a5geec05f7z.vm.cld.sr -x administrator -P Rx4m7W4PQu</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/bootstrap-a-microsoft-windows-node-using-chef/">Bootstrap a Microsoft Windows node using Chef</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/bootstrap-a-microsoft-windows-node-using-chef/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
