Ticket #470 (closed defect: fixed)
onclick and only7BitPrintablesInURLs
| Reported by: | niko | Owned by: | gogo |
|---|---|---|---|
| Priority: | high | Milestone: | Version 1.0 |
| Component: | Xinha Core | Version: | |
| Severity: | major | Keywords: | onclick linker only7BitPrintablesInURLs %20 Stylist classes |
| Cc: |
Description
the new config.only7BitPrintablesInURLs introduced in changeset:264 (#167) causes problems in event-handlers. For example the following HTML-code:
<a href="#" onclick="alert( 'foo')"
gets converted into
<a href="#" onclick="alert(%20'foo')"
this happens in getHTML line 4769, because in line 4742 there is a /on/.test(name)
if (typeof root[a.nodeName] != "undefined" && name != "href" && name != "src" && !/^on/.test(name)) {
why is this necessary? these this only7BitPrintableInURLs should be only used for URL's (href and src)
a fix would be to remove the on, gogo please give your comment :D
...this bug(?) causes the Popup-Window functions of the Linker-Plugin fail.
Change History
Note: See
TracTickets for help on using
tickets.
