[TYPO3-RTE] Attribute lang vs xml:lang - Problems with the former

Martin Kutschker masi-no at spam-typo3.org
Wed Sep 24 16:25:51 CEST 2008


Martin Kutschker schrieb:
> Hi!
> 
> I want to enter and save SPAN tags with a lang attribute. I thought I
> managed this once but now the RTE kills all my lang attributes. After
> digging into the code I found the place where my attribute is removed.
> I'm not sure why this happens and what is the purpose of it.
> 
> The problem is in class.t3lib_parsehtml_proc.php. In the function
> getKeepTags() is some magic that tries to clean the SPAN on the way to
> the DB. By doing so it removes the attribute lang and title.
> 
> I want to allow these attributes in future versions of TYPO3. Any
> objections?
> 
> Can I overcome this problem by TS configuration in the meantime?

Just for the record: I tried to use xml:lang, but neither FF nor IE
support CSS3 attribute selectors with namespaces. So xml:lang is not an
option for now.

Masi


More information about the TYPO3-project-rte mailing list