On Firefox and Safari, the following code displays only the first iframe
<iframe src="http://www.bing.com"/>
<iframe src="http://www.tsr.ch"/>
whereas adding the closing tag solves the issue
<iframe src="http://www.bing.com"></iframe>
<iframe src="http://www.tsr.ch"></iframe>
I don't understand why it does not work. When parsing the second example with DOMParser, it anyways does the transformation to self-closing iframes.
fiddle here : http://jsfiddle.net/hLcukz6p/
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…