diff --git a/index.html b/index.html index 93c3000..9d132a1 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ timeago: a jQuery plugin - + + @@ -24,7 +24,7 @@

Short term

-

You opened this page sometime before now.

+

You opened this page (you shouldn't see this).

This page was last modified sometime before @@ -66,7 +66,8 @@

Other formats

-

Date only: (you shouldn't see this).

+

Date only (abbr element): (you shouldn't see this).

+

Date only (time element): .

Errors

@@ -193,6 +194,7 @@ $('abbr.modified').attr('title', iso8601(new Date(document.lastModified))); $('abbr.timeago').timeago(); + $('time.timeago').timeago(); $('abbr.todate').each(function () { var date = $.timeago.parse(this.title); @@ -218,6 +220,12 @@ }), 'All text was replaced'); }); + test('Text in time tag should be replaced', function () { + ok(testElements('time.timeago', function (element) { + return (element.html() !== "(you shouldn't see this)"); + }), 'All text was replaced'); + }); + module('Invalid date'); test('Text in abbr should not be replaced', function () {