text: 
  
    /**
     * Use `Polymer.IronValidatableBehavior` to implement an element that validates user input.
     *
     * ### Accessibility
     *
     * Changing the `invalid` property, either manually or by calling `validate()` will update the
     * `aria-invalid` attribute.
     *
     * @demo demo/index.html
     * @polymerBehavior
     */
    Polymer.IronValidatableBehavior = {
  
      properties: {
  
        /**
         * Namespace for this validator.
         */
        validatorType: {
          type: String,
          value: 'validator'
        },
  
        /**
         * Name of the validator to use.
         */
        validator: {
          type: String
        },
  
        /**
         * True if the last call to `validate` is invalid.
         */
        invalid: {
          notify: true,
          reflectToAttribute: true,
          type: Boolean,
          value: false
        },
  
        _validatorMeta: {
          type: Object
        }
  
      },
  
      observers: [
        '_invalidChanged(invalid)'
      ],
  
      get _validator() {
        return this._validatorMeta && this._validatorMeta.byKey(this.validator);
      },
  
      ready: function() {
        this._validatorMeta = new Polymer.IronMeta({type: this.validatorType});
      },
  
      _invalidChanged: function() {
        if (this.invalid) {
          this.setAttribute('aria-invalid', 'true');
        } else {
          this.removeAttribute('aria-invalid');
        }
      },
  
      /**
       * @return {boolean} True if the validator `validator` exists.
       */
      hasValidator: function() {
        return this._validator != null;
      },
  
      /**
       * Returns true if the `value` is valid, and updates `invalid`. If you want
       * your element to have custom validation logic, do not override this method;
       * override `_getValidity(value)` instead.
  
       * @param {Object} value The value to be validated. By default, it is passed
       * to the validator's `validate()` function, if a validator is set.
       * @return {boolean} True if `value` is valid.
       */
      validate: function(value) {
        this.invalid = !this._getValidity(value);
        return !this.invalid;
      },
  
      /**
       * Returns true if `value` is valid.  By default, it is passed
       * to the validator's `validate()` function, if a validator is set. You
       * should override this method if you want to implement custom validity
       * logic for your element.
       *
       * @param {Object} value The value to be validated.
       * @return {boolean} True if `value` is valid.
       */
  
      _getValidity: function(value) {
        if (this.hasValidator()) {
          return this._validator.validate(value);
        }
        return true;
      }
    };
  
  