DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=33423>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=33423 Summary: Addition of <HTML:DOCTYPE /> tag. Product: Struts Version: Unknown Platform: PC OS/Version: Windows 2000 Status: NEW Severity: enhancement Priority: P2 Component: Unknown AssignedTo: dev@struts.apache.org ReportedBy: [EMAIL PROTECTED] I would like to see a tag (or have it automatically added as part of the <html:html> tag) that would add the DOCTYPE automatically to the document. Since the jsp file will eventually be passed as html to the browser and the (x)html specs require a doctype [1, 2] then it seems prudent to have a tag that will do the job automatically. Like I mentioned there are two possible ways of dealing with this. The first is to add one automatically as part of the <html:html> tag, and add a couple of new attributes for the tag or have a new tag entirely for the purpose of doctype. Personally I fall into the second camp. My suggestion for the format of the tag would be this (sorry if there is a formal way of describing this): Tag: doctype Attributes: * type : Required. This lists the type of markup (regular html or xhtml) * version : Optional. The level of markup. Important for deprecation of tags and refinements. Possible values for html are 3.2, 4.0, 4.01 (html default) and for xhtml is 1.0 (default) and 1.1. * level : Optional: This determines what level the user would like. The possible values are strict (default), trans, and frames. In html 4.01 the transitional maps to the loose.dtd. Examples: <html:doctype type="xhtml" version="1.1" level="strict" /> <html:doctype type="html" version="4.01" level="trans" />+ <html:doctype type="html" version="4.0" level="frames" /> [1] http://www.w3.org/TR/html401/struct/global.html [2] http://www.w3.org/TR/xhtml1/#docconf ------ Personally, I say author to meet the standards body regulations, or don't bother authoring at all. No point otherwise. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]