Skip to content

Parser confused by "</body>" inside javascript in <head> #6

Open
ghost opened this Issue Jun 30, 2011 · 0 comments

0 participants

@ghost
ghost commented Jun 30, 2011

Parsing "http://www.econtalk.org/archives/2011/06/otteson_on_adam.html":
[[parser html] rawContents]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<link rel="shortcut icon" href="http://www.econtalk.org/res/img/favicon.ico" type="imag/x-icon">
<link rel="icon" href="http://www.econtalk.org/res/img/favicon.ico" type="imag/x-icon">
<link rel="stylesheet" type="text/css" href="http://www.econtalk.org/res/css/pagelayout.css">
<link rel="stylesheet" type="text/css" href="http://www.econtalk.org/res/css/html.css">
<link rel="stylesheet" type="text/css" href="http://www.econtalk.org/res/css/blog.css">
<link rel="stylesheet" type="text/css" href="http://www.econtalk.org/res/css/a.css">
<link rel="stylesheet" type="text/css" href="http://www.econtalk.org/res/css/masthead.css">
<link rel="stylesheet" type="text/css" href="http://www.econtalk.org/res/css/pagehead.css">
<link rel="stylesheet" type="text/css" href="http://www.econtalk.org/res/css/breadcrumbs.css">
<link rel="stylesheet" type="text/css" href="http://www.econtalk.org/res/css/sidebar.css">
<link rel="stylesheet" type="text/css" href="http://www.econtalk.org/res/css/page.css">
<link rel="stylesheet" type="text/css" href="http://www.econtalk.org/res/css/tables.css">
<link rel="stylesheet" type="text/css" href="http://www.econtalk.org/res/css/tabs.css">
<link rel="stylesheet" type="text/css" href="http://www.econtalk.org/res/css/footer.css">
<script type="text/javascript" src="http://www.econtalk.org/res/js/main.js"></script><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script><script language="JavaScript" type="text/javascript">
<!-- Hide script from sad old browsers
//Pop-Up Embedder Script by David Battino, www.batmosphere.com; Object tag implementation by Mark Levitt, http://digitalmedia.oreilly.com
var UniqueID = 314 // Make each link open in a new window.
var newWinOffset = 0 // Position of first pop-up
function PlayerOpen(soundfiledesc,soundfileauthors,soundfilepath) {

PlayWin = window.open('',UniqueID,'width=400,height=250,top=' + newWinOffset +',left=0,resizable=1,scrollbars=0,titlebar=0,toolbar=0,menubar=1,status=0,directories=0,personalbar=0');
PlayWin.focus(); 
var winContent = "<html><head><title>" + soundfiledesc + "</script>
</head>
<body bgcolor="#efefef" text="#000000" link="#40478C" vlink="#626878" alink="#131D35">";
winContent += "<b style="font-size:18px;font-family:Verdana,sans-serif;line-height:1.5">" + soundfiledesc + "</b>" + "<br><b style="font-size:12px;font-family:Verdana,sans-serif;line-height:1.5">" + soundfileauthors + "</b>";
winContent += "<center><object width="400" height="42">";
winContent += "<param name="SRC" value='" +  soundfilepath + "'>";
winContent += "<param name="AUTOPLAY" value="true">";
winContent += "<param name="CONTROLLER" value="true">";
winContent += "<param name="BGCOLOR" value="#ffffff">";
winContent += "<embed src="%22%20+%20soundfilepath%20+%20%22" autostart="TRUE" loop="FALSE" width="300" height="42" controller="TRUE" bgcolor="#ffffff"></embed>";
winContent += "</object></center>";

winContent += "<p style="font-size:12px;font-family:Verdana,sans-serif;text-align:center"><a href="%22+soundfilepath+%22">Download this file</a> <span style="font-size:10px">(Right-click or Option-click)</span></p>";

winContent += "<form><div align="center"><input type="button" value="Close this window" onclick="javascript:window.close();"></div></form>
<p style="font-size:12px;font-family:Verdana,sans-serif;text-align:center"><a href="http://www.econtalk.org/" target="new">EconTalk</a> at the <a href="http://www.econlib.org" target="new">Library of Economics and Liberty</a></p>";

winContent += "</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.