# ViewNormalizedConsumables

interface

Object describing all features of a view element that could be consumed and converted individually. This is a normalized form of [`Consumables`](module_engine_conversion_viewconsumable-Consumables.md) generated from the view Element.

Example element:

```html
<a class="foo bar" style="color: red; margin: 5px" href="https://ckeditor.com" rel="nofollow noreferrer" target="_blank">
```

The `ViewNormalizedConsumables` would include:

```json
{
	name: true,
	attributes: [
		[ "class", "foo" ],
		[ "class", "bar" ],
		[ "style", "color" ],
		[ "style", "margin-top" ],
		[ "style", "margin-right" ],
		[ "style", "margin-bottom" ],
		[ "style", "margin-left" ],
	[ "style", "margin" ],
		[ "href" ],
		[ "rel", "nofollow" ],
		[ "rel", "noreferrer" ],
		[ "target" ]
	]
}
```

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/element.ts#L1374)

<a id="properties">

## Properties

<a id="member-attributes">

### `attributes: Array<[ string, string? ]>`

Array of tuples - an attribute name, and optional token for tokenized attributes. Note that there could be multiple entries for the same attribute with different tokens (class names or style properties).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/element.ts#L1386)

<a id="member-name">

### `name: boolean`

If set to `true` element's name will be included in a consumable. Depending on the usage context it would be added as consumable, tested for being available for consume or consumed.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/element.ts#L1380)

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
