W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2000

Re: Tidy and XHTML

From: Dave Raggett <dsr@w3.org>
Date: Thu, 30 Mar 2000 15:46:49 +0100 (GMT Daylight Time)
To: Bertilo Wennergren <bertilow@hem.passagen.se>
cc: html-tidy@w3.org
Message-ID: <Pine.WNT.4.10.10003301542070.-629103@hazel.hpl.hp.com>
On Fri, 24 Mar 2000, Bertilo Wennergren wrote:

> Tidy seems to get things very wrong with XHTML framesets.
> Tags like <frame ... /> are rejected. The final "/>" seems
> to make Tidy upset. Tidy itself however produces such
> frame tags, with "/>", but when fed the code back for a recheck,
> it rejects its own code.

Thanks for spotting this. The next release of tidy will
cure this and will be posted in April. The fix is in ParseFrameSet
in parser.c

if (node->type == StartTag && (node->tag->model & CM_FRAMES))
{
    InsertNodeAtEnd(frameset, node);
    lexer->excludeBlocks = no;
    ParseTag(lexer, node, MixedContent);
    continue;
}
else if (node->type == StartEndTag && (node->tag->model & CM_FRAMES))
{
    InsertNodeAtEnd(frameset, node);
    continue;
}

The else statement catches <frame/> and inserts it into the
tree.

Regards,

-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
tel/fax: +44 122 578 3011 (or 2521) +44 385 320 444 (mobile)
World Wide Web Consortium (on assignment from HP Labs)
Received on Thursday, 30 March 2000 09:46:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:43 GMT