[Webkit-unassigned] [Bug 8475] document.lastModified gives no output if the response doesn't have a Last-Modified header
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 6 11:40:47 PDT 2008
https://bugs.webkit.org/show_bug.cgi?id=8475
myrdred at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |myrdred at gmail.com
------- Comment #5 from myrdred at gmail.com 2008-08-06 11:40 PDT -------
A really easy way to repro this bug is to stick in a file:
<html><head><script>alert(document.lastModified);</script></head><body/></html>
Open it from a file:/// URL, you'll get a blank alert. Put it on a Web server,
you'll get the actual last modified date.
document.lastModified is not part of the HTML4 specification, but it did make
it into HTML5. HTML5 is very specific about how the value should be returned
(as a precisely formatted string, which seems odd to me... why not use a
DOMTimestamp or whatever it's called?) and mandates that document.lastModified
returns the "source file's last modification", which seems pretty clear to me
that it should return the correct date for local files.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list