summaryrefslogtreecommitdiff
path: root/gnu/javax/swing/text/html
diff options
context:
space:
mode:
authorAudrius Meskauskas <audriusa@Bioinformatics.org>2006-05-02 12:34:26 +0000
committerAudrius Meskauskas <audriusa@Bioinformatics.org>2006-05-02 12:34:26 +0000
commite876ee24bebbec85a21f3a4bdbfede10fbee2643 (patch)
tree2b781ca0cdfa6ae8e5588d9a02450475bb97847d /gnu/javax/swing/text/html
parent3e7a047d691114e0bb21a8abc932fa6b1828604b (diff)
downloadclasspath-e876ee24bebbec85a21f3a4bdbfede10fbee2643.tar.gz
2006-05-02 Audrius Meskauskas <AudriusA@Bioinformatics.org>
* gnu/javax/swing/text/html/parser/support/Parser.java (readAttributes): Merge case NUMTOKEN: and case SLASH: sections.
Diffstat (limited to 'gnu/javax/swing/text/html')
-rw-r--r--gnu/javax/swing/text/html/parser/support/Parser.java29
1 files changed, 0 insertions, 29 deletions
diff --git a/gnu/javax/swing/text/html/parser/support/Parser.java b/gnu/javax/swing/text/html/parser/support/Parser.java
index 92f9b27c5..93b5b438c 100644
--- a/gnu/javax/swing/text/html/parser/support/Parser.java
+++ b/gnu/javax/swing/text/html/parser/support/Parser.java
@@ -967,35 +967,6 @@ public class Parser
// read unquoted attribute.
case NUMTOKEN:
- value = next;
- optional(WS);
-
- // Check maybe the opening quote is missing.
- next = getTokenAhead();
- if (bQUOTING.get(next.kind))
- {
- hTag = next;
- error("The value without opening quote is closed with '"
- + next.getImage() + "'");
- attrValue = value.getImage();
- }
- else if (next.kind == SLASH)
- // The slash in this context is treated as the ordinary
- // character, not as a token. The slash may be part of
- // the unquoted URL.
- {
- StringBuffer image = new StringBuffer(value.getImage());
- while (next.kind == NUMTOKEN || next.kind == SLASH)
- {
- image.append(getNextToken().getImage());
- next = getTokenAhead();
- }
- attrValue = image.toString();
- }
- else
- attrValue = value.getImage();
- break;
-
case SLASH:
value = next;
optional(WS);