mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-22 08:21:52 +00:00
Add support for scope attribute on td and th.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
parent
d45e11cc6b
commit
1255d0f15d
1
NEWS
1
NEWS
@ -12,6 +12,7 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier
|
|||||||
4.3.1, unknown release date
|
4.3.1, unknown release date
|
||||||
# URI.Munge now munges URIs inside the same host that go from https
|
# URI.Munge now munges URIs inside the same host that go from https
|
||||||
to http. Reported by Neike Taika-Tessaro.
|
to http. Reported by Neike Taika-Tessaro.
|
||||||
|
! Added support for 'scope' attribute on tables.
|
||||||
- Color keywords are now case insensitive. Thanks Yzmir Ramirez
|
- Color keywords are now case insensitive. Thanks Yzmir Ramirez
|
||||||
<yramirez-htmlpurifier@adicio.com> for reporting.
|
<yramirez-htmlpurifier@adicio.com> for reporting.
|
||||||
- Explicitly initialize anonModule variable to null.
|
- Explicitly initialize anonModule variable to null.
|
||||||
|
@ -255,7 +255,7 @@ Mozilla on inside and needs -moz-outline, no IE support.</td></tr>
|
|||||||
<tr class="feature"><td>axis</td><td>TD, TH</td><td>W3C only: No browser implementation</td></tr>
|
<tr class="feature"><td>axis</td><td>TD, TH</td><td>W3C only: No browser implementation</td></tr>
|
||||||
<tr class="feature"><td>char</td><td>COL, COLGROUP, TBODY, TD, TFOOT, TH, THEAD, TR</td><td>W3C only: No browser implementation</td></tr>
|
<tr class="feature"><td>char</td><td>COL, COLGROUP, TBODY, TD, TFOOT, TH, THEAD, TR</td><td>W3C only: No browser implementation</td></tr>
|
||||||
<tr class="feature"><td>headers</td><td>TD, TH</td><td>W3C only: No browser implementation</td></tr>
|
<tr class="feature"><td>headers</td><td>TD, TH</td><td>W3C only: No browser implementation</td></tr>
|
||||||
<tr class="feature"><td>scope</td><td>TD, TH</td><td>W3C only: No browser implementation</td></tr>
|
<tr class="impl-yes"><td>scope</td><td>TD, TH</td><td>W3C only: No browser implementation</td></tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
<tbody class="impl-yes">
|
<tbody class="impl-yes">
|
||||||
|
@ -37,6 +37,9 @@ class HTMLPurifier_HTMLModule_Tables extends HTMLPurifier_HTMLModule
|
|||||||
'abbr' => 'Text',
|
'abbr' => 'Text',
|
||||||
'colspan' => 'Number',
|
'colspan' => 'Number',
|
||||||
'rowspan' => 'Number',
|
'rowspan' => 'Number',
|
||||||
|
// Apparently, as of HTML5 this attribute only applies
|
||||||
|
// to 'th' elements.
|
||||||
|
'scope' => 'Enum#row,col,rowgroup,colgroup',
|
||||||
),
|
),
|
||||||
$cell_align
|
$cell_align
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user