Opened 7 years ago

Closed 7 years ago

#9905 closed Bug (expired)

Dynamic element creation causes problems with HTMLUnit

Reported by: waterdev Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

Hi,

when using CKEditor in automated tests using htmlunit-2.11 instead of a browser an error occurs.

Reason: The following content shall be added dynamically to the DOM tree:

<iframe style="width:100%;height:100%" frameBorder="0" aria-describedby="cke_66" title="Rich text editor, Lalala, Press ALT 0 for help" src="javascript:void(function(){document.open()%3Bdocument.close()%3B}())" tabIndex="0" allowTransparency="true"></iframe>

The problem is that the javascript is invalid (%3B instead of ;). Therefor the Rhino JS Engine crashes.

Best regards, Andreas

Change History (2)

comment:1 Changed 7 years ago by Jakub Ś

Status: newpending

Hi,

I may be wrong but I would like to make few things clear.

My question is: if it works in a browser, how do you know that this is not htmlunit problem?

  1. Reason message suggests that problem is adding dynamic content to HTML page. Is it possible to add dynamic content to the dom at all? Have you tried it?
  2. Is it possible that perhaps %3B is displayed in that form in message and in fact there is ; sign?
  3. Perhaps there are some security restrictions put on iframe?
  4. Which version of editor are you using?
  5. Since this is Rhino JS Engine I don't even think we support it but is it possible to provide reduced sample that we could use to reproduce this issue (perhaps in a browser)?

Could you please reply to my questions?

comment:2 Changed 7 years ago by Jakub Ś

Resolution: expired
Status: pendingclosed
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy