I have upgraded Aptana to version 3. Since then, I get warnings like:
<a><span id="contacts" rel="#overlayTest">Contact</span></a>
Multiple markers at this line:
- should discard unexpected <a>
- should discard unexpected </a>
A. Is it illegal to put an “a” tag before a “div” or a “span”?
EDIT : I had the error because I put no href inside the a tag.
I also get warnings like:
<a class="pointer"><li class="spacing5px">Journal</li></a>
Multiple markers at this line:
- should discard unexpected </a>
- missing <li>
- missing </a> before <li>
B. Am I blind or there is really something wrong here?
Btw, my page loads perfectly. Those are just warnings, but it bugs me.
Thanks!
You cannot put a div inside an anchor until HTML 5 (and I wouldn’t do so for a long time as it needs too much hackery for browsers to handle it).
You can’t put a list item anywhere that you can put an anchor and vice versa. (So an anchor cannot be a child element of a list, and a list item cannot be a child element of an anchor). I’m not sure if HTML 5 will change this or not.
Also: