Why does each browser interpret / format badly formatted HTML differently from the rest?

1

This week I came across a bug on a system. This system was developed in Asp Web Forms and on a given page has a input that is as hidden .

When I made a Post, I noticed that in Chrome and Firefox the value of this input was not being sent in request and IE was sent.

When I looked at the code, I noticed something strange about this input , the tag was not being closed, thus:

<input type="hidden" name="id" value="<% response.Write(vID) %>"

Notice that a > is missing. In every browser I tested, IE, Chrome and Firefox, the generated HTML is different from the others.

Chrome:

Firefox:

IE:

    
asked by anonymous 16.11.2017 / 13:18

1 answer

1

Each browser has its engine, which interprets HTML, Javascript, Css. The bad thing about this (or not) is that each browser will / can present your site in a different way. This error that commented is still not as glaring as issues of alignment that sometimes make us pluck the hair. Mainly in IE (The difference ...)

Search engines will see that there are many differences between them, and that this is even a major concern in systems that must run with cross-browser features ...

    
16.11.2017 / 14:27