Re: [whatwg] base64 entities

2010-08-27 Thread Adam Barth
On Thu, Aug 26, 2010 at 3:52 PM, Boris Zbarsky bzbar...@mit.edu wrote: On 8/26/10 6:45 PM, Adam Barth wrote: Note that this issue means that using atob or btoa for dealing with this is a huge pain if non-ASCII chars are involved, since those take and return byte arrays masquerading as JS

Re: [whatwg] Should events be paused on detached iframes?

2010-08-27 Thread Adam Barth
On Thu, Aug 26, 2010 at 12:27 AM, Boris Zbarsky bzbar...@mit.edu wrote: On 8/26/10 3:23 AM, James May wrote: Couldn't the iframe be kept alive, but remain associated with it's parent browsing context until (if) it was re-parented / inserted into a different document. (does this match what

[whatwg] Validator.nu Bug: Error: XHTML element noscript not allowed as child of XHTML element head in this context.

2010-08-27 Thread Hugh Guiney
I am using noscript as permitted, In a head element of an HTML document, if there are no ancestor noscript elements. but still getting an error from Validator.nu saying it's not allowed. Settings: Encoding: as set by server/page Schemas: http://s.validator.nu/xhtml5-aria-rdf-svg-mathml.rnc

Re: [whatwg] base64 entities

2010-08-27 Thread Julian Reschke
On 27.08.2010 00:45, Adam Barth wrote: ... Escaping just those character is insufficient. The appeal of this approach is that authors don't need the right blacklist of dangerous characters. By the way, there are already folks doing something similar manually now. They send the untrusted bytes

Re: [whatwg] Validator.nu Bug: Error: XHTML element noscript not allowed as child of XHTML element head in this context.

2010-08-27 Thread Anne van Kesteren
On Fri, 27 Aug 2010 11:10:44 +0200, Hugh Guiney hugh.gui...@gmail.com wrote: I am using noscript as permitted, In a head element of an HTML document, if there are no ancestor noscript elements. but still getting an error from Validator.nu saying it's not allowed. noscript is HTML-only. I.e.

Re: [whatwg] Should events be paused on detached iframes?

2010-08-27 Thread Olli Pettay
On 08/24/2010 11:38 PM, Adam Barth wrote: This seems related to the magic iframe concept that was recently added in WebKit. Basically, magic iframe lets you move an iframe from one document to another without blowing away the JavaScript/DOM state of the iframe. One thing not too clear in the

[whatwg] Allow Select SVG Elements In head

2010-08-27 Thread Hugh Guiney
I'm authoring an XHTML host document with namespaced inline SVG and XLink. I have vector images that recur throughout the site. I'd like to implement SVG's defs and use to reduce the file size of the document and keep style separate from content, as with CSS. If I put an SVG tree with defs

Re: [whatwg] Validator.nu Bug: Error: XHTML element noscript not allowed as child of XHTML element head in this context.

2010-08-27 Thread Julian Reschke
On 27.08.2010 12:32, Hugh Guiney wrote: Ah, thanks. I guess the error is just confusing then in that it calls it XHTML element noscript, which led me to think that it was indeed part of XHTML. I think some indication otherwise might prove beneficial to users. But, I thought XHTML5 was just an

[whatwg] Cache manifests and cross-origin resources

2010-08-27 Thread Anne van Kesteren
With the current model makingyourinterwebsboring.com can define a cache manifest and basically point to a lot of external news sites. When any of those sites is then fetched directly they would be taken from the cache. That does not seem optimal. -- Anne van Kesteren

Re: [whatwg] Cache manifests and cross-origin resources

2010-08-27 Thread Rob Crowther
Anne van Kesteren wrote: With the current model makingyourinterwebsboring.com can define a cache manifest and basically point to a lot of external news sites. When any of those sites is then fetched directly they would be taken from the cache. That does not seem optimal. Seems handy if you

Re: [whatwg] Cache manifests and cross-origin resources

2010-08-27 Thread Ian Hickson
On Fri, 27 Aug 2010, Anne van Kesteren wrote: With the current model makingyourinterwebsboring.com can define a cache manifest and basically point to a lot of external news sites. When any of those sites is then fetched directly they would be taken from the cache. That does not seem

Re: [whatwg] base64 entities

2010-08-27 Thread Aryeh Gregor
2010/8/26 Kornel Lesiński kor...@geekhood.net: Inside strings you replace / with \/ (\/ is valid escape sequence for /), outside strings you'd need to add space between / (a corner case x /regexliteral/). In other words, there's no general way to do it without actually parsing the JavaScript.

Re: [whatwg] Validator.nu Bug: Error: XHTML element noscript not allowed as child of XHTML element head in this context.

2010-08-27 Thread Aryeh Gregor
On Fri, Aug 27, 2010 at 6:32 AM, Hugh Guiney hugh.gui...@gmail.com wrote: But, I thought XHTML5 was just an XML serialization of HTML5, so why is this the case? I just read the rationale behind it, but despite not being best practice shouldn't it be at the very least allowed? This is guesswork

Re: [whatwg] base64 entities

2010-08-27 Thread Gordon P. Hemsley
On Fri, Aug 27, 2010 at 2:44 PM, Aryeh Gregor simetrical+...@gmail.com wrote: PHP offers no JS-string-literal-escape function. `addslashes` is very close, but won't handle some cases with non-ASCII characters correctly. Better to use `json_encode` to transfer the string, then write as text:

Re: [whatwg] Cache manifests and cross-origin resources

2010-08-27 Thread Michael Nordman
On Fri, Aug 27, 2010 at 11:21 AM, Ian Hickson i...@hixie.ch wrote: On Fri, 27 Aug 2010, Anne van Kesteren wrote: With the current model makingyourinterwebsboring.com can define a cache manifest and basically point to a lot of external news sites. When any of those sites is then fetched

Re: [whatwg] Firing popstate for all history entry changes

2010-08-27 Thread Ian Hickson
On Wed, 25 Aug 2010, Mihai Parparita wrote: [...] it seems like the (web) developer's mental model for popstate would be much simpler if it fired whenever the current session history entry changed, regardless of whether it has a state object or was the first entry. Then if someone wished

Re: [whatwg] Firing popstate for all history entry changes

2010-08-27 Thread Mihai Parparita
On Fri, Aug 27, 2010 at 4:03 PM, Ian Hickson i...@hixie.ch wrote: Ok, I've changed popstate to get fired (or queued up, if before 'load') for every traversal, not just those to non-null states. Thanks, http://html5.org/tools/web-apps-tracker?from=5376to=5377 looks good to me. BTW, there's

Re: [whatwg] oninput for contentEditable

2010-08-27 Thread Ojan Vafai
WebKit has added the input event to contentEditable nodes. That part of this proposal seemed non-controversial. Do other browser vendors support changing the description of this event to apply to contentEditable nodes as well? Ojan On Wed, Jun 16, 2010 at 5:33 PM, Ojan Vafai o...@chromium.org

[whatwg] Have tabstrip / tab elements been discussed?

2010-08-27 Thread E.J. Zufelt
Good evening, I am rather new to this list and am curious if anytime recently there has been discussion about adding tabstrip and tab elements to the html5 spec? The concept of a tabstrip is a rather commonly used UI component on the web (web-applications, content management systems, facetted

Re: [whatwg] Have tabstrip / tab elements been discussed?

2010-08-27 Thread E.J. Zufelt
On 2010-08-28, at 12:59 AM, Nils Dagsson Moskopp wrote: E.J. Zufelt li...@zufelt.ca schrieb am Sat, 28 Aug 2010 00:54:06 -0400: […] I am rather new to this list and am curious if anytime recently there has been discussion about adding tabstrip and tab elements to the html5 spec? The