All project content is available for reading, but you need to be a member of the project for Subversion checkout of source code, or to create/modify any information.
Login if you are a member. Apply here to request membership (open to all).

Ticket #281 (assigned defect)

Opened 6 years ago

Last modified 6 years ago

Problems when using ViewStateHelper

Reported by: anders.vestberg@… Owned by: thomas.leela@…
Priority: minor Component: EmailObfuscator
Keywords: Cc:


Not sure if this really is a defect or not, but the obfuscator does not render correctly when you are using the ViewStateMover that ships with EPiServer (and I think this is nothing that occurs only on my side). Apart from moving the actual viewstate, the ViewStateMover also moves some inline script-blocks, which causes the email-link (rendered by the "dc" js-function) to be rendered directly before the next element in the markup, i.e., after any literal text coming after the link.

Example (just from my head):

Text before <a href="mailto:mail@foo.bar">mailto:mail@foo.bar</a> text after

is rendered as

Text before <img class="obfs".... style="display:none;"/> text after
<script text="javascript/text">
<!-- document.write(".....")-->

I guess it will be hard to go around this from within the obfuscator code. Perhaps we can tag the obfuscator script blocks some IDs and skipping those in the ViewStateMover. Anyways, now you know. :)

Change History

comment:1 Changed 6 years ago by geir.allan.hove@…

  • Owner changed from geir.allan.hove@… to thomas.leela@…
  • Status changed from new to assigned

We have tried to re-create the situation, but not succeed. Do you have the original HTML file ?

Note: See HelpUser/Tickets for help on using tickets.