Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Attribute value uses wrong case character Error in eclipse

I'm getting the following error in Eclipse juno:

Attribute value (POST) uses wrong case character

in the following line inside one of my HTML files:

<form action="http://allteamz.us5.list-manage.com/subscribe/post"
    method="POST" id="mc-embedded-subscribe-form">

Is there a way to tell eclipse to "ignore" this error? Tried a few things but nothing seems to be working..

like image 441
user665156 Avatar asked Dec 04 '22 10:12

user665156


2 Answers

Go to Windows>>Preferences>>Web>>HTML Files>>Validation. A list should be shown and there should exist a title in bold called "Attributes". Selecting "Ignore" for the option "Attribute value using wrong case character" should solve it.

like image 165
rasilva Avatar answered Jan 30 '23 19:01

rasilva


According to W3Schools the allowed values for the method attribute in a form element are only 'get' and 'post', lower case, so I think a better solution is change to lower case. This is strange to me because everywhere else these methods seem to be capitalized.

like image 32
snakedog Avatar answered Jan 30 '23 19:01

snakedog