Suggest a new tag:
To provide a standardize way to tell tools like html tidy that the code in that section should not be reformatted without an explicit override. It would do nothing in the browser. Some markup is best left as is. For example, tables, embedded structured data, etc.
Whitis 21:51, 6 May 2009 (UTC)
I would recommend asking the developers of the tools you use (e.g. tidy) to support a "class" value that would do this, that way it can work even with HTML4 documents, no need to add an element or anything. Hixie 21:55, 6 May 2009 (UTC)
No good. That would be specific to individual tools. There needs to be a standard used by all tools. If you want to include a standard class instead of a tag, that is fine. But it should be mentioned in the markup spec as that is one document that all the the tool developers will read. This does fall within the domain of the spec, just as providing print media support, handicapped support, etc. View source (or edit) is another presentation.
Consider this a source code accessibility issue. Whitis 07:25, 7 May 2009 (UTC)
4.11.2 datagrid element/folds/tabs Note: this comment and the ones which follow evolved as they were written. Some evolved with parts moving from tags to attributes or to CSS. Some evolved with new names based on finding existing precedent. Some of the changes were backpatched into the text, but not all.
There should also be a <fold> tag (or equivalent functionality) that is very similar but less table/list oriented. <fold status="open">
Attributes might be another way to do this which avoids inserting a tag between body and h2.
<fold_title>Blah blah </fold_title>
Absence of fold attribute makes it unfoldable unless the user allows it.
This is similar to the hidden attribute but with some key differences. A fold Icon would still be present, along with descriptive text. Folding and unfolding would be accomplished by the user agent without any scripts to set the disabled attribute. In the case of sections, there would be special handling in that the text of any H1...H6 tag would not go away when folded. For other contexts, there may need to be a <fold_title>...</fold_title> or similar tag or a fold_title="tagname" attribute that lists what tag contents will be displayed when folded.This can be done in CSS as well. However folds and tabs are a basic logical construct and could exist in both domains. If the basic construct isn't defined at the HTML level, documents will be missing fold/tab titles that can be used by user stylesheets or user controls to override document behavior. Even if new tags/attributes are not defined, the basic markup usingor(or other elements which can also be tabbed or folded) should be mentioned in the HTML5 spec.
I.E. This is how you define where the folds/tabs would occur and this is what to use for a title and CSS is used to make it actually happen. You can not leave this to be fragmented by different folks using different classes. Since class allows multiple classes to be specifified, standard classes could be used while still retaining the ability to style each object individually (or as a subgroup) by specifying multiple classes. HTML5 at least needs to specify the classes to be used and make sure that the classes alone are adequate.Now technically, datagrid allows flow context. It is not at all clear how it handles flow content. The spaces for examples desparately need to be filled in and more examples given (flow content, sections, lists). If you are going to use it like the fold tag/attribute, <section> should be explictly mentioned and an example given, as that is an important case, though not the only one. As should numbered/unnumbered lists and definition lists.
- <fold_title>Blah blah </fold_title>