domino自动生成的doctype在有些项目中已经过时,可能会导致某些JS失效。
修改doctype的方法有两种,一种是使用$$HTMLFrontMatter内置域,以下是文档介绍
HTML front matter information for a form is stored in a Computed for Display text field that is hidden from Web browsers, named$$HTMLFrontMatter.
Specify the value of this field inside quotation marks, and include the entire statement. For example, this code specifies if an HTML document should be viewed with strict or transitional encoding, depending on the value of a field on the form named Mode.
@If(Mode="Strict";
"<!DOCTYPE HTML PUBLIC" + @NewLine +
" \"-//W3C//DTD HTML 4.01\"" + @NewLine +
" \"http://www.w3.org/TR/REC-html40.strict.dtd\">" + @NewLine;
"")
具体我们如果需要更改一个表单的doctype就可以用这种方法,在表单内创建一个域,名字为$$HTMLFrontMatter,然后缺省值为@Return("<你需要doctype>"),这样就可以了~
如果你需要修改所有的,也可以修改notes.ini文件,这个方法是在网上看到的,我没有使用,应该也是有效的。方法如下:
DominoCompleteDoctype = 0 或 1 或 2
0 = !DOCTYPE HTML PUBLIC “W3CDTD HTML 4.01 TransitionaEN”
1 = !DOCTYPE HTML PUBLIC “-W3DTD HTML 4.01 TransitionalEN” “http://www.w3.org/TR/html4/loose.dtd”
2 = !DOCTYPE HTML PUBLIC “W3CDTD HTML 4.0EN” “http://www.w3.org/TR/html4/strict.dtd“