Re: Tidy muddles up </i> and </b>

Hello Murray,

Tidy assumes the </B> to be a misspelt </I> and corrects it accordingly. 
The then obsolete </I> after AF gets dropped.

See the Tidy warning messages:
>Tidy (vers 4th August 2000) Parsing console input (stdin)
>line 1 column 1 - Warning: inserting missing 'title' element
>line 1 column 10 - Warning: replacing unexpected </b> by </i>
>line 1 column 16 - Warning: discarding unexpected </i>
>
>stdin: Document content looks like HTML 3.2
>3 warnings/errors were found!

Removing the </B> or adding a <B> AFTER the <I> would solve your problem.


I hope this helped...


Sebastian.

At 00:44 01.09.2000 +0100, Dr Murray Longmore wrote:
>Dear Dave
><i>Acute </b>AF</i>
>gets tidied to  <i>Acute </i>AF
>Italics gets stopped too soon. Can you help?!
>Thanks for your excellent program
>Murray
>
>-----Original Message-----
>From: html-tidy-request@w3.org [mailto:html-tidy-request@w3.org]On
>Behalf Of Dave Raggett
>Sent: Tuesday, August 29, 2000 7:12 PM
>To: Randy Waki
>Cc: html-tidy@w3.org
>Subject: Re: Bug: Multiple body elements in noframes
>
>
>On Sun, 20 Aug 2000, Randy Waki wrote:
>
> > 4-Aug-2000 Tidy allows multiple body elements in a noframes
> > element, and in fact it will add extra body elements to contain
> > out-of-place content. If I'm interpreting the HTML 4 spec
> > correctly, multiple bodies are not allowed in a noframes
> > element.
> >
> > I didn't attempt a fix because, as far as I know, none of my
> > browsers will display the noframes content, so I'm not sure how
> > it should be tidied.
> >
> > ------------------------ Example HTML document ----------------
> > <html>
> >   <head><title></title></head>
> >   <frameset>
> >     <frame>
> >     <noframes>
> >       <body>
> >         Text in body 1.
> >       </body>
> >       <body>
> >         Text in illegal body 2.
> >       </body>
> >       Text in inferred illegal body 3.
> >     </noframes>
> >   </frameset>
> > </html>
> > Text in inferred illegal body 4.
>
>Thanks for the example, I will try and deal with this in the next
>release.
>
>
>Regards,
>
>-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
>tel/fax: +44 122 578 3011 (or 2521) +44 778 532 0444 (mobile)
>World Wide Web Consortium (on assignment from HP Labs)

--
Sebastian Lange
http://www.sl-chat.de/
Maybe the first chat site that validates as HTML
4.0 even though user input may contain HTML codes.

Courtesy to Dave Raggett's HTML Tidy:
http://www.w3.org/People/Raggett/tidy/

Tidy your documents ONLINE:
http://www.sl-chat.de/Tidy/

Received on Friday, 1 September 2000 03:59:19 UTC