Does W3C no longer support polyglot layout?

W3C has stopped supporting polyglot layout. So should I convert my site to use regular HTML5 instead of XHTML? How will they abandon this concept on existing sites? I want to have valid markup, and if this code conflicts with what is standard, I will have to remove it.

+4
source share
1 answer

As usual, more errors in XHTML comments without any true understanding of what it is.

  • XHTML uses an XML parser.
  • HTML uses an HTML parser.

  • XML- , .
  • HTML , .

, . PHP , isset. ? input , , . PHP, , .

, , Safari . XML, ( Firefox) , , , , ( Firefox ). ? ; .

, HTML5, . XHTML5, HTML5, XML. ( id ), .

, IE8 XHTML ( XML), IE8. , , - "" , XHTML, , :

<?php
if (stristr($_SERVER['HTTP_ACCEPT'],'application/xhtml+xml'))
{
 header('Content-Type: application/xhtml+xml');
 echo '<?xml version="1.0" encoding="UTF-8"?>'."\n";
}
?>

, IE8 quirks, XML, 2016 , , , .

XHTML5, , . , , -, , , , .


XML, <br>, , . , (, *.php;*.css;*.xml) , , , . , Wine, Linux grep, . , , , , !

+3

All Articles