[xwiki-devs] [VOTE] Automatically add scope attribute in generated table header cells in XHTML renderer
Hi dev, For Dutch Web Guidelines validity a <th> have to contains scope attribute (scope="col" or scope="row") which means that default wiki tables are invalid currently. See http://www.w3.org/TR/xhtml2/mod-tables.html#non-visual-rendering for example of scope attribute use. I propose to modify XHTML renderer table header cell to do the following: * if a scope is explicitly provided reuse it * if there is no scope: ** if first line or not first column: <th scope="col"> ** if not first line and first column: <th scope="row"> I thing that covers most of the use cases and it will avoid having to set explicitly scope attribute in all our standard pages. WDYT ? -- Thomas Mortagne
On 05/25/2010 02:31 PM, Thomas Mortagne wrote:
Hi dev,
For Dutch Web Guidelines validity a<th> have to contains scope attribute (scope="col" or scope="row") which means that default wiki tables are invalid currently.
See http://www.w3.org/TR/xhtml2/mod-tables.html#non-visual-rendering for example of scope attribute use.
I propose to modify XHTML renderer table header cell to do the following: * if a scope is explicitly provided reuse it * if there is no scope: ** if first line or not first column:<th scope="col"> ** if not first line and first column:<th scope="row">
I thing that covers most of the use cases and it will avoid having to set explicitly scope attribute in all our standard pages.
WDYT ?
Big +1. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Considering the examples I think implementing this behavior would be good. +1. JV. On Tue, May 25, 2010 at 2:31 PM, Thomas Mortagne <[email protected]> wrote:
Hi dev,
For Dutch Web Guidelines validity a <th> have to contains scope attribute (scope="col" or scope="row") which means that default wiki tables are invalid currently.
See http://www.w3.org/TR/xhtml2/mod-tables.html#non-visual-rendering for example of scope attribute use.
I propose to modify XHTML renderer table header cell to do the following: * if a scope is explicitly provided reuse it * if there is no scope: ** if first line or not first column: <th scope="col"> ** if not first line and first column: <th scope="row">
I thing that covers most of the use cases and it will avoid having to set explicitly scope attribute in all our standard pages.
WDYT ?
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On Tue, May 25, 2010 at 14:31, Thomas Mortagne <[email protected]>wrote:
Hi dev,
For Dutch Web Guidelines validity a <th> have to contains scope attribute (scope="col" or scope="row") which means that default wiki tables are invalid currently.
See http://www.w3.org/TR/xhtml2/mod-tables.html#non-visual-rendering for example of scope attribute use.
I propose to modify XHTML renderer table header cell to do the following: * if a scope is explicitly provided reuse it * if there is no scope: ** if first line or not first column: <th scope="col"> ** if not first line and first column: <th scope="row">
Checking that there is more cells next to the th would be nice as well. It happens that you use a th covering a whole row (colspan) to split the table somehow with header. WDYT ? I thing that covers most of the use cases and it will avoid having to
set explicitly scope attribute in all our standard pages.
I hope so as well, but this could also produce wrong information... so I am +0 Denis -- Denis Gervalle SOFTEC sa - CEO eGuilde sarl - CTO
On Tue, May 25, 2010 at 15:13, Denis Gervalle <[email protected]> wrote:
On Tue, May 25, 2010 at 14:31, Thomas Mortagne <[email protected]>wrote:
Hi dev,
For Dutch Web Guidelines validity a <th> have to contains scope attribute (scope="col" or scope="row") which means that default wiki tables are invalid currently.
See http://www.w3.org/TR/xhtml2/mod-tables.html#non-visual-rendering for example of scope attribute use.
I propose to modify XHTML renderer table header cell to do the following: * if a scope is explicitly provided reuse it * if there is no scope: ** if first line or not first column: <th scope="col"> ** if not first line and first column: <th scope="row">
Checking that there is more cells next to the th would be nice as well. It happens that you use a th covering a whole row (colspan) to split the table somehow with header. WDYT ?
DWG just fail if any <th> does not have scope attribute.
I thing that covers most of the use cases and it will avoid having to
set explicitly scope attribute in all our standard pages.
I hope so as well, but this could also produce wrong information... so I am +0
I think other use cases are advanced enough for the user to be able to set proper explicit scope attribute where needed.
Denis
-- Denis Gervalle SOFTEC sa - CEO eGuilde sarl - CTO _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
On Tue, May 25, 2010 at 15:26, Thomas Mortagne <[email protected]>wrote:
On Tue, May 25, 2010 at 15:13, Denis Gervalle <[email protected]> wrote:
On Tue, May 25, 2010 at 14:31, Thomas Mortagne < [email protected]>wrote:
Hi dev,
For Dutch Web Guidelines validity a <th> have to contains scope attribute (scope="col" or scope="row") which means that default wiki tables are invalid currently.
See http://www.w3.org/TR/xhtml2/mod-tables.html#non-visual-rendering for example of scope attribute use.
I propose to modify XHTML renderer table header cell to do the following: * if a scope is explicitly provided reuse it * if there is no scope: ** if first line or not first column: <th scope="col"> ** if not first line and first column: <th scope="row">
Checking that there is more cells next to the th would be nice as well. It happens that you use a th covering a whole row (colspan) to split the table somehow with header. WDYT ?
DWG just fail if any <th> does not have scope attribute.
I thing that covers most of the use cases and it will avoid having to
set explicitly scope attribute in all our standard pages.
I hope so as well, but this could also produce wrong information... so I am +0
I think other use cases are advanced enough for the user to be able to set proper explicit scope attribute where needed.
Well, from our private discussion, this attribute is just insufficiant to properly describe real scope. so +1 finally.
Denis
-- Denis Gervalle SOFTEC sa - CEO eGuilde sarl - CTO _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Denis Gervalle SOFTEC sa - CEO eGuilde sarl - CTO
On May 25, 2010, at 2:31 PM, Thomas Mortagne wrote:
Hi dev,
For Dutch Web Guidelines validity a <th> have to contains scope attribute (scope="col" or scope="row") which means that default wiki tables are invalid currently.
stupid question: why didn't we see this before?
See http://www.w3.org/TR/xhtml2/mod-tables.html#non-visual-rendering for example of scope attribute use.
I propose to modify XHTML renderer table header cell to do the following: * if a scope is explicitly provided reuse it
What are the cases where the generated scope is invalid and would require the user to override it?
* if there is no scope: ** if first line or not first column: <th scope="col"> ** if not first line and first column: <th scope="row">
I thing that covers most of the use cases and it will avoid having to set explicitly scope attribute in all our standard pages.
WDYT ?
+1 in general. You say "most of the use cases". What use cases are not covered? Thanks -Vincent
On Tue, May 25, 2010 at 15:17, Vincent Massol <[email protected]> wrote:
On May 25, 2010, at 2:31 PM, Thomas Mortagne wrote:
Hi dev,
For Dutch Web Guidelines validity a <th> have to contains scope attribute (scope="col" or scope="row") which means that default wiki tables are invalid currently.
stupid question: why didn't we see this before?
See http://www.w3.org/TR/xhtml2/mod-tables.html#non-visual-rendering for example of scope attribute use.
I propose to modify XHTML renderer table header cell to do the following: * if a scope is explicitly provided reuse it
What are the cases where the generated scope is invalid and would require the user to override it?
For example if you want a scope=row in the cell 0:0 because column headers has "priority" over row in your use case.
* if there is no scope: ** if first line or not first column: <th scope="col"> ** if not first line and first column: <th scope="row">
I thing that covers most of the use cases and it will avoid having to set explicitly scope attribute in all our standard pages.
WDYT ?
+1 in general. You say "most of the use cases". What use cases are not covered?
I don't really though about it, there is always other use cases ;)
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
+1, Jerome. ----- "Thomas Mortagne" <[email protected]> wrote:
Hi dev,
For Dutch Web Guidelines validity a <th> have to contains scope attribute (scope="col" or scope="row") which means that default wiki tables are invalid currently.
See http://www.w3.org/TR/xhtml2/mod-tables.html#non-visual-rendering for example of scope attribute use.
I propose to modify XHTML renderer table header cell to do the following: * if a scope is explicitly provided reuse it * if there is no scope: ** if first line or not first column: <th scope="col"> ** if not first line and first column: <th scope="row">
I thing that covers most of the use cases and it will avoid having to set explicitly scope attribute in all our standard pages.
WDYT ?
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
+1 Thanks, Marius On 05/25/2010 03:31 PM, Thomas Mortagne wrote:
Hi dev,
For Dutch Web Guidelines validity a<th> have to contains scope attribute (scope="col" or scope="row") which means that default wiki tables are invalid currently.
See http://www.w3.org/TR/xhtml2/mod-tables.html#non-visual-rendering for example of scope attribute use.
I propose to modify XHTML renderer table header cell to do the following: * if a scope is explicitly provided reuse it * if there is no scope: ** if first line or not first column:<th scope="col"> ** if not first line and first column:<th scope="row">
I thing that covers most of the use cases and it will avoid having to set explicitly scope attribute in all our standard pages.
WDYT ?
participants (7)
-
Denis Gervalle -
Jean-Vincent Drean -
Jerome Velociter -
Marius Dumitru Florea -
Sergiu Dumitriu -
Thomas Mortagne -
Vincent Massol