local-name

We’d love to hear your thoughts on the next set of proposals for the JavaScript language. You can find a description of the proposals here.
Please take two minutes to fill out our short survey.

The local-name function returns a string representing the local name of the first node in a given node-set.

Syntax

local-name( [node-set] )

Parameters

node-set (optional)

The local name of the first node in this node-set will be returned. If this argument is omitted, the current context node will be used.

Return value

A string.

Description

Specifications

Gecko support

Supported.