Linting fails if <dfn> content has `a`, `e`, `i` or `o` as start character
Closed this issue · 4 comments
inikulin commented
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?
zcorpan commented
This is intended to catch something like
A <dfn>apple</dfn> is a fruit.
zcorpan commented
So you likely want to use "an" instead of "a". I suppose the error message could be improved.
inikulin commented
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
inikulin commented
My bad, figured it out =) More comprehensive error message will be definitely helpful.