jdk/src/share/classes/javax/swing/text/html/parser/Parser.java
changeset 20169 d7fa6d7586c9
parent 17678 ec24ad8455ec
child 21278 ef8a3a2a72f2
equal deleted inserted replaced
20168:137788883a22 20169:d7fa6d7586c9
    56  * The html spec does not specify how spaces are to be coalesced very well.
    56  * The html spec does not specify how spaces are to be coalesced very well.
    57  * Specifically, the following scenarios are not discussed (note that a
    57  * Specifically, the following scenarios are not discussed (note that a
    58  * space should be used here, but I am using &nbsp to force the space to
    58  * space should be used here, but I am using &nbsp to force the space to
    59  * be displayed):
    59  * be displayed):
    60  * <p>
    60  * <p>
    61  * '&lt;b>blah&nbsp;&lt;i>&nbsp;&lt;strike>&nbsp;foo' which can be treated as:
    61  * '&lt;b&gt;blah&nbsp;&lt;i&gt;&nbsp;&lt;strike&gt;&nbsp;foo' which can be treated as:
    62  * '&lt;b>blah&nbsp;&lt;i>&lt;strike>foo'
    62  * '&lt;b&gt;blah&nbsp;&lt;i&gt;&lt;strike&gt;foo'
    63  * <p>as well as:
    63  * <p>as well as:
    64  * '&lt;p>&lt;a href="xx">&nbsp;&lt;em>Using&lt;/em>&lt;/a>&lt;/p>'
    64  * '&lt;p&gt;&lt;a href="xx"&gt;&nbsp;&lt;em&gt;Using&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;'
    65  * which appears to be treated as:
    65  * which appears to be treated as:
    66  * '&lt;p>&lt;a href="xx">&lt;em>Using&lt;/em>&lt;/a>&lt;/p>'
    66  * '&lt;p&gt;&lt;a href="xx"&gt;&lt;em&gt;Using&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;'
    67  * <p>
    67  * <p>
    68  * If <code>strict</code> is false, when a tag that breaks flow,
    68  * If <code>strict</code> is false, when a tag that breaks flow,
    69  * (<code>TagElement.breaksFlows</code>) or trailing whitespace is
    69  * (<code>TagElement.breaksFlows</code>) or trailing whitespace is
    70  * encountered, all whitespace will be ignored until a non whitespace
    70  * encountered, all whitespace will be ignored until a non whitespace
    71  * character is encountered. This appears to give behavior closer to
    71  * character is encountered. This appears to give behavior closer to