Change the DOCTYPE of the Domino generated HTML page

Source: Internet
Author: User

browsers have quirks modes (Quirks mode) and standard modes (standards mode). Quirks mode is designed to be compatible with older Web pages, simulating non-standard implementations of early browsers (such as IE5.5), while standard patterns are implemented as standard. The key to activating the different patterns is the DOCTYPE of the HTML page.

The default DOCTYPE generated by Domino is still:

<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >

It will trigger quirks mode in all current browsers, and the problem resolution needs to be changed to DOCTYPE. Here are the corresponding instructions and how to modify them:

/******************* This part is from what's new in notes/Domino 7.0.2*********** start ***************/

user-defined HTML tag Attributes
user-defined attributes can now is added to the <HTML> Tag generated By the Web engine. When the field $ $HTMLTagAttributes was present on a form, its contents was placed in T He attribute list of the <HTML> tag. For more information, see "Additional html-related field Attributes" In these release notes

Custom <! Doctype> Declaration
Users can now specify a custom <! doctype> declaration on a per form basis. When the field$ $HTMLFrontMatter are present on a form, its contents'll be placed in the generated HTML, ahead of The tag, and the Web server would not generate anything there automatically. For more information, see "Additional html-related field Attributes" in these release notes

/******************* This part is excerpted from what's new in Notes/domino 7.0.2*********** end ***************/

You can see that the new version provides a form field to control doctype. However, this domain is only supported in the Domino7.02 version, and in the previous version only parameters can be added in Notes.ini: Dominocompletedoctype resolved.
Specific parameter values:
0 = <! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >

1 = <! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "title=" Http://www.w3.org/TR/html4/loose.dtd ">" > Http://www.w3.org/TR/html4/loose.dtd ">

2 = <! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01//en" "title=" Http://www.w3.org/TR/html4/strict.dtd ">" >http:// Www.w3.org/TR/html4/strict.dtd ">

We just want to trigger the standard mode, so we'll use 1. However, because it is modified by Notes.ini, it will definitely affect all forms, and you can use the $ $HTMLFrontMatter field to change individual forms.

Change the DOCTYPE of the Domino generated HTML page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.