Skip to content

Commit 8b3b088

Browse files
committed
Types page: Add missing opening <p> and remove data-lang="html"
1 parent 9bf395a commit 8b3b088

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pages/Types.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -608,13 +608,12 @@ <h2 id="Element"> Element </h2>
608608
<h2 id="Text"> Text </h2>
609609
<p>Text is a node of the Document Object Model (DOM) that represents the textual content of an <a href="#Element">element</a> or an attribute. Consider the following code:
610610
</p>
611-
<pre><code data-lang="html">&lt;p id=&quot;target&quot;&gt;&lt;b&gt;Hello&lt;/b&gt; world&lt;/p&gt;
612-
</code></pre>
611+
<pre><code>&lt;p id="target"&gt;&lt;b&gt;Hello&lt;/b&gt; world&lt;/p&gt;</code></pre>
613612
<p>If you retrieve the children of the paragraph of the example as follows:
614613
</p>
615614
<pre><code data-lang="javascript">var children = document.getElementById( "target" ).childNodes;
616615
</code></pre>
617-
you obtain two children. The first one is the <a href="#Element">element</a> representing the <code>b</code> tag. The second child is a text node containing the string " world".
616+
<p>you obtain two children. The first one is the <a href="#Element">element</a> representing the <code>b</code> tag. The second child is a text node containing the string " world".
618617
</p>
619618
<h2 id="jQuery"> jQuery </h2>
620619
<p>A jQuery object contains a collection of Document Object Model (DOM) elements that have been created from an HTML string or selected from a document. Since jQuery methods often use CSS selectors to match elements from a document, the set of elements in a jQuery object is often called a set of "matched elements" or "selected elements".

0 commit comments

Comments
 (0)