diff options
author | Korrawit Pruegsanusak <detective.conan.1412@gmail.com> | 2011-12-02 22:27:03 +0700 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2012-02-10 17:55:00 +0100 |
commit | 156670a5401b55f5b9a938c6d673f27137077e09 (patch) | |
tree | 4b334d6a02d3d646d59e5acc6e4ae793eb5365c4 /helpcontent2/prj/build.lst | |
parent | 939e7316dec9d919b4e93aefcf9e38680c015cec (diff) |
fdo#42924 don't ignore empty TableCell Element, also check if it's a header
Checking whether an empty TableCell Element is a header row is now in 2 cases:
* | e | h | h | h | h | ... => The empty cell should be a header
This case occurs when this row is the first row in the table.
* | h | p | p | e | p | ... => The empty cell should not be a header
This case occurs when this row is not the first row in the table,
but the first column is the row header.
where | is a column seperator, e is an empty cell, h is a header cell
(which has role="tablehead" attribute), and p is not a header cell.
Note that parsing occurs left-to-right, so isTableHeader depends on
the last TableCell Element in that row. I assume that if the last element
is a header, that row should be a header row.
Currently this code gives correct behaviour, but checking whether a row
is the first row might be more correct.
Signed-off-by: Petr Mladek <pmladek@suse.cz>
Diffstat (limited to 'helpcontent2/prj/build.lst')
0 files changed, 0 insertions, 0 deletions