Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Dom\ImplementationDom\NamespaceInfo>
^DOMLast updated: Mon, 26 Oct 2026

The Dom\NamedNodeMap class

(PHP 8 >= 8.4.0)

Introduction

Represents the set of attributes on an element. This is the modern, spec-compliant equivalent of DOMNamedNodeMap.

Class synopsis

class Dom\NamedNodeMap implements IteratorAggregate, Countable {
/* Properties */
public readonly int $length;
/* Methods */
/* Not documented yet */
}

Properties

length

The number of attributes.

Changelog

Version Description
8.5.0 Cloning a Dom\NamedNodeMap object now fails.

Notes

Note:

The DOM extension uses UTF-8 encoding when working with methods or properties. The parser methods auto-detect the encoding or allow the caller to specify an encoding.


<Dom\ImplementationDom\NamespaceInfo>
^DOMLast updated: Mon, 26 Oct 2026