Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which browsers support HTML SHORTTAGs?

Tags:

html

shorttags

Which browsers (historic or current versions) support any of the HTML/SGML SHORTTAG constructs?

Have any "widely" used browsers ever supported SHORTTAGS in any way? (IE6 I'm looking at you.)

SHORTTAG Example:

<p<a href="/">first part of the text</> second part

Got curious after reading an answer demonstrating difficult to parse "valid" HTML.

Tested my self on IE 7, Google Chrome 17, Firefox 11. None of which seemed to support them.

  • http://www.w3.org/QA/2007/10/shorttags.html
  • http://www.w3.org/TR/html401/appendix/notes.html#h-B.3.7
  • https://stackoverflow.com/a/702222/107152
like image 595
Qtax Avatar asked Feb 28 '12 11:02

Qtax


People also ask

Is the site tag supported by all browsers?

HTML5 is now compatible with all popular browsers (Chrome, Firefox, Safari, IE9, and Opera) and with the introduction of DOCTYPE, it is even possible to have a few HTML features in older versions of Internet Explorer too.

Which element is not supported by HTML5?

Some attributes from HTML4 are no longer allowed in HTML5 at all and they have been removed completely. img and iframe. caption, iframe, img, input, object, legend, table, hr, div, h1, h2, h3, h4, h5, h6, p, col, colgroup, tbody, td, tfoot, th, thead and tr. table, tr, td, th and body.


1 Answers

No major Browser supports tags like

</>

cause feature like this hinders/hampers "omissibility" which is far more important and useful feature for most SGML languages.

If you omit a single closing tag in language+browser that support "SHORTTAGS" the whole structure might be damaged.

Empty elements in SGML, HTML, XML, and XHTML:

"In HTML, starting from the very first specification (HTML 2.0), up to and including HTML 4.01, both the omissibility features and the minimizability features have been "on". But while omissibility is supported by Web browsers, though with several bugs, minimization features were not implemented in browsers."

like image 180
Boris D. Teoharov Avatar answered Sep 28 '22 07:09

Boris D. Teoharov