whatwg/html-build

Linting fails if <dfn> content has `a`, `e`, `i` or `o` as start character

Closed this issue · 4 comments

If the first character in <dfn> content is a, e, i or o then linting fails with Possible article problems error. I guess this is due to [aeio] part of this regexp. I wonder it it's intentional and, if so why it's required?

This is intended to catch something like

A <dfn>apple</dfn> is a fruit.

So you likely want to use "an" instead of "a". I suppose the error message could be improved.

I have <dfn data-x="parse-error-end-tag-with-attributes">end-tag-with-attributes</dfn>. It's an ID, so adding article is not a case

My bad, figured it out =) More comprehensive error message will be definitely helpful.