| Summary: | [Intro] When introPage is "content" javascript cannot be executed if the script contains '<', '>' or '&' | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Mickael Istria <mistria> | ||||
| Component: | User Assistance | Assignee: | platform-ua-inbox <platform-ua-inbox> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | schneider | ||||
| Version: | 3.6.1 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | stalebug | ||||||
| Attachments: |
|
||||||
I just try to create an IIntroXHTMLContentProvider to inject the JavaScript into the page, but it has the same limitations that by directly writing JavaScript in the page. There is currently no workaroud. it works fine over here (indigo on win64) if you put a //<![CDATA[ at the beginning and //]]> at the end of the javascript. Seems it just has to be valid xml overall. So this bug is invalid. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. If the bug is still relevant, please remove the "stalebug" whiteboard tag. |
Created attachment 185042 [details] Some XHTML intro pages that shows some failing JS scripts when loaded as "content" in "introContent.xml" Link the product with an introContent.xml, and load an xhtml page using "content" attribute (not "url"). Whenever the script contains an '<', '>' or '&' character, either in an inlined script in the html document, or in a referenced script in an external JS file, there is no way to get it working. I tried escaping characters to their HTML replacement, using CDATA, externalizing script, and I think all combinations of the 3, but couldn't get such scripts working. See attachement for examples.