You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2007/08/27 05:10:34 UTC
[jira] Updated: (STR-2357) Addition of tag.
[ https://issues.apache.org/struts/browse/STR-2357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Benedict updated STR-2357:
-------------------------------
Affects Version/s: (was: Future)
Summary: Addition of <HTML:DOCTYPE /> tag. (was: [taglib] Addition of <HTML:DOCTYPE /> tag.)
> Addition of <HTML:DOCTYPE /> tag.
> ---------------------------------
>
> Key: STR-2357
> URL: https://issues.apache.org/struts/browse/STR-2357
> Project: Struts 1
> Issue Type: Improvement
> Components: Taglibs
> Environment: Operating System: Windows 2000
> Platform: PC
> Reporter: Graham Reeds
> Priority: Minor
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.