I have a custom ckeditor style called "Maori words" which adds a span tag around the word with the attribute lang="mi". When I have the Correct faulty and chopped off HTML filter turned on I get output that looks like this:

<span lang="mi" xml:lang="mi" xml:lang="mi">

As soon as I turn the filter off it fixes all instances of this and just outputs:

<span lang="mi" xml:lang="mi">

What is causing this? It seems to only happen on some instances of the span, like it's adding an additional xml:lang attribute when there's already one there. The other filters I'm using are Correct URLs with Pathologic and Convert URLs into links.

Comments

mkesicki’s picture

Status: Active » Postponed (maintainer needs more info)

I think that some of your example code was stripped. Please paste it one more time (use "code" tag if it is striped).

acbramley’s picture

Woops, edited and fixed.

mkesicki’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)
acbramley’s picture

Status: Closed (won't fix) » Active

What do you mean it won't fix? It's clearly doing something that it shouldn't and producing invlaid markup.

mkesicki’s picture

You wrote http://drupal.org/node/1341550#comment-5248790 that it's fixed, so I think it's ok now. Ok we will check this.

acbramley’s picture

Sorry I meant I fixed the example code being stripped :)

dczepierga’s picture

Status: Active » Postponed (maintainer needs more info)

Hi,
Try in your CKEditor profile change option "Use Drupal text format filters" to "Disabled" (this option is in "Security" section) and save profile. After this check does it help or not.

Greetings

acbramley’s picture

Aaaah I think this might be what is going wrong, I had that enabled and in the text format I had the same option "Correct faulty and chopped off HTML" checked. Disabling that filter in the text format fixes it. Do you think that would be what was causing it?

dczepierga’s picture

Status: Postponed (maintainer needs more info) » Fixed

I think this was problem with option "Use Drupal text format filters", because when is enabled CKEditor module on start is calling function which enable Drupal text format processing with all filters enabled for used text format. Then it could add your span with lang attribute two times...

Greetings

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

added code tags