|
Re: Why says no start tag on "</p>"? [message #211903 is a reply to message #211890] |
Mon, 07 April 2008 06:26 |
|
David Karr wrote:
> I downloaded dojo 1.1.0 and imported it into an Eclipse project. I
> noticed that several of the files had red marks on them. For example,
> here is the body element from one of the files:
>
> <body class="tundra">
>
> <h1 class="testTitle">dojo._Animation test:</h1>
>
> <p>
> <div class="dijitInline" id="theNode">Test</div>
> </p>
>
> </body>
>
> When I view this in Eclipse, there is a red mark on the "</p>" line,
> saying "No start tag (<p>)".
>
> The DOCTYPE is:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
>
> Is this error valid somehow?
It's not well explained in the error text, but it's because the
strict.dtd indicates that the "div" tag is not a valid child of a
"p" tag.
--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
Powered by
FUDForum. Page generated in 0.03347 seconds