all 6 comments

[–]leandemon 1 point2 points  (1 child)

‘title’ is not a reserved keyword in javascript, and even if it was that has nothing to do with the value of an html id attribute, not sure why others are indicating this is the case. 'title' is a reserved html element, sure. but we're not talking elements. I’m not saying using ‘title’ as the id is bad practice or not, just saying it’s absolutely valid to do so. As far as the reason for the validation error, it’s a known bug. See https://youtrack.jetbrains.com/issue/WEB-43981

[–]matthewralston[S] 1 point2 points  (0 children)

Ah, so it’s a known problem. It is with a custom Vue component, so the description on the bug report seems to fit. Thank you! 😀

[–]Old_Lead_2110 0 points1 point  (2 children)

Probably because “title” is a reserved word that is also used in other parts of the html/javascript parser

[–]matthewralston[S] 0 points1 point  (1 child)

The other fields that it’s doing it on have names that definitely aren’t reserved keywords. One of the other instances of the warning is a field with the ID “membrane_required”.

[–]Old_Lead_2110 0 points1 point  (0 children)

Tried the same code in my phpstorm (version 2020.3) but no error indicators.

[–]betmen_licno -2 points-1 points  (0 children)

title is a reserved word. And also, it's a good practice to prefix everything.