|
Posted by Bob on 04/22/06 18:29
Andy Dingley wrote:
> On Fri, 21 Apr 2006 22:56:14 -0700, Bob <bob@bob.org> wrote:
>
>> What I am interested in is not a WYSIWYG application but something like
>> the old Hot Dog Pro (I think). Sometimes I have mistakes in my HTML like
>> a tag opened and not closed or a tag closed with no opening tag, or a
>> tag that is written slightly incorrectly (one character missing or in
>> the wrong place).
>
> There aren't many of these, because it's a non -trivial problem to parse
> properly. Some of the older ones aren't all that accurate. Many of them
> today parse XML fine (which is easier) but can't do it for HTML. There
> are still some though, if you look.
I go through "fixing" my code, deleting old bad links and stuff, and I
end up with </a> tags stranded, and other stupid errors. I'm using
Blogger but I usually work in Blogger's HTML editor because it's Compose
window is so buggy. If there is even one screwed up tag, Blogger refuses
to upload the post. But it doesn't bother to point out where the
erroneous tag is.
Blogger's Composer is really bad. It throws in weird <font> tags with no
closing tag, sometimes 1000's of them. One time it put 100's of <wendy>
tags because the post was a conversation with "Wendy". It also does
stuff like taking every word in a given paragraph and making an anchor
tag out of it, really weird. It's just insane. Plus if you fix &'s with
& Blogger goes through and reverts all the & back to & if you
open the Compose window again.
Not only that, but it puts in an unholy amount of excess tags,
especially if you start cutting and pasting stuff.
>
> You'd do well do get a copy of HTML Kit for starters, because that
> includes HTML Tidy.
Ok, this runs on my drive like a program?
>
> For issues about appropriate nesting of elements, rather than merey
> syntactic well-formedness, then look for a real validator, like the W3C
> one.
Yes. I usually use Tidy for that, once the page is uploaded.
[Back to original message]
|