Scott T weaver wrote:
> However, the Tidy extension for Firefox reports a warning:

Yes, but that is just a Tidy warning. The HTML is valid, at least in XHTML strict.

Of course an empty div will have no semantics behind it, but it can be used in conjunction with CSS for various effects, and could quite possibly be a handle used by Javascript for some DOM trickery. I've used them in CSS to clear floats when there was no tag with appropriate semantics to use. Adding a little CSS to the page we get:

    http://test.sauyet.com/CSS/EmptyDiv2/

Then adding a bit more targeting DIVs, we get:

    http://test.sauyet.com/CSS/EmptyDiv3/

So, they can be useful.

This is, I think, a legitimate use of tan empty tag. I think it is a bug for Wicket to clean this up, especially if as it seemed it replaced the empty tag with an open tag only.

  -- Scott



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to