From a42cb20975133537fb24c4b68dfe99350663ca0e Mon Sep 17 00:00:00 2001 From: Steven Orvell Date: Mon, 6 Feb 2017 15:46:55 -0800 Subject: [PATCH] Add comment. --- src/lib/annotations/annotations.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/annotations/annotations.html b/src/lib/annotations/annotations.html index e7408a23df..a1046afc67 100644 --- a/src/lib/annotations/annotations.html +++ b/src/lib/annotations/annotations.html @@ -369,10 +369,13 @@ if (node.localName === 'input' && origName === 'value') { node.setAttribute(origName, ''); } - // Remove annotation + // Support `disable-upgrade` feature by maintaining this + // attribute so that it can be found on an element at + // `createdCallback` time. if (disableUpgradeEnabled && origName === 'disable-upgrade$') { node.setAttribute(name, ''); } + // Remove annotation node.removeAttribute(origName); // Case hackery: attributes are lower-case, but bind targets // (properties) are case sensitive. Gambit is to map dash-case to