creativecommons / creativecommons.org

Legacy legal code translations and general support issues
MIT License
156 stars 204 forks source link

[Bug] Proposed CC0 1.1 contains invalid encoding declaration #1213

Open Jayman2000 opened 3 years ago

Jayman2000 commented 3 years ago

Description

According to the HTML Standard, a meta element can have its http-equiv attribute set to content-type. In this situation, the http-equiv attribute is in the Encoding declaration state. The proposed CC0 1.1 has an http-equiv attribute that’s in the Encoding declaration state.

<meta http-equiv="content-type" content=
  "text/html; charset=utf-8" />

According to the HTML Standard, “The Encoding declaration state may be used in HTML documents, but elements with an http-equiv attribute in that state must not be used in XML documents.” The proposed CC0 1.1 is an XML document.

Reproduction

  1. Get a copy of the proposed CC0 1.1.
  2. Change its file extension to .xht or .xhtml.
  3. Try validating it.

Expectation

The page validates successfully.

Resolution

SamarthShukla17 commented 8 months ago

I would be interested in resolving this bug.