Get rid of “Bad value X-XRDS-Location for attribute http-equiv on XHTML element meta.” in XHTML5 validation

后端 未结 2 1184
孤街浪徒
孤街浪徒 2020-12-22 11:37

I have an XHTML 5 page served with application/xhtml+xml which I want to get to validate, but the validator gives me trouble in its validation results:

Line          


        
相关标签:
2条回答
  • 2020-12-22 12:26

    http://www.w3.org/TR/html-markup/meta.html says:

    Changes in HTML5

    Although previous versions of HTML allowed the http-equiv attribute on the meta element to have any number of possible values, the http-equiv attribute is now restricted to only the specific values described in this reference. Also, the new charset attribute is now allowed.

    So, yes, it is not allowed anymore.

    0 讨论(0)
  • 2020-12-22 12:31

    In (X)HTML5, you may only use http-equiv values that are

    • defined in the HTML5 spec, or
    • registered in the WHATWG wiki page "PragmaExtensions".

    If you think X-XRDS-Location would be a useful value, you’d have to register it.

    0 讨论(0)
提交回复
热议问题