maqetta/maqetta — Issue #1622: Don't hardcode attributes in HTMLModel.js
Author: aerwin
Created: 2012-01-20 21:03:55+00:00
State: open

Opening based on @jhpedemonte comment on **HTMLModel.js** in the review of this commit: [https://github.com/maqetta/maqetta/commit/513030772447082e4a8bfff5c8931a080d53bd9b]

```javascript
@@ -849,7 +849,7 @@ davinci.html.HTMLAttribute.prototype.getText = function(context) {
849	849
if (this.noPersist && !context.includeNoPersist)
850	850
return "";
851	851
var s=this.name;
852
- var bool = {checked: 1, selected: 1, disabled: 1, readonly: 1, multiple: 1, ismap: 1};
852
+ var bool = {checked: 1, selected: 1, disabled: 1, readonly: 1, multiple: 1, ismap: 1, autofocus: 1, autoplay: 1, controls: 1, formnovalidate: 1, loop: 1, muted: 1, required: 1};
```

```
Why do we need these here anyway? I don't think we should hardcode attributes at all. Maybe the model can pull from widget metadata?

Please open a bug on M6 to track this.

@waynevicknair
```