1

Topic: Permitting "name" attribute for "div"

Hi,

How to keep the attribute "name" in a "div"  ?
I tried to change $config parameters but "name" is always removed.

Thanks for help

2

Re: Permitting "name" attribute for "div"

As per the standard specifications (http://xhtml.com/en/xhtml/reference/div/#div-attributes), the 'div' element isn't supposed to have a 'name' attribute, and thus 'name' in 'div' gets removed by htmLawed. There's no configurable parameter to bypass this. To get around, you'll have to add 'div' to the 'name' sub-array within the large '$aN' array in the code for function 'hl_tag' in htmLawed.php so that it looks like:

// open tag & attr
static $aN = array('abbr' ... 'name'=>array('div'=>1, 'button'=>1, 'embed' ... );