Skip to content

no-deprecated-html-element-is

Reports an is attribute on a plain HTML element that does not begin with vue: (<tr is="row">). Only in .vue files, where a plain is would make a customized built-in element.

In Vue 3 a plain is on an HTML element creates a native customized built-in element, not a Vue component.

To fix, write is="vue:row", or use <component :is>.

Reported
<template>
...
<p slot="head" is="row"></p><slot name="x" />
...
<tr is="vue:row" v-model:title="t" @keyup.enter="k"></tr>
</template>
angular:
lint:
rules:
no-deprecated-html-element-is: warn # off, warn (default), error
html:
lint:
rules:
no-deprecated-html-element-is: warn # off, warn (default), error
svelte:
lint:
rules:
no-deprecated-html-element-is: warn # off, warn (default), error
vue:
lint:
rules:
no-deprecated-html-element-is: warn # off, warn (default), error

Enabled by the presets: html/eslint-plugin-vue-recommended.

Suppress one line with sudsy-disable-next-line no-deprecated-html-element-is in a comment of the file’s language.

The same check in other tools; Sudsy reports what each upstream rule reports.

Tool Rule Match
eslint-plugin-vue no-deprecated-html-element-is full