[html5] document.lastModified clarification
ian at hixie.ch
Wed Sep 3 16:08:21 PDT 2014
On Thu, 28 Aug 2014, Ken Koski wrote:
> According to
> if the date and time are not known, "the attribute must return the
> current date and time". Does current in this case mean the timestamp for
> when the document was retrieved, or does it mean that
> document.lastModified is equivalent to "new Date()" whenever the
> attribute is accessed?
It means "current", i.e. the same as new Date().
> It appears that Firefox uses the first meaning and Chrome uses the
> latter meaning.
Interesting. I encourage you to file a bug with Firefox, if this is indeed
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the Help