facebook

Odd error messages from syntax checker.

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #257218 Reply

    The following HTML code generates an error for the final ending paragraph tag indicating that there is no start tag. Unless my lack of sleep has truly rendered me cross-eyed, I do believe there is a matching start and end tag for that final paragraph tag. This isn’t the only instance where I’m getting false alerts for unmatched tags.

    
    <p>In a clear voice call out the names of the dogs in the running order that are 
    getting ready for the ring. 
    <ul>
    <li> "Buffy on the line!"</li>
    <li> "Fluffy on deck!"</li>
    <li> "Scruffy in the hole!"</li>
    <li> "Clyde in the abyss!"</li>
    </ul>
    This will serve to communicate to the Assistant Scribe and Scribe what dog to expect in 
    the ring and in what order and avoids having delays in running because the Scribe has the 
    wrong sheet!
    </p>
    
    #257285 Reply

    Riyad Kalla
    Member

    Hmm, what does the whole page look like? I’ll copy paste it into my install locally and see what is going on (if you can’t share that info, try and create a small sample HTML page that exhibits the same problem)

    #280960 Reply

    Charles Roth
    Member

    I see this error a lot also, but only in medium-ish JSP pages. I’ve posted full details at http://thedance.net/~roth/ECLIPSE. Any thoughts welcome.

    #280961 Reply

    Charles Roth
    Member

    Grr, it took the end-of-sentence period as part of the URL. Try this one: http://thedance.net/~roth/ECLIPSE

    #280994 Reply

    Riyad Kalla
    Member

    Roth, unfortunately I can’t do much with that JSP… it’s so laden with errors (custom classes, taglibs, etc.) that I don’t have access to, that digging out the paragraph errors is a pain.

    One tip I would give, is that the HTML validator doesn’t understand conditional constructs in your JSP pages. So if you are using <%if()%> or logic taglibs to managing ending tags, that will goof it up.

    #281050 Reply

    Charles Roth
    Member

    Understood. I found a *much* smaller and simpler example, and I have updated the page to show it. http://thedance.net/~roth/ECLIPSE — you may want to hit “reload” just to be certain.

    #281051 Reply

    Charles Roth
    Member

    Taking out the <div>s just inside the paragraph makes the error go away. Darned if I know why.

    #281196 Reply

    Riyad Kalla
    Member

    roth,
    <p> cannot contain any block level elements, which includes div’s, span’s, or other p’s (or table’s). For reference:
    http://www.w3.org/TR/html401/struct/text.html#h-9.3.1

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Odd error messages from syntax checker.

You must be logged in to post in the forum log in