Fixing the mysterious “Element script is missing required attribute src” error

Suppose you're using the W3C validator to validate HTML5. Here's a sample document:

<!doctype html>
<html lang="en" xml:lang="en">
<head>
<meta charset="utf-8" />
<title>Hello</title>
<script type="text/javascript" charset="utf-8">
//<![CDATA[
var foo = 1;
//]]>
</script>
</head>
<body>
</body>
</html>

Everything looks right, but you get this mysterious error:

Line 6, Column 48: Element script is missing required attribute src.
<script type="text/javascript" charset="utf-8">

But you don't want or need an src attribute, because your JavaScript is inline. The solution is not to add the src attribute, but to remove the charset attribute.

(Note: a bug has been filed and this will be fixed in a future release.)

TSA news roundup from Bruce Schneier

Bruce has done a fantastic job summarizing the backlash to the TSA’s plan to take naked pictures of and/or molest you as a precondition of boarding an airplane:

There’s humour, outrage, and just a wee bit o’ corruption:

Michael Chertoff, former Department of Homeland Security secretary, has been touting the full-body scanners, while at the same time maintaining a financial interest in the company that makes them.

Using Google refine to produce a list of Ontario’s private schools

Last week, I excitedly read the announcement and watched the screencasts of Google Refine 2.0.

Today, I used it to transform this hot mess of HTML:

Into this structured data goodness:

Continue reading “Using Google refine to produce a list of Ontario’s private schools”