New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The span
element containing a style
tag causes markup corruption
#1915
Comments
Can you try the latest 2-0-stable branch and if it's still not working I'll reopen this issue. Thanks. |
I used
|
Can you try a span with a class instead of defining style directly? In my case when I tried to save page with Not sure how we should fix this. |
It works with Is it possible that the HTML validation is stripping the style attribute? |
It is possible. Can you check whether it's in the database after you save / whether it's being stripped out after it re-renders when you edit? |
The data stored in the database gets corrupted and the subsequent page rendering gets messed up. The effect is quite similar to #1891 and only difference is this issue existed as far back as 2.0.6. |
Great so that rules out the sanitize method as being the culprit thanks for doing that. This must be how wymeditor wants to work… can you add the same style attribute to any other kind of tag? Is it just span? |
Just the |
Maybe it's the fact that span is an inline tag vs a block tag such as div, p, table etc. At any rate it gives us something to investigate! |
When I save a page part with a
span
element containing thestyle
tag the markup gets corrupted .Gets saved as
I have seen this behavior in 2.0.6 and 2.0.8
The text was updated successfully, but these errors were encountered: