media icon indicating copy to clipboard operation
media copied to clipboard

Link to YouTube movie causes "Unknown runtime error" in IE6 and IE8 when inside a <P> block

Open HammerNL opened this issue 15 years ago • 0 comments

The following HTML triggers an "Unknown runtime error" in at least IE6 and IE8. It works fine in FF3.5 and Chrome4.

<html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"> <script type="text/javascript" src="http://malsup.github.com/chili-1.7.pack.js"> <script type="text/javascript" src="http://malsup.com/jquery/jquery.metadata.v2.js"> <script type="text/javascript" src="http://github.com/malsup/media/raw/master/jquery.media.js?v0.92"> <script type="text/javascript" src="http://malsup.com/jquery/media/swfobject.js"> <script type="text/javascript">

  $(function()
  {
    $('a.media').media();
  });

&lt;/script>

</head>

<body>

<P>Free text <A class="media {width:480, height:380, type:'swf'}" href="http://www.youtube.com/v/6MJCvHMtwE4" target=_blank>Palin video</A></P>

</body>

</html>

When I remove the <P> </P> tags around the link, everything works fine.

**DAMN: This site does not correctly handle postings that contain tags... hope you can read the posting anyway. If not, mail me, I'll send you the HTML by email.

HammerNL avatar Feb 23 '10 20:02 HammerNL