summaryrefslogtreecommitdiff
path: root/source/net
diff options
context:
space:
mode:
authorMichael Peter Christen <mc@yacy.net>2026-02-17 22:47:32 +0100
committerMichael Peter Christen <mc@yacy.net>2026-02-17 22:47:32 +0100
commitcb3366c3e95d57dcc6f766191cbd5b4fa251f10d (patch)
tree9ef8aa7e77e67ca93752bdecd71aada50f54dd2c /source/net
parent79c4c4e3dd0e3ca9ed859e7fc37a89f4fb6daf01 (diff)
fixed parsing of x-data-elements in <div>
Diffstat (limited to 'source/net')
-rw-r--r--source/net/yacy/document/parser/html/TransformerWriter.java20
1 files changed, 1 insertions, 19 deletions
diff --git a/source/net/yacy/document/parser/html/TransformerWriter.java b/source/net/yacy/document/parser/html/TransformerWriter.java
index 177d0584e..6477869ff 100644
--- a/source/net/yacy/document/parser/html/TransformerWriter.java
+++ b/source/net/yacy/document/parser/html/TransformerWriter.java
@@ -395,27 +395,9 @@ public final class TransformerWriter extends Writer {
if (this.inSingleQuote) {
this.buffer.append(c);
if (c == singlequote) this.inSingleQuote = false;
- // check error cases
- if ((c == rb) && (this.buffer.length() > 0 && this.buffer.charAt(0) == lb)) {
- this.inSingleQuote = false;
- // the tag ends here. after filtering: pass on
- filtered = this.tokenProcessor(this.buffer.getChars(), singlequote);
- if (this.out != null) { this.out.write(filtered); }
- // this.buffer = new serverByteBuffer();
- this.buffer.reset();
- }
} else if (this.inDoubleQuote) {
this.buffer.append(c);
if (c == doublequote) this.inDoubleQuote = false;
- // check error cases
- if (c == rb && this.buffer.length() > 0 && this.buffer.charAt(0) == lb) {
- this.inDoubleQuote = false;
- // the tag ends here. after filtering: pass on
- filtered = this.tokenProcessor(this.buffer.getChars(), doublequote);
- if (this.out != null) this.out.write(filtered);
- // this.buffer = new serverByteBuffer();
- this.buffer.reset();
- }
} else if (this.inComment) {
this.buffer.append(c);
if (c == rb &&
@@ -554,4 +536,4 @@ public final class TransformerWriter extends Writer {
return !this.binaryUnsuspect;
}
-} \ No newline at end of file
+}