mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug #433759 - Microformats - handle empty hCalendar description
r=sayre
This commit is contained in:
parent
c655c9d010
commit
54e348143c
@ -494,8 +494,8 @@ var Microformats = {
|
||||
/* but also has a new function that can return the HTML that corresponds */
|
||||
/* to the string. */
|
||||
function mfHTML(value) {
|
||||
this.valueOf = function() {return value.valueOf();}
|
||||
this.toString = function() {return value.toString();}
|
||||
this.valueOf = function() {return value ? value.valueOf() : "";}
|
||||
this.toString = function() {return value ? value.toString() : "";}
|
||||
}
|
||||
mfHTML.prototype = new String;
|
||||
mfHTML.prototype.toHTML = function() {
|
||||
|
@ -174,6 +174,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="vevent" id="empty-description">
|
||||
<span class="description"></span>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<pre id="test">
|
||||
@ -295,6 +300,9 @@ function test_hCard() {
|
||||
hcalendar = new hCalendar(document.getElementById("18-component-vevent-uid.5"));
|
||||
|
||||
hcalendar = new hCalendar(document.getElementById("19-calendar-attachments"));
|
||||
|
||||
hcalendar = new hCalendar(document.getElementById("empty-description"));
|
||||
is (hcalendar.description, "", "Empty description");
|
||||
}
|
||||
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user