Menu

#197 Problems cleaning IFRAME

v2.21
closed-invalid
nobody
None
5
2017-10-31
2017-10-31
No

Hi there,

Long time no talk! :)

On the XWiki project we've found something strange when trying to clean the following inputs:

<iframe src="whatever"/>

And

<iframe src="whatever"/>\r\n

We get the following result respectively:

<p><iframe src="whatever"></iframe></p>

And

<iframe src="whatever"></iframe>

I have 2 questions:
Is it normal that the IFRAME is cleaned by surrounding with a P element? I've checked on https://validator.w3.org/#validate_by_input and it seems that the IFRAME doesn't need to be inside a P to be valid.
Why the difference with the 2 inputs (one surrounds the IFRAME with a P while the other doesn't)? :)

Thanks a lot
-Vincent

Discussion

  • Vincent Massol

    Vincent Massol - 2017-10-31

    hmmm hold on, I think the problem is comig from filters we have in XWiki. I'm debugging further and will close this issue if it's on our side... sorry about that.

     
  • Vincent Massol

    Vincent Massol - 2017-10-31

    Confirmed! The problem is on XWiki side... Seems I can't close this issue though... Thx and sorry again for the false positive.

     

    Last edit: Vincent Massol 2017-10-31
  • Scott Wilson

    Scott Wilson - 2017-10-31

    Hi Vincent! Good to hear from you, especially as its not our bug :)

     
  • Scott Wilson

    Scott Wilson - 2017-10-31
    • status: open --> closed-invalid
     

Log in to post a comment.