Search found 12 matches

by erlehmann
Tue Jun 24, 2008 10:51 pm
Forum: General discussions
Topic: How to change MIME type to application/xhtml+xml ?
Replies: 18
Views: 30631

Re: How to change MIME type to application/xhtml+xml ?

How does your templates config.inc.php look like in that line?
Ooops, my bad. Works flawlessly.

Though i have a new problem now: The admin interface page has no xmlns attribute, so the site is not displayed and I get an XML tree instead (which is, i can assure you, well-formed). Is that a ...
by erlehmann
Tue Jun 24, 2008 9:09 am
Forum: General discussions
Topic: How to change MIME type to application/xhtml+xml ?
Replies: 18
Views: 30631

Re: How to change MIME type to application/xhtml+xml ?

To start, all your tips didn't help: The MIME type in the HTTP header still seems to be text/html. Maybe it's not a template issue and S9Y doesn't get the MIME type from the meta tag at all ?

Then:

Current templates focus on usability and compatibility instead of pedantic semantics ;)

Well ...
by erlehmann
Mon Jun 23, 2008 4:15 pm
Forum: General discussions
Topic: How to change MIME type to application/xhtml+xml ?
Replies: 18
Views: 30631

Re: How to change MIME type to application/xhtml+xml ?

As for Serendipity, as long as browsers make a full page fail to render when markup errors occur, it is not good (read: beneficial for the common end-user) to use the xhtml+xml mimetype.
You should know what the spec says - and for all purposes of rendering a) XHTML with type text/html is actually ...
by erlehmann
Mon Jun 23, 2008 2:08 pm
Forum: General discussions
Topic: How to change MIME type to application/xhtml+xml ?
Replies: 18
Views: 30631

Re: How to change MIME type to application/xhtml+xml ?

Simple user's don't understand semantics. All they want to do is blog and type. Putting them on validation restrictions is not productive.
Look, those who can't even bother to learn some simple rules should probably not use tools like (X)HTML; it only makes life worse for the rest of us.

XHTML ...
by erlehmann
Mon Jun 23, 2008 1:02 pm
Forum: General discussions
Topic: Feature Suggestion: Dumb Question Captcha
Replies: 4
Views: 2576

Re: Feature Suggestion: Dumb Question Captcha

yellowled wrote:I know that's probably not a better solution, but how about adding a simple mathematical exercise instead?
I don't think you got it. Computers do simple math very well.
by erlehmann
Mon Jun 23, 2008 11:47 am
Forum: General discussions
Topic: How to change MIME type to application/xhtml+xml ?
Replies: 18
Views: 30631

Re: How to change MIME type to application/xhtml+xml ?

User Input is the evil thing: Nobody prevents users from typing "<br>" in their boxes, no one prevents them from invalidly nesting Elements. There is no easy way to make sure that the user input on a page is always XHTML valid.
Well, check it against the XHTML DTD on submission ? I do a (simple ...
by erlehmann
Mon Jun 23, 2008 10:58 am
Forum: General discussions
Topic: How to change MIME type to application/xhtml+xml ?
Replies: 18
Views: 30631

Re: How to change MIME type to application/xhtml+xml ?

Second, you have some tags in your source code which are not not valid XHTML - i.e. it's <br />, not <br/> (note the white space character).
How come ? I though both was correct ...
I can't really tell you why this is, but it is :) XHTML is much more strict in terms of cases and closing tags ...
by erlehmann
Mon Jun 23, 2008 10:54 am
Forum: General discussions
Topic: Feature Suggestion: Dumb Question Captcha
Replies: 4
Views: 2576

Re: Feature Suggestion: Dumb Question Captcha

Hi!

There's a huge problem with that: The texts need to be localized properly, and once texts like that are committed to the codebase, it's very easy for spammers to gather general questions to those forms into their databases.

I agree it could be done easily, but I don't really see a way how ...
by erlehmann
Mon Jun 23, 2008 9:20 am
Forum: General discussions
Topic: How to change MIME type to application/xhtml+xml ?
Replies: 18
Views: 30631

Re: How to change MIME type to application/xhtml+xml ?

I was of the impression that S9Y outputs XHTML. The W3C validator thinks that, too.
Yes, that's true. But that doesn't require changing the Content-Type (again, as far as I know).
It does; simply because browsers parse it as HTML otherwise. HTML has no namespace feature and isn't necessarily well ...
by erlehmann
Mon Jun 23, 2008 9:00 am
Forum: General discussions
Topic: How to change MIME type to application/xhtml+xml ?
Replies: 18
Views: 30631

Re: How to change MIME type to application/xhtml+xml ?

yellowled wrote:However, the Content-Type for html files (as far as I know) is always supposed to be "text/html" - what's your source for this being wrong?
I was of the impression that S9Y outputs XHTML. The W3C validator thinks that, too.
by erlehmann
Mon Jun 23, 2008 8:39 am
Forum: General discussions
Topic: Feature Suggestion: Dumb Question Captcha
Replies: 4
Views: 2576

Feature Suggestion: Dumb Question Captcha

Blogger and web developer Peter Kroener suggested an easy and accessible (!) method of spam prevention he also uses himself: Just ask a stupid question. If the question isn't answered right, the comment is classified spam.

He himself uses the self-referential "What is the given name of Franz ...
by erlehmann
Mon Jun 23, 2008 7:41 am
Forum: General discussions
Topic: How to change MIME type to application/xhtml+xml ?
Replies: 18
Views: 30631

How to change MIME type to application/xhtml+xml ?

My blog at http://dieweltistgarnichtso.net/ identifies itself as text/html page. However, that limits me in embedding correct XHTML in posts, since browsers like Firefox parse the site as HTML.

How can i change the given MIME type to application/xhtml+xml ?