- From: Ian Hickson <ian@hixie.ch>
- Date: Thu, 8 Aug 2013 06:13:21 +0000 (UTC)
- To: "Jukka K. Korpela" <jkorpela@cs.tut.fi>
- Cc: whatwg@lists.whatwg.org
- Message-ID: <alpine.DEB.2.00.1308080611460.27623@ps20323.dreamhostps.com>
On Thu, 8 Aug 2013, Jukka K. Korpela wrote: > 2013-08-08 0:08, Ian Hickson wrote: > > On Tue, 6 Aug 2013, Jukka K. Korpela wrote: > > > 2013-08-06 17:45, Ian Hickson wrote: > > > > > > > > If such an application needs some bulk of text data, it can be > > > > > included e.g. in <script type=text/plain>...</script> but not in > > > > > a separate plain text file (included into the application > > > > > distribution, along with other files) referred to via <script > > > > > src=...></script>. This is a frustrating restriction and makes > > > > > it more difficult to maintain and customize application. If an > > > > > external plain text file could be used, the data content could > > > > > be separately managed (requiring knowledge only about the format > > > > > used). > > > > > > > > I'm not sure what you mean by "application distribution". Why > > > > can't a text/plain file by included the same way an image/png file > > > > is included? > > > > > > It can be included as a file, but it cannot be used. I can't "read" > > > it. That is the point. I can use an <img> element referring to an > > > image file, but I cannot refer to a simple plain text file (or an > > > XML file) in an HTML document in a manner that lets me process its > > > content in scripting. I can only include it via <iframe> or > > > <object>, but that's different from accessing its content. > > > > I don't understand why XHR doesn't work for you. > > Because there is no server to talk to when you’re a truly local HTML5 > application. XHR uses the same underlying logic as <img src=""> and <script src="">. If you're able to conjur a file up for <img src=""> or <script src="">, then I don't see why you wouldn't be able to conjur it up for XHR. Could you elaborate on exactly what you mean by "truly local HTML5 application"? I cannot see what setup you mean where one would work and not the other, per the specs today. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 8 August 2013 06:13:48 UTC