尝试在 ASP 应用程序中使用 Https,`xmlns` 的 <html> 属性怎么样

Trying to use Https in an ASP Application, What about <html> attribute of `xmlns`

尝试在我的 ASP.Net 应用程序中使用 Https,随后 steps

xmlnshtml标签属性呢:

<html xmlns="http://www.w3.org/1999/xhtml">
...
</html>

url 是否也应该与 Https 一起使用?

赞:xmlns="https://www.w3.org/1999/xhtml"?

顺便问一下 - 这个 xml 命名空间(1999 年的)有更新吗?

保留 httpxmlns 属性定义默认命名空间。其值中的 http 是该标识符的重要组成部分。将其更改为 https 将引用浏览器无法理解的不同命名空间。这同样适用于其余部分,包括 1999 部分。

xmlns 属性给出了一个 IRI 或 URI,参见 XML namespace for details. It is just a convention to use a URL linking to information about the namespace. Typically, newer versions of the underlying specification (here XHTML 1.0) only ever get a new identifier if they are incompatible with previous versions. Even the specification for XHTML 1.1 published in 2010 uses the same namespace identifier(其中包含 1999)。

您可能还想看看通常与 HTML 和 XHTML 一起使用并被浏览器理解的 document type declarations。如果同时使用命名空间和文档类型,它们应该匹配。