xhtml-1.1

How can I get the WordPress language_attributes function to return valid XHTML 1.1?

二次信任 提交于 2019-12-24 07:35:56
问题 I have a WordPress template that contains the following element: <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes('xhtml'); ?>> This returns: <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en-US"> Unfortunately the "lang" attribute is invalid XHTML 1.1 - and the client would like this level of validation. WordPress' general-template.php file contains the following code: if ( get_option('html_type') == 'text/html' || $doctype == 'html' )

Microdata in XHTML 1.1: there is no attribute “itemprop”

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 13:35:58
问题 I added Microdata to the product pages of my site. That leads to some errors. One of these errors is the following: there is no attribute "itemprop" The error is related to this source code line: <div itemprop="offers" itemscope="" itemtype="http://schema.org/Offer"> My Doctype is as follows: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> How would it be possible to make the page W3C compliant when keeping the same Doctype? 回答1: Microdata can

Why isn't my document validating as XHTML 1.1 STRICT?

痞子三分冷 提交于 2019-12-01 17:24:47
问题 While target="_blank" is deprecated, why is the W3C validator not giving an error about this ? You can paste and check this code int the validator: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <p> <a href="http://www.stackoverflow.com" title="New window will open" target="