- From: Laurens Holst <lholst@students.cs.uu.nl>
- Date: Wed, 31 Aug 2005 10:49:00 +0200
- To: www-html@w3.org
Christoph Päper schreef: > > Laurens Holst: >> Christoph Päper schreef: >>> I disagree, for element names should carry the main semantics, >>> >>> <"some parent with only block children allowed"> >>> <code class="pre"/> >> >> I disagree with that, class doesn’t convey any semantic information, > > How would you know it didn't in that hypothetic (though HTML inspired) > language of mine? Anyhow, I considered the code being preformatted > rather presentational in this example. This is www-html, and the discussion is about XHTML :). It is of course true that whether the preformatting is presentational or not of course depends on the content (and thus the content author’s judgement in that regard). However, preformatting is not just indenting, it also concerns the newlines. Do you mean to mark up those with <l>, or do you also depend on the ‘pre’ class to handle them? In languages such as Basic and JavaScript, the location and presence of newlines change the functioning of the program. And even in other languages where newlines are of less importance, such as XML and C-syntax languages (with { } and ;), the absence them severely harms readability of the code. So, I certainly consider the preformatting to be significant and relied upon, which must be marked up semantically so that the code fragments can be represented appropriately even when the UA reading the XHTML doesn’t support CSS. > In HTML |class| does not have no semantics, but just no defined, > explicit semantics. So it has none. ~Grauw -- Ushiko-san! Kimi wa doushite, Ushiko-san nan da!!
Received on Wednesday, 31 August 2005 08:50:11 UTC