mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2025-12-30 13:52:01 -08:00
Extend fakedom to support .value property
So that 88ffb2ad12 will work on the server
This commit is contained in:
parent
1bc2700137
commit
cb5b95add2
1 changed files with 9 additions and 0 deletions
|
|
@ -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", {
|
||||
get: function() {
|
||||
var output = [],attr,a,v;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue