Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 // Copyright 2006, 2008 The Apache Software Foundation
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
 // You may obtain a copy of the License at
 // Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry5.dom;

Part of a MarkupModel, used to define how end tags are handled when the Document in rendered out as a text stream.
public enum EndTagStyle

Omit the end tag. Examples for HTML include the input, br and img elements.

Tapestry always renders well formed XML markup (even when a DOCTYPE is not present, or the content type is traditional text/html).
Require an end tag always. This is the default for most elements in HTML.
Require an end tag, but abbreviate it if the element has no children. This is the only value that should be used in XML documents, but DefaultMarkupModel forces most tags to use REQUIRE for semi-obscure browser compatibility issues.
New to GrepCode? Check out our FAQ X