Re: [whatwg] Allowing in attribute values

2010-08-09 Thread Ian Hickson
On Wed, 23 Jun 2010, Benjamin M. Schwartz wrote: The HTML5 spec appears to allow inside an attribute value. For example, the following page (note the body tag) passes the experimental HTML5 validator at w3c.org: !DOCTYPE HTMLhtmlheadtitle/title/head body class=32 /body/html I think

Re: [whatwg] Allowing in attribute values

2010-06-29 Thread Skrol29
It seems like what you want here is for browsers to parse as they do now, but a particular subset of browser-accepted syntax to be enshrined so that when defining your restrictions over content you control you can just say follow the spec instead of follow the spec and don't put '' in

Re: [whatwg] Allowing in attribute values

2010-06-29 Thread Boris Zbarsky
On 6/29/10 5:56 AM, Skrol29 wrote: It seems like what you want here is for browsers to parse as they do now, but a particular subset of browser-accepted syntax to be enshrined so that when defining your restrictions over content you control you can just say follow the spec instead of follow the

Re: [whatwg] Allowing in attribute values

2010-06-25 Thread Skrol29
On 24 Jun 2010, at 14:11, Benjamin M. Schwartz wrote: Why would it simplify parsing? It greatly simplifies parsing when you just want to extract entire tags, without immediately parsing the attributes. If you mean parsing with regular expressions, then I think that's a bad practice and

Re: [whatwg] Allowing in attribute values

2010-06-25 Thread David Workman
I disagree, there are so many other things you need to take account of if you were (for example) getting all the text out of an HTML document. Text and markup in comment nodes would just through a spanner in the works for starters. It all boils down to the fact that the only thing disallowing in

Re: [whatwg] Allowing in attribute values

2010-06-25 Thread Lachln Hunt
On 2010-06-25 11:46, Skrol29 wrote: A agree disallowing chars in attributes greatly simplifies parsing. Not only with regular expressions, but any parsing. If are allowed, it means that in order to found the end of the element you do have to read all attributes before. This is very costy. Just

Re: [whatwg] Allowing in attribute values

2010-06-25 Thread Kornel Lesinski
A agree disallowing chars in attributes greatly simplifies parsing. Not only with regular expressions, but any parsing. If are allowed, it means that in order to found the end of the element you do have to read all attributes before. This is very costy. You just need two extra states in the

Re: [whatwg] Allowing in attribute values

2010-06-25 Thread Ashley Sheridan
On Fri, 2010-06-25 at 13:28 +0100, Kornel Lesinski wrote: A agree disallowing chars in attributes greatly simplifies parsing. Not only with regular expressions, but any parsing. If are allowed, it means that in order to found the end of the element you do have to read all attributes

Re: [whatwg] Allowing in attribute values

2010-06-25 Thread Philip Taylor
On Thu, Jun 24, 2010 at 2:34 PM, Benjamin M. Schwartz bmsch...@fas.harvard.edu wrote: [...] HTML5 is about making a spec that matches common practice, right?  In practice, no one puts in attribute values. The data disagrees: http://philip.html5.org/data/gt-in-attribute.txt -- Philip Taylor

Re: [whatwg] Allowing in attribute values

2010-06-25 Thread Skrol29
-Message d'origine- De : Lachln Hunt [mailto:lachlan.h...@lachy.id.au] Envoyé : vendredi 25 juin 2010 14:18 À : Skrol29 Cc : 'WHAT Working Group'; b...@alum.mit.edu Objet : Re: [whatwg] Allowing in attribute values On 2010-06-25 11:46, Skrol29 wrote: A agree disallowing chars

Re: [whatwg] Allowing in attribute values

2010-06-25 Thread Julian Reschke
On 25.06.2010 15:52, Skrol29 wrote: ... Allowing in attributes is a small gift of tolerance for webmasters, but implies major complications for the industry. Disallowing falls within the purpose of simplifying the grammar, like when XHTML disallowed the uppercase for element and attribute

Re: [whatwg] Allowing in attribute values

2010-06-25 Thread Boris Zbarsky
On 6/25/10 9:52 AM, Skrol29 wrote: In another hand, in the industry the tolerance to the spec is often very low in order build simple, fast and robust processes. They are also many parsing purposes that care about some elements and don't care about others. As I see it, there are two

Re: [whatwg] Allowing in attribute values

2010-06-25 Thread Benjamin M. Schwartz
On 06/25/2010 11:50 AM, Boris Zbarsky wrote: It seems like what you want here is for browsers to parse as they do now, but a particular subset of browser-accepted syntax to be enshrined so that when defining your restrictions over content you control you can just say follow the spec instead of

Re: [whatwg] Allowing in attribute values

2010-06-25 Thread Mike Shaver
One advantage is almost the same as your footnote: JavaScript source is permitted in the values of many attributes, and can certainly contain the operator. On Jun 25, 2010 12:34 PM, Benjamin M. Schwartz bmsch...@fas.harvard.edu wrote: On 06/25/2010 11:50 AM, Boris Zbarsky wrote: It seems like

Re: [whatwg] Allowing in attribute values

2010-06-24 Thread Anne van Kesteren
On Thu, 24 Jun 2010 04:13:56 +0200, Benjamin M. Schwartz bmsch...@fas.harvard.edu wrote: The HTML5 spec appears to allow inside an attribute value. For example, the following page (note the body tag) passes the experimental HTML5 validator at w3c.org: !DOCTYPE HTMLhtmlheadtitle/title/head

Re: [whatwg] Allowing in attribute values

2010-06-24 Thread Henri Sivonen
Benjamin M. Schwartz bmsch...@fas.harvard.edu wrote: The HTML5 spec appears to allow inside an attribute value. For example, the following page (note the body tag) passes the experimental HTML5 validator at w3c.org: !DOCTYPE HTMLhtmlheadtitle/title/head body class=32 /body/html I

Re: [whatwg] Allowing in attribute values

2010-06-24 Thread Brett Zamir
On 6/24/2010 10:13 AM, Benjamin M. Schwartz wrote: The HTML5 spec appears to allow inside an attribute value. For example, the following page (note the body tag) passes the experimental HTML5 validator at w3c.org: !DOCTYPE HTMLhtmlheadtitle/title/head body class=32 /body/html I think should

Re: [whatwg] Allowing in attribute values

2010-06-24 Thread Julian Reschke
On 24.06.2010 10:00, Henri Sivonen wrote: Benjamin M. Schwartzbmsch...@fas.harvard.edu wrote: The HTML5 spec appears to allow inside an attribute value. For example, the following page (note the body tag) passes the experimental HTML5 validator at w3c.org: !DOCTYPE

Re: [whatwg] Allowing in attribute values

2010-06-24 Thread Benjamin M. Schwartz
On 06/24/2010 03:43 AM, Anne van Kesteren wrote: Why would it simplify parsing? It greatly simplifies parsing when you just want to extract entire tags, without immediately parsing the attributes. It's rather nice to allow it for the iframe srcdoc feature. The srcdoc already needs to be

Re: [whatwg] Allowing in attribute values

2010-06-24 Thread Benjamin M. Schwartz
On 06/24/2010 05:22 AM, Brett Zamir wrote: I do not see any reference to this in the XHTML 1.0 specification (nor XHTML 1.1), and in XML, section 2.4, it states only that it must be escaped if part of the sequence ]] in content, which I guess means only element content. E4X also does not

Re: [whatwg] Allowing in attribute values

2010-06-24 Thread Julian Reschke
On 24.06.2010 15:34, Benjamin M. Schwartz wrote: On 06/24/2010 05:22 AM, Brett Zamir wrote: I do not see any reference to this in the XHTML 1.0 specification (nor XHTML 1.1), and in XML, section 2.4, it states only that it must be escaped if part of the sequence ]] in content, which I guess

Re: [whatwg] Allowing in attribute values

2010-06-24 Thread Kornel Lesinski
On 24 Jun 2010, at 14:11, Benjamin M. Schwartz wrote: Why would it simplify parsing? It greatly simplifies parsing when you just want to extract entire tags, without immediately parsing the attributes. If you mean parsing with regular expressions, then I think that's a bad practice and

Re: [whatwg] Allowing in attribute values

2010-06-24 Thread Tab Atkins Jr.
On Thu, Jun 24, 2010 at 8:20 AM, Benjamin M. Schwartz bmsch...@fas.harvard.edu wrote: On 06/24/2010 11:04 AM, Kornel Lesinski wrote: If you mean parsing with regular expressions, then I think that's a bad practice and shouldn't be encouraged. Worldwide, regarding HTML, I'm sure there is 100

Re: [whatwg] Allowing in attribute values

2010-06-24 Thread Ashley Sheridan
On Thu, 2010-06-24 at 09:01 -0700, Tab Atkins Jr. wrote: On Thu, Jun 24, 2010 at 8:20 AM, Benjamin M. Schwartz bmsch...@fas.harvard.edu wrote: On 06/24/2010 11:04 AM, Kornel Lesinski wrote: If you mean parsing with regular expressions, then I think that's a bad practice and shouldn't be

Re: [whatwg] Allowing in attribute values

2010-06-24 Thread Aryeh Gregor
On Thu, Jun 24, 2010 at 9:34 AM, Benjamin M. Schwartz bmsch...@fas.harvard.edu wrote: HTML5 is about making a spec that matches common practice, right?  In practice, no one puts in attribute values. HTML5 matches common practice when necessary to ensure interoperability. That doesn't apply to

[whatwg] Allowing in attribute values

2010-06-23 Thread Benjamin M. Schwartz
The HTML5 spec appears to allow inside an attribute value. For example, the following page (note the body tag) passes the experimental HTML5 validator at w3c.org: !DOCTYPE HTMLhtmlheadtitle/title/head body class=32 /body/html I think should be disallowed inside attribute values. It is