Jan 19, 2010 at 12:45 PM
Edited Jan 19, 2010 at 3:56 PM
I have updated our WYSIWIG to output better formed HTML, so we now have attribute names properly quoted e.g.
However i'm still having issues....
From what I can tell, the reason x_ is prepended to an attribute is if the attribute filter rule (attrAction) is set to "PrefixNameList"
There is a table type structure called "HtmlFilterData.filterInstructions" which contains all the "rules" for filtering.
The action is set in the lines below, notably this.filterForFragment is set to true when using GetSafeHTMLFragment()
attrAction = this.filterForFragment ?
When passing in <p
when using the debugger I can see "attribute.NameIndex = Class"
And the actions are as follows:
attrAction = Keep
attrFragmentAction = PrefixNameList
So it looks as though the code is designed to prepend x_ for attribute "class"
Thougth i'm not sure if it is just for <p> tag - however quickly testing for <div> and <span> has a similar result.
Is this a misconfiguration of filterInstructions or is there a reason for this behaviour?