From 32d0b7a01c3c6c7eb0924679eb2c05cb15ca0694 Mon Sep 17 00:00:00 2001 From: bendtherules Date: Sat, 31 Oct 2020 10:51:42 +0530 Subject: [PATCH] element-properties - Simplify nodeType explanation --- docs/element-properties.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/element-properties.mdx b/docs/element-properties.mdx index 98961a0..46f3019 100644 --- a/docs/element-properties.mdx +++ b/docs/element-properties.mdx @@ -23,8 +23,8 @@ ele.tagName // "IMG" :::note Text nodes don't have `tagName` -Text nodes are not element, so they don't have any tagName. -To identify the type of node, use `.nodeType` - which returns `3` (same as `Node.TEXT_NODE`) for text nodes. +Text nodes are not element, so they don't have any tagName. To identify the type of node, use `.nodeType`. For text nodes, `nodeType` is `3`- same as the constant `Node.TEXT_NODE`. + :::