1 /*2 * @(#)IStack.java 1.11 2000/08/163 *4 */5 6 package org.w3c.tidy;7 8 /**9 *10 * Inline stack node11 *12 * (c) 1998-2000 (W3C) MIT, INRIA, Keio University13 * See Tidy.java for the copyright notice.14 * Derived from <a HREF="http://www.w3.org/People/Raggett/tidy">15 * HTML Tidy Release 4 Aug 2000</a>16 *17 * @author Dave Raggett <dsr@w3.org>18 * @author Andy Quick <ac.quick@sympatico.ca> (translation to Java)19 * @version 1.0, 1999/05/2220 * @version 1.0.1, 1999/05/2921 * @version 1.1, 1999/06/18 Java Bean22 * @version 1.2, 1999/07/10 Tidy Release 7 Jul 199923 * @version 1.3, 1999/07/30 Tidy Release 26 Jul 199924 * @version 1.4, 1999/09/04 DOM support25 * @version 1.5, 1999/10/23 Tidy Release 27 Sep 199926 * @version 1.6, 1999/11/01 Tidy Release 22 Oct 199927 * @version 1.7, 1999/12/06 Tidy Release 30 Nov 199928 * @version 1.8, 2000/01/22 Tidy Release 13 Jan 200029 * @version 1.9, 2000/06/03 Tidy Release 30 Apr 200030 * @version 1.10, 2000/07/22 Tidy Release 8 Jul 200031 * @version 1.11, 2000/08/16 Tidy Release 4 Aug 200032 */33 34 public class IStack {35 36 /*37 Mosaic handles inlines via a separate stack from other elements38 We duplicate this to recover from inline markup errors such as:39 40 <i>italic text41 <p>more italic text</b> normal text42 43 which for compatibility with Mosaic is mapped to:44 45 <i>italic text</i>46 <p><i>more italic text</i> normal text47 48 Note that any inline end tag pop's the effect of the current49 inline start tag, so that </b> pop's <i> in the above example.50 */51 52 public IStack next;53 public Dict tag; /* tag's dictionary definition */54 public String element; /* name (null for text nodes) */55 public AttVal attributes;56 57 public IStack()58 {59 next = null;60 tag = null;61 element = null;62 attributes = null;63 }64 65 }66