cancel
Showing results for 
Search instead for 
Did you mean: 

HTML errors in magento file

SOLVED

HTML errors in magento file

Hello, I am new to magento forum.

I have a question about HTML error in magento file.

I have to remove all errors to install speed up extension.

I tried W3C validation service and the site showed the following message;

Bad value for attribute action on element from Must be non-empty.

<form action="" method="POST" id="product_addtocart_form_from_popup">

I found this code is in popup.phtml, and it is not in my theme's file.

How can I fix it?

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions

Re: HTML errors in magento file

Thank you for your answer.

I could get rid of the HTML error by adding (action="#")

 

Thank you very much!

View solution in original post

4 REPLIES 4

Re: HTML errors in magento file

Here's an explanation what can be inside from action attribute:

http://www.w3schools.com/tags/att_form_action.asp

It definitely can't be empty, even though pretty much all browsers use current script as a failover.

Tanel Raja

Re: HTML errors in magento file

Thank you for your answer.

I understand what kind of code should be added.

And don't you know what code I should add?

I couldn't figure it out by searching magento information on the web.

Isn't popup.phtml magento original file?

Re: HTML errors in magento file

Now that I think about it, I'm pretty sure some JS script will set the action for this form. Meanwhile to get rid of validator nagging just put # there (action="#").

Tanel Raja

Re: HTML errors in magento file

Thank you for your answer.

I could get rid of the HTML error by adding (action="#")

 

Thank you very much!