# ember/template-no-quoteless-attributes 💼 This rule is enabled in the 📋 `template-lint-migration` [config](https://github.com/ember-cli/eslint-plugin-ember#-configurations). 🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix). In HTML, all attribute values are considered strings, regardless of whether they are quoted or not. The following two examples are _identical_ from the perspective of the browser: ```html
``` This fact makes the following HTML very confusing: ```html ``` In this case, the simple _presence_ of the `disabled` attribute means that the `` is disabled and setting the value to `false` doesn't do the obvious thing. This is just _one_ (of many) cases where the default "string" based parsing of attributes in HTML can trip folks up. This rule attempts to make this situation _slightly_ better by at least ensuring that all attribute values are quoted. This obviously doesn't fix the :troll:y nature of HTML here but it does ensure that you still **see** the quotes (which should hopefully help remind you that these are strings and not values). ## Examples This rule **forbids** the following (note that `someValue` could have been intended either as a string or expression): ```html
``` This rule **allows** the following: ```html
``` ```hbs
``` ## References - [HTML spec/attributes](https://html.spec.whatwg.org/multipage/dom.html#attributes)