Re: WebObjects 5.4 is out.
Re: WebObjects 5.4 is out.
- Subject: Re: WebObjects 5.4 is out.
- From: Lachlan Deck <email@hidden>
- Date: Mon, 29 Oct 2007 10:27:55 +1100
On 27/10/2007, at 6:20 AM, Mike Schrag wrote:
Am 26.10.2007 um 22:00 schrieb Mike Schrag:
Is there a recommended migration route from 5.3 style wod/html
to 5.4 html ? is it a case of changing each and every component
by hand ?
At the moment it's really an issue of testing and converting by
hand as you find problems. WOLips can probably identify many of
the errors, but there's no automatic fixes for them.
There is a script fixwo.pm in Wonder/Utilities/TemplateHelpers
that makes valid xml from broken html. I so far cowardly refused
to convert the Wonder component base with it...
Yikes. You are justifiably cowardly in this case.
The big things that are going to screw people are (I think):
1) WOBuilder and its love for unquoted attribute names (refactor =>
clean wobuilder fixes this, but it's not without issues)
2) Tags inside of tags (<td class = "<webobject name = "SomeClass"/
>">). This is EVIL. The WOLips validator has also been yelling at
you about this for months now, and that was very intentional. If
you listened to it, you're in a much better position for 5.4.
There is no automatic fix for this ... In fact, I would not be
surprised that this will probably whack out the WOLips
autoformatter and wobuilder cleaner.
What about <td class = "cl<webobject name = SomeClass></webobject>"> ?
3) lazy tags. <br> <p> <li> all those tags you love to not
close ... WOLips lets you get away with it in non-5.4 mode, but you
should be ashamed of yourself :)
Hmm.. Closing br tags, at least, is invalid for html 4.01 strict.
Seems a strange assumption to me that all templating is xhtml.
4) There are a couple of HTML tags that break when closed. Like
the <link> tag I think is not allowed to have a close tag? I
actually don't how you do this with the 5.4 parser.
with regards,
--
Lachlan Deck
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden