HX Bug: script encoding

HelpXplain is the exciting new animated infographics and screencast tool that integrates with Help+Manual.

Moderators: Alexander Halser, Tim Green

Post Reply
User avatar
Martin Wynne
Posts: 2656
Joined: Mon May 12, 2003 3:21 pm
Location: West of the Severn, UK

HX Bug: script encoding

Unread post by Martin Wynne »

There seems to be an encoding bug in HX for object scripts. Quote characters are being encoded as ' apostrophe:

hx_quote_bug.png

which appears in the .html file as:

Code: Select all

onclick="javascript:alert('test');"
I said seems to be, because most browsers seem willing to accept this. But it doesn't look good to me, and I feel sure it will cause grief sooner or later.

cheers,

Martin.
You do not have the required permissions to view the files attached to this post.
User avatar
Alexander Halser
EC-Software Support
Posts: 4098
Joined: Mon Jun 24, 2002 7:24 pm
Location: Salzburg, Austria
Contact:

Re: HX Bug: script encoding

Unread post by Alexander Halser »

Hi Martin,

To my best knowledge, escaping quotes is valid in a javascript call. But this actually has a functionality as well. HelpXplain uses double quotes to enclose the entire javascript string. Escaping quotes inside the string helps to make them work even if you use double-quotes in your alert() call. That would not work without escapement.
Alexander Halser
Senior Software Architect, EC Software GmbH
Post Reply