Ticket #591 (closed defect: fixed)
Bug - Entering Javascript - Onclick function containing HTML code (brackets)
| Reported by: | mind.warp@… | Owned by: | gogo |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | Xinha Core | Version: | trunk |
| Severity: | major | Keywords: | javascript corrupt bug |
| Cc: |
Description
Here's the scenario...
We're using Xinha as part of a homebrew CMS for an intranet site. We also use a lot of Overlib (a javacript popup tool) on our sites. It was from this we found the bug.
If we do something like
<img src="foo.gif" onclick="return overlib('<a href="#">Click here</a>');"/>
Xinha completely freaks out. Switching back and forth between Source and WYSIWYG corrupts everything. We lose everything we made.
This is using the newest version.
Other WYSIWYG like regular HtmlArea? and FCKeditor handle this fine. But I like Xinha more and it's too late to switch to another.
Currently the ONLY way we can work around this is replacing the < and > symbols with lt and gt versions. But we can't make sure people will always do this.
