Sha256: 5ed73b917fd12850d704636c009e25752fb1e05c23902d414d6a9bc6121651c7
Contents?: true
Size: 385 Bytes
Versions: 261
Compression:
Stored size: 385 Bytes
Contents
// Check for 'default' names, which are given to reset and submit buttons let nodeName = node.nodeName.toUpperCase(); let type = (node.getAttribute('type') || '').toLowerCase(); let label = node.getAttribute('value'); if (label) { this.data({ messageKey: 'has-label' }); } if (nodeName === 'INPUT' && ['submit', 'reset'].includes(type)) { return label === null; } return false;
Version data entries
261 entries across 261 versions & 1 rubygems