Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What is the behavior of a Web browser when it receives an invalid element?

user-image
Question added by Zaid Rabab'a , Software Development Team Leader , Al-Safa Co. Ltd.
Date Posted: 2013/02/06
marwa khalaf
by marwa khalaf , .Net Developer , Sands National Academy

The behavior of a Web browser when it receives an invalid element depends on the browser that you use to browse your application.
Most of the browsers ignore the invalid element; whereas, some of them display the invalid elements on the page.

Deleted user
by Deleted user

Except Chrome, which fix its best possibility, all other MOSTLY ignore it.
You can use W3C validator http://validator.w3.org/

Furqan Ul Karim
by Furqan Ul Karim , Senior Delivery Manager (Contract) , Virgin Red

Well, Firefox ignores the invalid element but Internet explorer pops up an error message.
But this is not always a case as with xml issue firefox just shows the first line with error heading.
Most of the time it happens with xml or client side code(javascript, DOM, jquery)

Rani Alomari
by Rani Alomari , Full Stack .Net Developer , Jordan Center for Diseases Control (JCDC)

it will be canceled (treated as not exist)

More Questions Like This