001// Copyright 2006, 2008, 2011, 2013 The Apache Software Foundation
002//
003// Licensed under the Apache License, Version 2.0 (the "License");
004// you may not use this file except in compliance with the License.
005// You may obtain a copy of the License at
006//
007//     http://www.apache.org/licenses/LICENSE-2.0
008//
009// Unless required by applicable law or agreed to in writing, software
010// distributed under the License is distributed on an "AS IS" BASIS,
011// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
012// See the License for the specific language governing permissions and
013// limitations under the License.
014
015package org.apache.tapestry5.dom;
016
017/**
018 * Part of a {@link MarkupModel}, used to define how end tags are handled when the {@link Document} in rendered out as a
019 * text stream.
020 */
021public enum EndTagStyle
022{
023    /**
024     * Require an end tag always. This is the default for most elements in HTML.
025     */
026    REQUIRE,
027    /**
028     * Require an end tag, but abbreviate it if the element has no children. This is the only value that should be used
029     * in XML documents, but {@link org.apache.tapestry5.dom.DefaultMarkupModel} forces most tags to use {@link
030     * #REQUIRE} for semi-obscure browser compatibility issues.
031     */
032    ABBREVIATE,
033    
034    /**
035     * No end tags for HTML5 compatibility.
036     */
037    VOID
038}