add custom HTML tag, that can be empry

IDE marks unknown HTML tags. We can add custom tag. But is there way to mark custom html tags, that can be empty?

I have some template/forms engine.
i can have tag like
<my_input type="text" name="someinput" />
But tag like this is marked with information "empty tags doesn't work in some browsers".
Ofcourse there are some tags, that does not require separete closing tag, like <br /> <input... /> and some other.

is there way to tell IDE, that this tag can be empty and should not be marked as invalid for this reason?

0
1 comment

No way; I can only suggest suppressing the inspection for such tags:

<!--suppress CheckEmptyScriptTag -->
<my_input type="text" name="someinput" />
0

Please sign in to leave a comment.