TypeError: value.includes is not a function

Rule attr-quotes crashes when using style auto and dynamic values.

Reduced test-case

<p dynamic-foo="'"></p>

Configuration

Default

Expected result

No error.

Actual result

Validator crashed when parsing "/path/to/file"
Caught exception:
  TypeError: value.includes is not a function
      at AttrQuotes.resolveQuotemark (...\node_modules\html-validate\build\rules\attr-quotes.js:53:26)

Version

  • html-validate: 0.25.0