From russell.leggett at gmail.com Fri Aug 1 05:28:43 2008 From: russell.leggett at gmail.com (Russell Leggett) Date: Fri, 1 Aug 2008 08:28:43 -0400 Subject: [whatwg] Joined blocks In-Reply-To: <4892A08F.1050707@arc.net.au> References: <489297CA.9050902@arc.net.au> <4892A08F.1050707@arc.net.au> Message-ID: <680cacd10808010528y3d9e10e9pcee2c7b4848b736f@mail.gmail.com> For what it's worth, Shannon, I totally agree with you. Not only is this something I have been wanted for a long time, but I think it belongs in the html. It's one thing if you just want columns, which is being covered here: http://www.w3.org/TR/css3-multicol/. The CSS covers that nicely, but there are times when the joined blocks are more remote and distinctly not columns, requiring the extra markup to control where it must join to. However, while useful for complex layouts, this is definitely the much smaller use case. I think it would make a great addition, but I suppose people have to have priorities! ;) -Russ On Fri, Aug 1, 2008 at 1:35 AM, Shannon wrote: > I agree this is _mostly_ a CSS issue except that there is semantic meaning > to the join attribute beyond layout. The attribute could serve as a guide to > search engines, web-scrapers or WYSIWYG applications that two areas of the > page should be considered a single piece of content. I am also unsure as to > how this might affect other aspects of browser, javascript or DOM behaviour. > There may be other uses or side-effects I can't imagine. At any rate CSS > cannot associate elements so the join attribute should be considered > independent of the style considerations as a means of saying "this block > follows that one". Nonetheless I will do as you suggest. > > Shannon > > > Ian Hickson wrote: > > On Fri, 1 Aug 2008, Shannon wrote: > > > Something I think is really missing from HTML is "linked text" (in the > traditional desktop publishing sense), where two or more text boxes are > joined so that content overflows the first into the second and > subsequent boxes. This is a standard process for practically all > multi-column magazines, books and news layouts. It is especially > valuable for column layouts where the information is dynamic and > variable in length and therefore cannot be manually balanced. This is > not something that can be solved server-side since the actual flow is > dependent on user style-sheets, viewport and font-size. > > > I agree that this would be a useful feature for the Web platform. However, > I believe the CSS working group is a better venue for exploring such > options. I recommend forwarding your proposal to www-style at w3.org. > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jackalmage at gmail.com Fri Aug 1 08:00:13 2008 From: jackalmage at gmail.com (Tab Atkins Jr.) Date: Fri, 1 Aug 2008 10:00:13 -0500 Subject: [whatwg] Joined blocks In-Reply-To: <680cacd10808010528y3d9e10e9pcee2c7b4848b736f@mail.gmail.com> References: <489297CA.9050902@arc.net.au> <4892A08F.1050707@arc.net.au> <680cacd10808010528y3d9e10e9pcee2c7b4848b736f@mail.gmail.com> Message-ID: On Fri, Aug 1, 2008 at 7:28 AM, Russell Leggett wrote: > For what it's worth, Shannon, I totally agree with you. Not only is this > something I have been wanted for a long time, but I think it belongs in the > html. It's one thing if you just want columns, which is being covered here: > http://www.w3.org/TR/css3-multicol/. The CSS covers that nicely, but there > are times when the joined blocks are more remote and distinctly not columns, > requiring the extra markup to control where it must join to. However, while > useful for complex layouts, this is definitely the much smaller use case. I > think it would make a great addition, but I suppose people have to have > priorities! ;) > -Russ > This is definitely and distinctly a CSS issue, not a HTML one. The fact that the contents of an element flow into another box elsewhere in the page has nothing to do with the underlying structure of the data - it's still a single cohesive element, and thus in html it would be marked up exactly as normal. You just happen to be displaying it differently. As noted, CSS3 Multi-Column Layout directly addresses the wide use-case of dynamic columns, which will be the most common need for this sort of thing. However, it's certainly reasonable that one would want more than that, to allow the contents of an element to flow to an arbitrary location elsewhere on the page. I could have sworn there was a flow-to property proposed in one of the working drafts, but I couldn't find it, so it's possible it only existed in my fevered imagination (it's also possible I was misremembering the "named flows" feature in Generated Content for Paged Media [1]). A limited form of this property exists in the Paged Media section of the Template Layout module [2], where you can specify a template that spans across several pages. If the contents of a slot would overflow, it instead forces a page-break within the slot and flows onto the next page, filling the slot of the same name. I've got some ideas in this regard, but we should move it to the CSS list, www-style at w3.org. ~TJ [1] http://www.w3.org/TR/css3-gcpm/#named1 [2] http://www.w3.org/TR/css3-layout/#templates -------------- next part -------------- An HTML attachment was scrubbed... URL: From h.iverson at gmail.com Fri Aug 1 13:39:45 2008 From: h.iverson at gmail.com (Harlan Iverson) Date: Fri, 1 Aug 2008 15:39:45 -0500 Subject: [whatwg] maintaining WebSocket connections between page loads Message-ID: <25097ca30808011339u7fa2c658ta9ade0abd16b05c0@mail.gmail.com> Hello, I am an implementor of BOSH and interested in WebSockets as future option for browser based XMPP connections. I think a useful feature of BOSH is the ability to send a pause request to the server, which effectively increases the amount of time that can elapse before it considers a client timed out; a client then resumes by making a normal request with the same session ID and the request ID incremented as usual. This is useful/needed because BOSH is a sequenced protocol. Importantly, it enables a use case of maintaining a 'persistent' connection between page loads. Is there any equivalent mechanism in WebSockets to produce a 'persistent' connection between page loads? Combined with sessionStorage this would be very useful for an application such as Facebook Chat. My thought is something like this: window.addEventListener( "load", function() { if( sessionStorage.resumeToken != undefined ) { // this part is sketchy... try { con = new WebSocket( sessionStorage.resumeToken ); } catch(e) { // too much time elapsed, invalid token con = new WebSocket( "ws://..." ); } } else { con = new WebSocket( "ws://..." ); } }, false ); window.addEventListener( "unload", function() { // timeout could be defined by UA, and connection closes after that time sessionStorage.resumeToken = con.pause(); }, false ); Personally I'm not a fan of the WebSocket constructor initiating the connection immediately, but I'm sure there are reasons for it being like that. My preference would be to have connect and resume methods to complement disconnect and pause, respectively. I haven't thought through security implications of this sort of mechanism, but at the very least it seems safe if tokens can only be used within the same origin. Best, Harlan -------------- next part -------------- An HTML attachment was scrubbed... URL: From shannon at arc.net.au Fri Aug 1 23:39:40 2008 From: shannon at arc.net.au (Shannon) Date: Sat, 02 Aug 2008 16:39:40 +1000 Subject: [whatwg] Joined blocks In-Reply-To: References: <489297CA.9050902@arc.net.au> <4892A08F.1050707@arc.net.au> <680cacd10808010528y3d9e10e9pcee2c7b4848b736f@mail.gmail.com> Message-ID: <4894012C.6030009@arc.net.au> Tab Atkins Jr. wrote: > > This is definitely and distinctly a CSS issue, not a HTML one. The > fact that the contents of an element flow into another box elsewhere > in the page has nothing to do with the underlying structure of the > data - it's still a single cohesive element, and thus in html it would > be marked up exactly as normal. You just happen to be displaying it > differently. The accuracy of your statement depends largely on whether the specification allows the content source to be defined across all joined blocks or only in the first. For example:

first para

second para

... other unrelated markup ...

third para

This markup would be common when the author is trying to support legacy or non-CSS browsers. The join attribute allows supporting agents to know that conceptually the third para follows on from the second. This might be useful for text or audio browsers to correctly concatenate related sections of text and for search engines trying to demarcate meaningful areas of the page. I strongly recommend that HTML5 define the join attribute and then allow the CSS group to define its behaviour in relation to visual styles. The 'class' attribute sets a precedent for this as it is defined in HTML despite generally having no implications beyond being a style hook. CSS cannot currently target elements except by their structural alignment to others and in many cases the blocks to be joined won't have a simple relationship. Targetting the id of joined elements with the 'join' attribute is still required regardless of how the CSS rules are implemented and this is the correct forum for new HTML attributes. > > I've got some ideas in this regard, but we should move it to the CSS > list, www-style at w3.org . Already done. The topic is currently waiting on moderation. Shannon -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian at hixie.ch Sat Aug 2 00:01:23 2008 From: ian at hixie.ch (Ian Hickson) Date: Sat, 2 Aug 2008 07:01:23 +0000 (UTC) Subject: [whatwg] Joined blocks In-Reply-To: <4894012C.6030009@arc.net.au> References: <489297CA.9050902@arc.net.au> <4892A08F.1050707@arc.net.au> <680cacd10808010528y3d9e10e9pcee2c7b4848b736f@mail.gmail.com> <4894012C.6030009@arc.net.au> Message-ID: On Sat, 2 Aug 2008, Shannon wrote: > > The accuracy of your statement depends largely on whether the > specification allows the content source to be defined across all joined > blocks or only in the first. For example: > >

first para

second para

> ... other unrelated markup ... >

third para

> > This markup would be common when the author is trying to support legacy > or non-CSS browsers. I agree that such markup would be common today, but I think that we should design the language with the intent to move past this style. I would much, much rather see documents that
elements for each section, and then have the CSS split the section block into multiple boxes, than have the markup itself have each final resulting box split into different
s. In the meantime, having blocks split into separate
s is the only way forward, but I think we can work around the accessibility problems of this by including links to the next part at the end of each block. I don't think we should add new features to handle this in HTML, I'd rather add them to CSS. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From gregory.houston at gmail.com Sat Aug 2 01:23:45 2008 From: gregory.houston at gmail.com (Greg Houston) Date: Sat, 2 Aug 2008 03:23:45 -0500 Subject: [whatwg] Separating Interface and Content Message-ID: <29ae901a0808020123j55bdfaa9m9916e9c6946f3a8@mail.gmail.com> Ten years ago we separated style from content. Pretty soon I think we may need to start thinking more about separating the interface from the content as well. We are still treating the web as a web of documents when it is gradually becoming something more akin to a web of applications. As an application developer the ratio of user interface markup (divs within divs within divs) to content markup (text and images and such) in each of my pages is gradually increasing on the side of the interface. Just as removing style from HTML vastly cleaned it up and gave an incredible boost to what we could do with style, I imagine the same thing would be true if we separated the interface from the content. The HTML would be cleaner and web interface technology might be able to fully develop like CSS is doing. Right now we tend to think of having a plain document that we then warp into the shape of a user interface with CSS and a little Javascript magic. But on the backend, for web applications at least, that is not really what we are doing. We are making an interface and then injecting content into its various parts and with AJAX updating that content in those various parts individually. Seeing such a web "page" as a single document rather than as an application with many documents open within it is starting to make less and less sense. I am aware of XUL, but am not very familiar with it, and I imagine not a lot of developers are yet. My open question is, given the direction the web seems to be going in, in developing HTML5 are we giving much thought to eventually separating the interface from the content? Like right now we are adding such elements as meter, progress, menu, context menu and so forth to the specification when it seems they might be better suited to a separate file. Five years from now are we going to be giving people a hard time for sticking context menus right into their HTML file the same way we now hassle people for using tables to structure their document? "That guy is still putting progress bars in his HTML markup." The progress element hasn't been implemented yet, but I can already foresee it's demise. Right now we load a document and then apply CSS to it. It might make more sense to load the UI file first, then the UI's CSS, then the document(s) and their CSS. Again, I am not familiar with how XUL works. It may do something similar or do something a lot smarter. Another way to think about this is the differences between your screen CSS and print CSS. What do you hide in your print CSS? With each new project it seems like I am setting increasingly longer lists of elements to display: none in the print.css. It is all interface stuff that does not specifically relate to what the viewer wants to print. Generally almost all of my menus are hidden from print. Once context menus are implemented they will certainly go on that list. So if I feel that I need to hide something from being printed, should that something be in the content file in the first place or would it be better suited in an interface file? Should there be a way to print only specific sections of an HTML file rather than the whole thing? If so, how would you go about defining the different sections in the markup? Maybe someone wants to print the help text in this div container but is not interested in printing all the other widgets on the page. The CSS for my content (paragraphs, blockquotes, ...) is generally rather small and has not really increased much in size over the years, but the CSS for all the interface divs and unordered lists twisted into crazy menuing systems grows month by month, from project to project. I think this is a good indicator of the direction things are going in. - Greg Houston From russell.leggett at gmail.com Sat Aug 2 17:06:51 2008 From: russell.leggett at gmail.com (Russell Leggett) Date: Sat, 2 Aug 2008 20:06:51 -0400 Subject: [whatwg] Joined blocks In-Reply-To: References: <489297CA.9050902@arc.net.au> <4892A08F.1050707@arc.net.au> <680cacd10808010528y3d9e10e9pcee2c7b4848b736f@mail.gmail.com> Message-ID: <680cacd10808021706r28879d0dk506a73c026c32448@mail.gmail.com> I would be happy to have this as a purely css solution, but if multiple container elements are required for the content to flow to, would you not want that relationship in the html? We specify anchors, links, and relationships in html, why not this? How the flow between blocks should certainly be controlled by css - when to break between blocks etc., but there a semantic and structural aspect as well. -Russ On Fri, Aug 1, 2008 at 11:00 AM, Tab Atkins Jr. wrote: > On Fri, Aug 1, 2008 at 7:28 AM, Russell Leggett > wrote: > >> For what it's worth, Shannon, I totally agree with you. Not only is this >> something I have been wanted for a long time, but I think it belongs in the >> html. It's one thing if you just want columns, which is being covered here: >> http://www.w3.org/TR/css3-multicol/. The CSS covers that nicely, but >> there are times when the joined blocks are more remote and distinctly not >> columns, requiring the extra markup to control where it must join to. >> However, while useful for complex layouts, this is definitely the much >> smaller use case. I think it would make a great addition, but I suppose >> people have to have priorities! ;) >> -Russ >> > > This is definitely and distinctly a CSS issue, not a HTML one. The fact > that the contents of an element flow into another box elsewhere in the page > has nothing to do with the underlying structure of the data - it's still a > single cohesive element, and thus in html it would be marked up exactly as > normal. You just happen to be displaying it differently. > > As noted, CSS3 Multi-Column Layout directly addresses the wide use-case of > dynamic columns, which will be the most common need for this sort of thing. > However, it's certainly reasonable that one would want more than that, to > allow the contents of an element to flow to an arbitrary location elsewhere > on the page. I could have sworn there was a flow-to property proposed in > one of the working drafts, but I couldn't find it, so it's possible it only > existed in my fevered imagination (it's also possible I was misremembering > the "named flows" feature in Generated Content for Paged Media [1]). A > limited form of this property exists in the Paged Media section of the > Template Layout module [2], where you can specify a template that spans > across several pages. If the contents of a slot would overflow, it instead > forces a page-break within the slot and flows onto the next page, filling > the slot of the same name. > > I've got some ideas in this regard, but we should move it to the CSS list, > www-style at w3.org. > > ~TJ > > [1] http://www.w3.org/TR/css3-gcpm/#named1 > [2] http://www.w3.org/TR/css3-layout/#templates > -------------- next part -------------- An HTML attachment was scrubbed... URL: From russell.leggett at gmail.com Sat Aug 2 17:10:44 2008 From: russell.leggett at gmail.com (Russell Leggett) Date: Sat, 2 Aug 2008 20:10:44 -0400 Subject: [whatwg] Joined blocks In-Reply-To: <680cacd10808021706r28879d0dk506a73c026c32448@mail.gmail.com> References: <489297CA.9050902@arc.net.au> <4892A08F.1050707@arc.net.au> <680cacd10808010528y3d9e10e9pcee2c7b4848b736f@mail.gmail.com> <680cacd10808021706r28879d0dk506a73c026c32448@mail.gmail.com> Message-ID: <680cacd10808021710s1a6c2c06he1e66b00cf1c8b98@mail.gmail.com> Ignore my last statement. It was a draft I wrote before reading Ian's response. If he has something in mind to get the same thing accomplished without adding extra tags, all the better. On Sat, Aug 2, 2008 at 8:06 PM, Russell Leggett wrote: > I would be happy to have this as a purely css solution, but if multiple > container elements are required for the content to flow to, would you not > want that relationship in the html? We specify anchors, links, and > relationships in html, why not this? How the flow between blocks should > certainly be controlled by css - when to break between blocks etc., but > there a semantic and structural aspect as well. > -Russ > > > On Fri, Aug 1, 2008 at 11:00 AM, Tab Atkins Jr. wrote: > >> On Fri, Aug 1, 2008 at 7:28 AM, Russell Leggett < >> russell.leggett at gmail.com> wrote: >> >>> For what it's worth, Shannon, I totally agree with you. Not only is this >>> something I have been wanted for a long time, but I think it belongs in the >>> html. It's one thing if you just want columns, which is being covered here: >>> http://www.w3.org/TR/css3-multicol/. The CSS covers that nicely, but >>> there are times when the joined blocks are more remote and distinctly not >>> columns, requiring the extra markup to control where it must join to. >>> However, while useful for complex layouts, this is definitely the much >>> smaller use case. I think it would make a great addition, but I suppose >>> people have to have priorities! ;) >>> -Russ >>> >> >> This is definitely and distinctly a CSS issue, not a HTML one. The fact >> that the contents of an element flow into another box elsewhere in the page >> has nothing to do with the underlying structure of the data - it's still a >> single cohesive element, and thus in html it would be marked up exactly as >> normal. You just happen to be displaying it differently. >> >> As noted, CSS3 Multi-Column Layout directly addresses the wide use-case of >> dynamic columns, which will be the most common need for this sort of thing. >> However, it's certainly reasonable that one would want more than that, to >> allow the contents of an element to flow to an arbitrary location elsewhere >> on the page. I could have sworn there was a flow-to property proposed in >> one of the working drafts, but I couldn't find it, so it's possible it only >> existed in my fevered imagination (it's also possible I was misremembering >> the "named flows" feature in Generated Content for Paged Media [1]). A >> limited form of this property exists in the Paged Media section of the >> Template Layout module [2], where you can specify a template that spans >> across several pages. If the contents of a slot would overflow, it instead >> forces a page-break within the slot and flows onto the next page, filling >> the slot of the same name. >> >> I've got some ideas in this regard, but we should move it to the CSS list, >> www-style at w3.org. >> >> ~TJ >> >> [1] http://www.w3.org/TR/css3-gcpm/#named1 >> [2] http://www.w3.org/TR/css3-layout/#templates >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From timeless at gmail.com Sun Aug 3 03:35:32 2008 From: timeless at gmail.com (timeless) Date: Sun, 3 Aug 2008 03:35:32 -0700 Subject: [whatwg] Signatures In-Reply-To: <3586624e0807310433ydb1f689g6648bb362ef96757@mail.gmail.com> References: <01cd01c6cf2d$28710010$82c5a8c0@arport2v> <3586624e0611010022kcac5aa1ld5921705d2d31067@mail.gmail.com> <005e01c6fe58$c1e64a70$82c5a8c0@arport2v> <20061102095551.GA4979@malware> <3586624e0807310319k35241ffdr8c8c09dfc6ab9b35@mail.gmail.com> <3586624e0807310433ydb1f689g6648bb362ef96757@mail.gmail.com> Message-ID: <26b395e60808030335o5ef68b9bg6dd1e64bd2696263@mail.gmail.com> On Thu, Jul 31, 2008 at 4:33 AM, Channy Yun wrote: > The national PKI system has own certificate issuing process to citizen with > face-to-face meeting. And it requires to "submit ones client certificate" > for e-government and financial transaction with "digital signature" per each > signature. could you please provide example urls for this? I'm not quite sure I understand why standard certificate challenges are insufficient for this. oddly, my own bank does something like this w/ a java applet, except if i pretend to be a mobile client, it waves this stupid requirement. > "submit ones client certificate" is traditional SSL authentication and > "digital signature" is new requirement. > In fact, ActiveX and Java plugin are needed for digital signature. > If we can submit returned encrypted message in form via SSL, the technical > requirement is sufficient for all national PKI system. Especially, Camellia > (Japanese and European official cryptographic algorithm) already implemented > in Open SSL for web browsers. Most of them is ready. http://boblord.livejournal.com/16968.html It seems NSS supports it too. > server via SSL, web server can decrypt form data signed by client > certificate and check validation and insured transaction by each country's > law. urls for these "laws" would be appreciated. From christoph.paeper at crissov.de Sun Aug 3 05:35:03 2008 From: christoph.paeper at crissov.de (=?ISO-8859-1?Q?Christoph_P=E4per?=) Date: Sun, 3 Aug 2008 14:35:03 +0200 Subject: [whatwg] Application deployment In-Reply-To: <11e306600807280903r529a4b3el9f6bd235eac5208f@mail.gmail.com> References: <9A4E588F5D734EC7A0BB719BCD4C9C71@POCZTOWIEC> <11e306600807280903r529a4b3el9f6bd235eac5208f@mail.gmail.com> Message-ID: Robert O'Callahan: >> http://www.example.com/site.jar#/path/inside/foo.html#heading1 > > URL parsing doesn't support multiple fragment identifiers I'm surprised that RFC 3986 (like 2396) makes '#' reserved in fragment identifiers (only '[]', too). The fragment ID is terminated only by the end of the URI after all. The one reason for disallowing '#' I can think of is tokenization starting from the end of the string, but as far as I know that may fail for other parts. fragment = *( pchar / "/" / "?" ) pchar = unreserved / pct-encoded / sub-delims / ":" / "@" unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" pct-encoded = "%" HEXDIG HEXDIG sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "=" should work fine, though. -----8<--------8<--------8<--------8<--------8<--------8<--------8<----- I'm also surprised that RFC 3986 (unlike 2396) misses a section on US- ASCII characters deliberately excluded, i.e. and '"<>{}|\`^ ', previously also '[]'. I think reserved = gen-delims / sub-delims gen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@" ... should be something like reserved = delims / enclosing / unwise / controls delims = gen-delims / sub-delims enclosing = DQUOTE / "<" / ">" / SP unwise = "{" / "}" / "|" / "\" / "`" / "^" controls = %x00-1F / %x7F ... From christoph.paeper at crissov.de Sun Aug 3 05:49:25 2008 From: christoph.paeper at crissov.de (=?ISO-8859-1?Q?Christoph_P=E4per?=) Date: Sun, 3 Aug 2008 14:49:25 +0200 Subject: [whatwg] Joined blocks In-Reply-To: <489297CA.9050902@arc.net.au> References: <489297CA.9050902@arc.net.au> Message-ID: <3C9AB595-957C-4066-9B6F-A7694A75964E@crissov.de> Shannon: > Something I think is really missing from HTML is "linked text" Linked or continued (numbered, ordered) lists have been dicussed here a while ago, and were rejected if I remember correctly. They made a stronger use case than generic continued texts in my opinion, although both could be done the same way, i.e. with IDs and some sort of |continue| attribute. From jonas at sicking.cc Sun Aug 3 13:47:24 2008 From: jonas at sicking.cc (Jonas Sicking) Date: Sun, 03 Aug 2008 13:47:24 -0700 Subject: [whatwg] pushState In-Reply-To: References: <4889BFDF.7010003@sicking.cc> <488A496E.70604@sicking.cc> <488A6154.9080701@sicking.cc> <488ABBDC.5030308@sicking.cc> <488C7C25.7070003@sicking.cc> <488F57E4.9070508@sicking.cc> Message-ID: <4896195C.2040101@sicking.cc> Ian Hickson wrote: > On Tue, 29 Jul 2008, Jonas Sicking wrote: >> I'll check with the ECMA Script folks, but this one might be an >> alternative to link to: >> >> http://wiki.ecmascript.org/doku.php?id=es3.1:json_support >> >> State that the object passed as 'data' is passed to JSON.parse with the >> second argument not specified. Any exception thrown is forwarded out to >> the caller of pushState as usual. > > Interesting, thanks. Doesn't really define it clearly though. :-( > > >>>> When entering a SH state for which a Document has been destroyed, we >>>> load the URL associated with that SH entry. After the 'load' event >>>> for the Document has fired, and if a data object was provided in the >>>> pushState call for the SH entry, we fire a PopStateEvent event >>>> containing the data stored for the object. >>> How would this work with bookmarking? >> Just as specified (or at least intended) in the spec right now. >> >> Say that the user starts on page1.html >> >> (bookmarks page1.html) >> pushState("title", "data") >> (bookmarks page1.html) >> pushState("title", "data", "page2.html") >> (bookmarks page2.html) >> >> Additionally, a UA is free to add the ability to store the data >> parameter in its bookmark storage. For example firefox under some >> circumstances flags URIs in the bookmark store as POST URIs, i.e. they >> should be fetched with POST rather than GET (this is specifically for >> search engine bookmarks). Similarly the data can be stored alongside the >> URI for the bookmark, however this is optional, just like the fastback >> cache. > > The problem I have with this is that it increases the number of possible > user-visible behaviours and failure scenarios: > > - same Document, script knows how to handle data. > - different Document, script knows how to handle data. > - same URL, different Document, data ignored. > - different URL, different Document, script knows how to handle data, > but copying URL fails to work as expected. > - different URL, different Document, data ignored. I'm actually more worried about the URL thing causing bugs than the data thing. * To avoid bad user experience behavior the site has to send almost exactly the same markup for both URLs, i.e. both for the page that called pushState, and for the page served for the URL in the URL argument in the pushState call. * Entering a URL that is results in a 404 (or any other non-succcess value). This works fine when pushState is called, but fails on reload. This applies no matter which solution we choose for the data parameter. Additionally, if we allow the data parameter to be preserved across Document recreations there is also: * Both URLs have to react the same way when a popstate event is fired. However all these can be seen as variants of the first bullet. If the page serves the same markup it wouldn't be a 404, and it should deal fine with the popstate event. In other words. If a page uses pushState to transition from https://bugzilla.mozilla.org/show_bug.cgi?id=123456 to https://bugzilla.mozilla.org/show_bug.cgi?id=321321 then things are likely to work fine. However if a page tries to use pushState to transition between https://bugzilla.mozilla.org/show_bug.cgi?id=123456 and https://bugzilla.mozilla.org/query.cgi then the risk of something going wrong is quite big. I think this will be true no matter if the data parameter is supported or not. So I think we should either drop the URL argument entirely and say that URL transitions are too risky. Or we should leave the spec as is (but require that data is serializeable) and just encourage people not to transition between wildly different pages. Personally I think keeping the URL is fine. We can never entirely prevent pages from having bugs. But instead encourage the safe transitions, and always use safe-looking transitions in examples in the spec. / Jonas From bijumaillist at gmail.com Sun Aug 3 21:19:48 2008 From: bijumaillist at gmail.com (Biju Gm@il) Date: Mon, 4 Aug 2008 00:19:48 -0400 Subject: [whatwg] VIDEO tag height/width best fit Message-ID: <4a27dd80808032119pb79b724j6ce67b42cfcff2cd@mail.gmail.com> I apologize if I did not understood http://www.whatwg.org/specs/web-apps/current-work/#video I see a situation where we want to specify the height and width of the BOX in which a video need to be displayed. And while writing HTML code we dont know the height/width of the video. But when playing we want the video to be displayed with maximum size which can fit in the BOX without loosing the aspect ratio. After reading the