Extend fakedom to support .value property

So that 88ffb2ad12 will work on the server
print-window-tiddler
Jermolene 2014-02-21 15:43:25 +00:00
rodzic 1bc2700137
commit cb5b95add2
1 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -105,6 +105,15 @@ Object.defineProperty(TW_Element.prototype, "className", {
} }
}); });
Object.defineProperty(TW_Element.prototype, "value", {
get: function() {
return this.attributes["value"] || "";
},
set: function(value) {
this.attributes["value"] = value;
}
});
Object.defineProperty(TW_Element.prototype, "outerHTML", { Object.defineProperty(TW_Element.prototype, "outerHTML", {
get: function() { get: function() {
var output = [],attr,a,v; var output = [],attr,a,v;