FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Suggestions » doctype
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
doctype [message #158528] Mon, 02 March 2009 02:52 Go to next message
Marticus   United States
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
What is the purpose of xhtml transitional in the theme? If fud doesn't have any xml-based features, this is entirely unnecessary.
Re: doctype [message #158529 is a reply to message #158528] Mon, 02 March 2009 06:05 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
That's a very good question. I've spent hours converting FUDforum to XHTML (well almost), and it looks exactly as before. Some of the non-reasons why it should be XHTML are:

- The W3C is pushing XHTML since 2000;
- XHTML is well supported by (almost) all modern browsers;
- A review said FUDforum is uncool because it's not XHTML; and
- A FUDforum user said he cannot use MathML because it's not XHTML.

If you can think of any other reason why I've wasted my time, please let me know.

Regards.

Frank
Re: doctype [message #158535 is a reply to message #158529] Mon, 02 March 2009 21:04 Go to previous messageGo to next message
Marticus
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
Thanks for the reply, Frank.

The first three reasons are bogus, the last is most important. I believe, however, XML support should be on or off, depending on the forum administrator's needs.

As for the reasons, again, the first three are bogus statements, the third being bogus because of the masses believing the first two. 4.01 is a perfectly good markup language standard and is not superceded by xhtml, in fact, 5.0 is still in the works. It has been around long enough to have its bugs worked out and every browser supports it effortlessly.

The only advantages of using xhtml are beyond the scope of the base work of FUDforum. I agree with one blogger who suggests that it really only provides you with the ability to seamlessly mix in content from other markup languages by using xml namespaces and it allows you to utilize xml tools.

As for w3c "pushing" xhtml, yes they advocate it because it works as intended, but they don't, as far as I know, push it on authors who have no need for it simply because it is there.

There are two communities on either side of the markup language fence. The first believes you should blindly use xhtml simply because it is there, regardless if they need xml support. The second believes you should use html 4.01 unless you need xml support. I jumped off the xhtml bandwagon to join the more conservative group because it made more sense. Why bloat my code with extra support for something I don't need?

As for wasting your time, I disagree wholeheartedly. I believe you did the legwork that will make it easier for me to create a method for turning off and on xml support. The template is easy to handle, but the .inc and .t files have quite a few non-paired tags that need a '/' at the end for xhtml. Most of them are br and can be handled by storing it and changing it in a variable. Other things can be moved to the templates from the src files. Some things can simply be avoided, such as pairing paragraph tags opposed to leaving them open. If need be, two templates can be used, one called default-xml if it becomes too burdensome to maintain in a single template. The includes might be a little more difficult, but I'm making this a FUD learning venture. I'm sure it will be interesting and difficult/time-consuming, but well worth it to keep me busy.

As for xhtml integration into the code of fudforum, I think that is always something that should be left to the theming/templating system. There is always a way to avoid using specific markup languages in the core of your project if you have a well-designed theming system, which FUD has. I've complained about this for a very long time, not in fud, but in general. I've had to modify applications because my themes may be html 4.01 strict, but they don't pass validation tests because of core elements.

As for validation tests, xml style tags aside, there are places where BR and other inline tags are used out of context in the default theme. I've been going through and fixing those as I find them. I don't put a great deal of stress on w3c strictness and validators in general but they are a good way to find problems with my code, and I hate seeing things in applications that can be avoided to make my theming something easier.

Anyway, I apologize for the wall of text, but those are my thoughts on this topic.

[Updated on: Mon, 02 March 2009 21:24]

Report message to a moderator

Re: doctype [message #158537 is a reply to message #158528] Mon, 02 March 2009 22:49 Go to previous messageGo to next message
Marticus
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
Then again, RDF output is XML. If it is self-contained, that shouldn't matter.
Re: doctype [message #158547 is a reply to message #158535] Tue, 03 March 2009 10:32 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Hi Marticus,

Most people won't care either way as the pages will render exactly the same. However, XHTML (as you rightly said, mostly for the wrong reasons) sounds must cooler. Personally I think the default theme should remain XHTML. Nevertheless, adding non-XHTML themes shouldn't be an issue at all.

Quote:
there are places where BR and other inline tags are used out of context in the default theme. I've been going through and fixing those as I find them


Please also report them here so we can get them fixed.

Another case is where a forum is upgraded, some cached file may still contain non-XHTML tags, which will only be fixed once they are regenerated. One such example is the smiley cache.

Best regards.

Frank
Re: doctype [message #158585 is a reply to message #158547] Thu, 05 March 2009 06:11 Go to previous messageGo to next message
Marticus
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
When did you go through and make the changes to all the non-paired flags? I just ran across an issue editing a post with images and it didn't convert the html to fud code. I think I am the one who broke it, but now I'm not so certain. Testing it real fast...

<img src="index.php?t=getfile&id=5508&private=0" border="0" alt="index.php?t=getfile&id=5508&private=0" />


Nope, when I edit, the above code never goes back to fud code.

[Updated on: Thu, 05 March 2009 06:13]

Report message to a moderator

Re: doctype [message #158586 is a reply to message #158585] Thu, 05 March 2009 06:12 Go to previous messageGo to next message
Marticus
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
I post a bug report on that.
Re: doctype [message #158595 is a reply to message #158586] Thu, 05 March 2009 11:06 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
And I posted a fix.
Re: doctype [message #158877 is a reply to message #158528] Wed, 08 April 2009 14:35 Go to previous message
hanbill is currently offline  hanbill   China
Messages: 3
Registered: April 2009
Karma: 0
Junior Member
I have some question too, thank you
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: an email I got today
Next Topic: Layout of quotes
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Dec 03 17:58:58 GMT 2024

Total time taken to generate the page: 0.02201 seconds