From 6c5b37f54ff95cf282994599f7985646a9ebcd99 Mon Sep 17 00:00:00 2001 From: Yongsheng Zhu Date: Thu, 9 Feb 2017 21:00:01 +0800 Subject: [PATCH] Fix #35: bring the legacy .nodeName for interface Attr. Changes in Attr. .nodeName is still being used. It's an alias of .name attribute. --- sections/nodes.include | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sections/nodes.include b/sections/nodes.include index 0368e7966..1894d19b5 100644 --- a/sections/nodes.include +++ b/sections/nodes.include @@ -2388,6 +2388,7 @@ interface Attr { readonly attribute DOMString? prefix; readonly attribute DOMString localName; readonly attribute DOMString name; + readonly attribute DOMString nodeName; // for legacy use, alias of .name attribute DOMString value; readonly attribute boolean specified; // useless; always returns true @@ -2410,7 +2411,7 @@ interface Attr {

The localName attribute must return the local name. -

The name attribute's getter must return the name. +

The name attribute's getter and nodeName attribute's getter must return the name.

The value attribute's getter and textContent attribute's getter must both return the value.