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
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.
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
Hi Vincent! Good to hear from you, especially as its not our bug :)