%@ page language="java" %><%@ taglib uri="/WEB-INF/struts-i18n.tld" prefix="i18n" %> "> ]>
This document contains many elements with optional end tags, server-side tags and some
common illegal HTML constructs to demonstrate how they are interpreted by the parser.
First Column | Second Column | |||
---|---|---|---|---|
Cell 1 |
|
This is preformatted text whose formatting should not be altered.
This paragraph contains a comment. This text is a continuation of the paragraph before the one that is commented out.
paragraph within a list item
This text contains incorrectly nested formatting tags which is
quite commonly generated by HTML editors.
This section demonstrates the consequences of illegally nesting block-level elements
inside inline-level elements, which is a very common situation caused by the misuse
of FONT elements by HTML editors.
This paragraph starts inside
the Arial FONT element.
This section demonstrates the limitation of the library in distinguishing whether a tag is located inside another tag
when the document has not been entirely parsed via the Source.parseAllTags() method.
When the Source.parseAllTags() method hasn't been called, the H2 element in the following button's onclick attribute erroneously
terminates the current paragraph, and is also returned by tag search methods.
See parsing rule 2(i) in the documentation of the Tag
class for an explanation.
This anchor element demonstrates that a tag ending in />
is not considered an empty element tag if it has a name that requires an end tag. In this case the final '/' is included
in the href attribute value instead of being interpreted as the end of the tag.
This
section was generated by MS-Word and contains lots of non-standard HTML.
This paragraph has a dynamic id attribute
These checkboxes have dynamic code determining whether they are checked: checked="checked"<% } %>/> />
The following is Mason server code sampled from the Mason book, chapter 2, section 3.4.9:
<& menu &>
<&| /i18n/itext, lang => $lang &>
%# The bits in here will be available from $m->content in the /i18/text