I fight against this/similar problem in 2 cases:
* for wicketstuff-jquery, some component use a handler (D&D) create an hanlder in html is a simple <div wicket:id="handler"/> => create css/dom problem, spare some time to find that I must replace it by <div ...> </div> with a space (iirc but I may did a mistake, wicket convert the <div wicket:id="foo"></div> without content into <div wicket:id="foo"/>).
* for creation of anchor, wicket doesn't accept <a name="foo">, so I wrote <a name="foo"/>, accepted 
by wicket but failed with firefox, so must be replace by <a name="foo"></a>

my 2 cents.

Matej Knopp wrote:
Okay. Again. This is not about developer making error!

Code like this:
 <div/>
  Something

Is perfectly legal. However, firefox interprets it as
 <div>
   Something
   ...
Which is completely wrong. This is not correcting developer error!
This is correcting browser error. And such thing is very difficult to
spot.

-Matej

On 11/2/07, Philip A. Chapman <[EMAIL PROTECTED]> wrote:
I agree with this stance.

On Fri, 2007-11-02 at 09:19 -0600, John Ray wrote:
I got bit by this problem yesterday. Although I was just previewing the
page in the browser by loading the HTML file directly. Since Wicket
wasn't running it wouldn't have mattered if it fixed my div tag for me
or not.

I'd rather see Wicket not modify the HTML as it's then starting down the
slippery slope of assuming the developer made an error and automatically
correcting it. I think a better solution would be to have an option
where Wicket looks for potential errors in your HTML and then outputs a
warning to the console.

John

Gwyn Evans wrote:
It seems to me that while it's something that Wicket /could/ do, I'm
not sure if it's something that Wicket /should/ do...

Having  said  that, I think I'd be less against it if we restricted it
to only tags that had a "wicket:id" attribute?

--
Philip A. Chapman

Desktop and Web Application Development:
Java, .NET, PostgreSQL, MySQL, MSSQL
Linux, Windows 2000, Windows XP



Reply via email to