diff --git a/NEWS b/NEWS index 32725792..4df76546 100644 --- a/NEWS +++ b/NEWS @@ -12,6 +12,7 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier 4.3.1, unknown release date # URI.Munge now munges URIs inside the same host that go from https to http. Reported by Neike Taika-Tessaro. +! Added support for 'scope' attribute on tables. - Color keywords are now case insensitive. Thanks Yzmir Ramirez for reporting. - Explicitly initialize anonModule variable to null. diff --git a/docs/dev-progress.html b/docs/dev-progress.html index 714665b1..105896ed 100644 --- a/docs/dev-progress.html +++ b/docs/dev-progress.html @@ -255,7 +255,7 @@ Mozilla on inside and needs -moz-outline, no IE support. axisTD, THW3C only: No browser implementation charCOL, COLGROUP, TBODY, TD, TFOOT, TH, THEAD, TRW3C only: No browser implementation headersTD, THW3C only: No browser implementation -scopeTD, THW3C only: No browser implementation +scopeTD, THW3C only: No browser implementation diff --git a/library/HTMLPurifier/HTMLModule/Tables.php b/library/HTMLPurifier/HTMLModule/Tables.php index f314ced3..45c42bb3 100644 --- a/library/HTMLPurifier/HTMLModule/Tables.php +++ b/library/HTMLPurifier/HTMLModule/Tables.php @@ -37,6 +37,9 @@ class HTMLPurifier_HTMLModule_Tables extends HTMLPurifier_HTMLModule 'abbr' => 'Text', 'colspan' => 'Number', 'rowspan' => 'Number', + // Apparently, as of HTML5 this attribute only applies + // to 'th' elements. + 'scope' => 'Enum#row,col,rowgroup,colgroup', ), $cell_align );