Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Why is eclipse complaining about my html?(html attribute problem)
Why is eclipse complaining about my html? [message #693095] Tue, 05 July 2011 15:13 Go to next message
Ron A is currently offline Ron A
Messages: 11
Registered: December 2010
Junior Member

I ran the HTML thru a validator, and it said everything was fine. So why is eclipse complaining about these? I get HTML warnings ... and if I change to a jsp file they become errors.

Undefined attribute xml:lang
Missing end tag for http

Here is the offending line:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">


I also get:
Undefined attribute name (gmail.com)
Undefined attribute name(mailto:someone)

Here is the offending line:
<a href=\"mailto:someone@gmail.com\">Email Me </a>

Please help ...

BTW - this html file was generated by an uber-simple web design program. The program allows you to embed raw html in the code - my plan is to do the basic work in the web design program and then embed any special html or jsp I need.
Re: Why is eclipse complaining about my html? [message #693146 is a reply to message #693095] Tue, 05 July 2011 18:25 Go to previous messageGo to next message
Ron A is currently offline Ron A
Messages: 11
Registered: December 2010
Junior Member
Ok - I realized that the second error was a cut and paste error ... there were backslashes before the quote marks.

However, I am still stumped on the first error. Someone help, please.
Re: Why is eclipse complaining about my html? [message #693172 is a reply to message #693146] Tue, 05 July 2011 20:11 Go to previous message
Ron A is currently offline Ron A
Messages: 11
Registered: December 2010
Junior Member
Ok - it's been resolved.

1) the stupid cut and paste error on 'mail'
2) the design tool is putting xhtml tags into the header but marking the file as straight html.
3) the design tool is putting angle brackets into comments, and eclipse and Tomcat are looking into the comments and getting confused by it.

Solutions:
1) fix the stupid cut and paste error
2 and 3) sed script, until the design tool fixes their issue.

Thanks
Previous Topic:Library(container) not getting reflected in Java build path page
Next Topic:Scope of PRE_BUILD Event
Goto Forum:
  


Current Time: Wed Apr 16 23:55:05 EDT 2014

Powered by FUDForum. Page generated in 0.03032 seconds