<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title>XHTML · Grey Nicholson</title><id>https://gkn.me.uk/entries/xhtml</id><link href="https://gkn.me.uk/entries/xhtml" rel="alternate"/><link href="https://gkn.me.uk/entries/xhtml/feed" rel="self"/><author><name>Grey Nicholson</name></author><icon>https://gkn.me.uk/style/icon.svg</icon><updated>2025-10-21T12:11:00+00:00</updated>
<entry><title>Reorderiffic</title><id>https://gkn.me.uk/reorderiffic</id><link href="https://gkn.me.uk/reorderiffic" rel="alternate" type="text/html"/><published>2004-07-22T14:58:00+00:00</published><updated>2004-07-22T14:58:00+00:00</updated><summary>You thought this was a weblog, but no! It's a changelog!</summary><content type="html">
&lt;p&gt;
The Blurb is now above the main content in the site&#x27;s source and thus also in Toliman - it makes more sense that way.
&lt;/p&gt;
&lt;p&gt;
I didn&#x27;t even need to modify Arcturus to retain its layout. As you were.
&lt;/p&gt;</content></entry>
<entry><title>Don't hash those numbers!</title><id>https://gkn.me.uk/weblog050</id><link href="https://gkn.me.uk/weblog050" rel="alternate" type="text/html"/><published>2004-06-21T21:30:00+00:00</published><updated>2004-06-21T21:30:00+00:00</updated><content type="html">
&lt;p&gt;
I just remembered XHTML ids aren&#x27;t allowed to begin with numbers, so it&#x27;s probably not a good idea to give weblog entries permalinks like mine.
&lt;/p&gt;
&lt;p&gt;
Never mind - they&#x27;ll all be breaking soon anyway (I know - Atom sacrilege, but until URNs work better it&#x27;s sometimes gonna be unavoidable).
&lt;/p&gt;</content></entry>
<entry><title>Hash those hs!</title><id>https://gkn.me.uk/weblog049</id><link href="https://gkn.me.uk/weblog049" rel="alternate" type="text/html"/><published>2004-06-21T13:55:00+00:00</published><updated>2004-06-21T13:55:00+00:00</updated><content type="html">
&lt;p&gt;
A quick request of everyone who writes web pages, especially weblogs, or who designs web page templates:
&lt;/p&gt;
&lt;p&gt;
&lt;em&gt;Give every heading an id&lt;/em&gt;, so that other folks (and you) can link to sections of an article or entry.
&lt;/p&gt;
&lt;p&gt;
It&#x27;s not quite &lt;a href=&quot;http://www.bootstrap.org/#9B&quot;&gt;Purple Numbers&lt;/a&gt; but it does the job more than effectively (and it&#x27;s not half as &lt;span title=&quot;Invented word of the day&quot;&gt;overkilly&lt;/span&gt;). I reckon it&#x27;s fair to assume that if someone wants to link to a part of your page in another page, they&#x27;ll have the ability to view your page&#x27;s source and find the ids. And if they can&#x27;t, purple numbers would probably befuddle them anyway.
&lt;/p&gt;
&lt;p&gt;
&lt;a href=&quot;/thetwaddle&quot;&gt;I do it&lt;/a&gt; automatically - it really takes little effort. Another point is to use proper titles, not &lt;code&gt;#title4&lt;/code&gt;, so that if you add a chunk, nothing will break (and referring urls look much friendlier).
&lt;/p&gt;</content></entry>
<entry><title>On-the-fly page validation</title><id>https://gkn.me.uk/weblog034</id><link href="https://gkn.me.uk/weblog034" rel="alternate" type="text/html"/><published>2004-06-01T18:15:00+00:00</published><updated>2004-06-01T18:15:00+00:00</updated><content type="html">
&lt;p&gt;
I wonder if this is possible. I&#x27;ve been dabbling with JavaScript a little recently, in order to produce The Twaddle&#x27;s &lt;a href=&quot;http://purl.org/thetwaddle/expletatron&quot;&gt;Expletatron&lt;/a&gt; and this seems like something that should be possible with JS:
&lt;/p&gt;
&lt;p&gt;
I want a script that can load up a given remote page (internally - I don&#x27;t want to display the page, just to extract info from it), look at an element on that page with a given id, and return its class as a variable.
&lt;/p&gt;
&lt;p&gt;
What&#x27;s this got to do with validation? Well say the remote page was &lt;a href=&quot;http://validator.w3.org/check/referer&quot; title=&quot;The W3C Validator&#x27;s results for the referring page&quot;&gt;http://validator.w3.org/check/referer&lt;/a&gt; and the given id was &lt;samp&gt;result&lt;/samp&gt;. Then, if the returned variable is &lt;samp&gt;valid&lt;/samp&gt; (i.e. the class of that element is &lt;samp&gt;valid&lt;/samp&gt;) you&#x27;ve got a valid page; if the returned variable isn&#x27;t &lt;samp&gt;valid&lt;/samp&gt; you haven&#x27;t.
&lt;/p&gt;
&lt;p&gt;
So, you could, using JavaScript, whack in a “Valid XHTML” logo if, and only if, the page is actually valid. If you like, you could throw in an “Invalid!” image if the page is not valid.
&lt;/p&gt;
&lt;p&gt;
I know it&#x27;s possible to refer to an element by its id; I know it&#x27;s possible to get the &lt;em&gt;content&lt;/em&gt; of that element. I don&#x27;t know if it&#x27;s possible to get an element&#x27;s class, and I&#x27;m guessing it&#x27;s slightly impossible to do all this for another, remote page.
&lt;/p&gt;
&lt;p&gt;
It&#x27;d be nice though.
&lt;/p&gt;</content></entry>
<entry><title>IE + XML + XSL + XHTML + W3C = Get In!</title><id>https://gkn.me.uk/weblog026</id><link href="https://gkn.me.uk/weblog026" rel="alternate" type="text/html"/><published>2004-04-23T14:07:00+00:00</published><updated>2004-04-23T14:07:00+00:00</updated><content type="html">
&lt;p&gt;
As a prelude to some major back-end renovation I&#x27;m planning for The Twaddle, I decided to see if I could get Internet Explorer 6 to display this XSL-ified weblog nicely, not accounting for IE-unsupported CSS (which is already taken care of at The Twaddle). Previously, IE displayed the DOCTYPE declaration as plain text at the top of the page; using strategic HTML commenting, I&#x27;ve managed to prevent it from doing so.
&lt;/p&gt;
&lt;p&gt;
Actually, I bet simply removing the DOCTYPE declaration wouldn&#x27;t affect either Gecko or IE&#x27;s rendering of the page, as I think XML kicks both of them into standards mode anyway.
&lt;/p&gt;
&lt;p&gt;
The next step is to try this with some of The Twaddle. And I&#x27;d probably best check Opera&#x27;s effort, too.
&lt;/p&gt;</content></entry>
<entry><title>April Fool!</title><id>https://gkn.me.uk/weblog022</id><link href="https://gkn.me.uk/weblog022" rel="alternate" type="text/html"/><published>2004-04-01T20:40:00+00:00</published><updated>2004-04-01T20:40:00+00:00</updated><content type="html">
&lt;p&gt;
Only kidding - it&#x27;s not really.
&lt;/p&gt;
&lt;p&gt;
Last Wednesday (the 24th) we “relaunched” The Twaddle. In fact, the only change made to the XHTML was the addition of unique page id&#x27;s - something I&#x27;ve always done on Mooquackwooftweetmeow but never used. The rest of the jiggery and/or pokery was accomplished using just CSS and a few Google Image Searches - a testament to the power of CSS and the excellence of my XHTMLing.
&lt;/p&gt;
&lt;p&gt;
We&#x27;ve also got some nicely foolish spiel on the front page about The Twaddle shutting up shop. In case the date of March 32nd, and the &lt;q&gt;Can you say April Fool?&lt;/q&gt; message at the bottom of the page didn&#x27;t tell you: it&#x27;s an April Fool, fool. And finally, we&#x27;ve screwed with the forums&#x27; word filter, replacing innocuous conjunctions with words such as &lt;q&gt;cheese&lt;/q&gt; and &lt;q&gt;Alan Shearer&lt;/q&gt; - see &lt;a href=&quot;http://thetwaddle.proboards27.com/index.cgi?board=atrium&amp;amp;action=display&amp;amp;num=1080773096&quot;&gt;http://thetwaddle.proboards27.com/index.cgi?board=atrium&amp;amp;action=display&amp;amp;num=1080773096&lt;/a&gt; for the complete damage assessment.
&lt;/p&gt;</content></entry>
<entry><title>Apostrophes</title><id>https://gkn.me.uk/weblog019</id><link href="https://gkn.me.uk/weblog019" rel="alternate" type="text/html"/><published>2004-03-15T16:10:00+00:00</published><updated>2004-07-19T15:50:00+00:00</updated><content type="html">
&lt;p&gt;
I&#x27;m now using the aforementioned RSS Reader to read this weblog. So it has to be valid Atom, the content must validate when RSSified, and still validate when XHTMLified. Thus, to save hassle relating to escape characters and other such technicalities, I&#x27;m now using straight apostrophes as “quotes”. It&#x27;s ugly, but it works.
&lt;/p&gt;
&lt;p&gt;&lt;ins&gt;
Update: with the advent of &lt;a href=&quot;/brandnewcms&quot; title=&quot;I&#x27;ve Got A Brand New Content Management System And I&#x27;ll Give You The Key&quot;&gt;the Mooquackwhatnotbot&lt;/a&gt; I&#x27;m now using proper HTML quotes - &lt;code&gt;&amp;lt;q&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;/q&amp;gt;&lt;/code&gt;. The usual disclaimer about Internet Explorer&#x27;s crapness applies, as does one about Atom feed readers - they probably won&#x27;t show any quotes.
&lt;/ins&gt;&lt;/p&gt;</content></entry>
<entry><title>Isn't XML wonderful?</title><id>https://gkn.me.uk/weblog009</id><link href="https://gkn.me.uk/weblog009" rel="alternate" type="text/html"/><published>2004-02-20T19:15:00+00:00</published><updated>2004-03-04T22:25:00+00:00</updated><content type="html">
&lt;p&gt;
Despite an hour of valiant effort, I&#x27;ve been unable to convince Gecko to render XHTML embedded in an Atom feed. I&#x27;ve tried encoding the arrow brackets, various namespace trickery... to no avail. So you&#x27;re gonna have to put up with plain text URLs, until someone can show me how it&#x27;s done... anybody?
&lt;/p&gt;</content></entry>
<entry><title>Namespaces are fairly fun</title><id>https://gkn.me.uk/weblog007</id><link href="https://gkn.me.uk/weblog007" rel="alternate" type="text/html"/><published>2004-02-19T18:30:00+00:00</published><updated>2004-04-27T17:40:00+00:00</updated><content type="html">
&lt;p&gt;
The Feed Validator (&lt;a href=&quot;http://feedvalidator.org&quot;&gt;http://feedvalidator.org&lt;/a&gt;) gave me a thumbs-down :( Entries&#x27; IDs have to be valid URLs, you see, and I&#x27;d been using them as arbitrary labels. I&#x27;d also been leeching off these arbitrary labels in order to create anchors in the XHTML representation of the feed; those using a web browser can check they work by clicking this item&#x27;s title; those using a news aggregator can visit the alternate link; in both cases, the item&#x27;s title should be at the very top of the browser window.
&lt;/p&gt;
&lt;p&gt;
I managed to circumvent Atom&#x27;s rigidity using XML&#x27;s flexibility - I invented a new arbitrary label for each item - &lt;code&gt;label&lt;/code&gt;, under my own namespace; I now have everything working as before, plus a valid feed. Glory!
&lt;/p&gt;
&lt;p&gt;
I think I&#x27;ll go and play a bit of pool now...
&lt;/p&gt;</content></entry>
<entry><title>Freewebs aren't very good at MIME types</title><id>https://gkn.me.uk/weblog004</id><link href="https://gkn.me.uk/weblog004" rel="alternate" type="text/html"/><published>2004-02-19T15:30:00+00:00</published><updated>2004-02-19T15:30:00+00:00</updated><content type="html">
&lt;p&gt;
Freewebs is obviously designed to cater for “webmasters” who&#x27;ve never heard of Jeffrey Zeldman... Like most, if not all, free web hosts, Freewebs use filename “extensions” to determine what MIME type to serve for a file; this is OK, until they get it wrong. Granted, Atom and XSL aren&#x27;t the most commonly used file formats on the web but nonetheless Freewebs could bother serving them with the proper MIME types.
&lt;/p&gt;
&lt;p&gt;
A few months ago, I asked them if they could serve .xhtml files as XHTML rather than plain text. They responded by saying they wanted to comply with web standards; could I please send them the reference to the W3C recommendation. Great! ...except that nothing&#x27;s happened since (or at least they haven&#x27;t told me about it if anything has) - a couple of weeks ago I checked and .xhtml files were still being served as plain text.
&lt;/p&gt;
&lt;p&gt;
I&#x27;d appeal to Freewebs now, except I suspect they use Internet Explorer, and thus won&#x27;t be able to read this...
&lt;/p&gt;</content></entry>
<entry><title>Copy and paste...</title><id>https://gkn.me.uk/weblog002</id><link href="https://gkn.me.uk/weblog002" rel="alternate" type="text/html"/><published>2004-02-19T14:30:00+00:00</published><updated>2004-02-19T14:30:00+00:00</updated><content type="html">
&lt;p&gt;
By the way, those URLs in the previous post are just plain text; unless your browser parses plain text URLs, you&#x27;re just gonna have to copy and paste them for now - I&#x27;m not an XML expert and the prospect of digging about trying to force Atom and XHTML to work together to produce links, isn&#x27;t appealing... maybe later.
&lt;/p&gt;</content></entry>
</feed>