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`. + :::