mirror of https://github.com/adamdruppe/arsd.git
oops
This commit is contained in:
parent
93be0d1d4f
commit
c68f2d175c
6
dom.d
6
dom.d
|
@ -4063,8 +4063,10 @@ class Document : FileResource {
|
||||||
throw new Exception("tag " ~ tagName ~ " never closed");
|
throw new Exception("tag " ~ tagName ~ " never closed");
|
||||||
else {
|
else {
|
||||||
// let's call it totally empty and do the rest of the file as text. doing it as html could still result in some weird stuff like if(a<4) being read as <4 being a tag so it comes out if(a<4></4> and other weirdness) It is either a closed script tag or the rest of the file is forfeit.
|
// let's call it totally empty and do the rest of the file as text. doing it as html could still result in some weird stuff like if(a<4) being read as <4 being a tag so it comes out if(a<4></4> and other weirdness) It is either a closed script tag or the rest of the file is forfeit.
|
||||||
e = new TextNode(this, data[pos .. $]);
|
if(pos < data.length) {
|
||||||
pos = data.length;
|
e = new TextNode(this, data[pos .. $]);
|
||||||
|
pos = data.length;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ending += pos;
|
ending += pos;
|
||||||
|
|
Loading…
Reference in New Issue