mirror of https://github.com/adamdruppe/arsd.git
bug in new tostring backend
This commit is contained in:
parent
c8a01e2d1a
commit
f4c4530516
10
dom.d
10
dom.d
|
@ -1,5 +1,8 @@
|
||||||
module arsd.dom;
|
module arsd.dom;
|
||||||
|
|
||||||
|
// NOTE: do *NOT* override toString on Element subclasses. It won't work.
|
||||||
|
// Instead, override writeToAppender();
|
||||||
|
|
||||||
import std.string;
|
import std.string;
|
||||||
// import std.ascii;
|
// import std.ascii;
|
||||||
import std.exception;
|
import std.exception;
|
||||||
|
@ -1521,8 +1524,8 @@ class DocumentFragment : Element {
|
||||||
}
|
}
|
||||||
|
|
||||||
///.
|
///.
|
||||||
override string toString() const {
|
string writeToAppender(Appender!string where = appender!string()) const {
|
||||||
return this.innerHTML;
|
return this.innerHTML(where);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1716,7 +1719,8 @@ class RawSource : Element {
|
||||||
}
|
}
|
||||||
|
|
||||||
///.
|
///.
|
||||||
override string toString() const {
|
string writeToAppender(Appender!string where = appender!string()) const {
|
||||||
|
where.put(source);
|
||||||
return source;
|
return source;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue