This commit is contained in:
Adam D. Ruppe 2013-06-04 09:10:53 -04:00
parent 93be0d1d4f
commit c68f2d175c
1 changed files with 4 additions and 2 deletions

6
dom.d
View File

@ -4063,8 +4063,10 @@ class Document : FileResource {
throw new Exception("tag " ~ tagName ~ " never closed");
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.
e = new TextNode(this, data[pos .. $]);
pos = data.length;
if(pos < data.length) {
e = new TextNode(this, data[pos .. $]);
pos = data.length;
}
}
} else {
ending += pos;