-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
Description
The example DTD used for tests declares:
<!ELEMENT html (head, body)>
In other words, an html element must contain both a head and a body, in that specific order (NOTE: this used to be a requirement in HTML 4.01, but is actually no longer required in HTML5).
The generated (incorrect) code is:
public interface HtmlContents
{
}
public interface HtmlContents0 extends HtmlContents
{
- HeadElement<HtmlContents0> head();
} public interface HtmlContents1 extends HtmlContents
{
- BodyElement<HtmlContents1> body();
}This is incorrect, and will actually not allow creation of an html element.
The correct code is:
public interface HtmlContents
{
}
public interface HtmlContents0 extends HtmlContents
{
+ HeadElement<HtmlContents1> head();
} public interface HtmlContents1 extends HtmlContents
{
+ BodyElement<HtmlContents> body();
}Reactions are currently unavailable