[wp-hackers] XHTML Strict Mode
Scott Reilly
coffee2code at scottreilly.net
Mon Aug 2 17:07:33 UTC 2004
For my (now late) contribution to WP Patch Day, I believe I've actually fixed
most of the WP code related to balancing tags. There are quite a number of
situations in which the tag balancer will (a) eat user text before it reaches
the database, (b) improperly balance tags, (c) not balance tags given a
certain scenario, (d) try to balance an HTML comment with '</>' (in certain
scenarios).
The fixed balancer could also (with a one-line addition) be used to balance
text prior to <!--more--> upon request.
I'm trying to write up extensive documentation on what changes I made and why
I made them. Anyone willing to volunteer to review the code when I'm done
and/or use it yourself to ensure that my changes didn't just fix the problem
scenarios I discovered while unbeknownst-to-me breaking other scenarios?
By no means, though, do my changes make it a true XHTML validator. Merely a
more fixed and more proper tag balancer, which I guess is part of the road to
XHTML validity.
-Scott
http://www.coffee2code.com
On Monday 02 August 2004 12:11 pm, Jamie Talbot wrote:
> Hi,
>
> I'm new to the list and have read most of the archives, but if this a
> repetition sorry!
>
> One of Matt's wishes on the PatchDay Wiki is an XML parser to check
> for post and comment validity. I was wondering what, if any, work is
> being done in this area. I've been having a look at some of the bugs
> in Mosquito to do with unbalanced tags, problems with wp-autop and
> errors caused by the use of the 'more' tag. Although I think there
> are individual solutions to each of these problems, it would probably
> be best to combine them all together and roll out a combined validity
> checker / corrector.
>
> I'd be happy to begin working on this, and wanted to encourage some
> discussion in this area.
>
> So, a few questions:
>
> What should Strict mode mean? Unbalanced tags only or full blown
> validity checking? Should the user be alerted or should it be done
> silently? There is a discussion about what to do with 'more' tags in
> bug 0000098 in Mosquito. Opinions welcomed on that too...
>
> Is anyone working on this at the moment? If not, is there anyone who
> wants to collaborate on it? It could be an involved process, so the
> more the merrier!
>
> Let me know your thoughts...
>
> Jamie.
>
More information about the hackers
mailing list