Why does TinyMCE strip aways attributes or tags from my source?
You need to check out the “valid_elements” and “extended_valid_elements” option in the configuration. By default, TinyMCE only allows certain tags and attributes. TinyMCE also tries to follow the XHTML specification as much as possible (and so should you), this can cause some unexpected source changes, there are however configuration options to battle this issue, study the configuration options in details.