Added a utility section to the HTMLCS file: - isStringEmpty will be moved into there (currently dupe pending changes to sniffs). - isLayoutTable (unimplemented) is planned to try to detect whether a table is a layout or data table, because certain things only apply to data tables (eg. caption and summary attrs). Currently returns false because HTMLCS presumes all tables are data tables at this stage. - getCellHeaders (implemented) will take a cell, and grab the table headers from its table and provide a correct headers attribute for that cell. Exposed here (as well as in the WCAG2 1_3_1 test, which does error checking) so that other things can hook into it.
Added a utility section to the HTMLCS file:
- isStringEmpty will be moved into there (currently dupe pending changes to sniffs).
- isLayoutTable (unimplemented) is planned to try to detect whether a table is a layout or data table, because certain things only apply to data tables (eg. caption and summary attrs). Currently returns false because HTMLCS presumes all tables are data tables at this stage.
- getCellHeaders (implemented) will take a cell, and grab the table headers from its table and provide a correct headers attribute for that cell. Exposed here (as well as in the WCAG2 1_3_1 test, which does error checking) so that other things can hook into it.

squizlabs/HTML_CodeSniffer,lwright-sq/HTML_CodeSniffer,ironikart/HTML_CodeSniffer,ironikart/HTML_CodeSniffer,lwright-sq/HTML_CodeSniffer,telesma/HTML_CodeSniffer,daam/HTML_CodeSniffer,adelevie/HTML_CodeSniffer,daam/HTML_CodeSniffer,lwright-sq/HTML_CodeSniffer,adelevie/HTML_CodeSniffer,ironikart/HTML_CodeSniffer,telesma/HTML_CodeSniffer,telesma/HTML_CodeSniffer,adelevie/HTML_CodeSniffer,squizlabs/HTML_CodeSniffer,squizlabs/HTML_CodeSniffer,daam/HTML_CodeSniffer