Submitted by : simon at: 2003-10-26T21:32:02+00:00 (14 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

Simon, can you also add a doctype and charset to the default template. In that way it is easy to check if pages are valid HTML by using http://validator.w3.org. Might even cool to provide a validate in the default template

PieterB, 2002/12/14 18:07 GMT (via web):
See also: ValidHTML

PieterB, 2002/12/24 15:18 GMT (via web):
I created a ValidHTML zpt template for Zwiki. You can find it at: http://gewis.nl/~pieterb/zwiki/wikipage.zpt.html

Simon, can you check it into CVS?

SimonMichael, 2003/01/21 01:05 GMT (via web):
Thank you very much Pieter. I've merged this with my latest and installed it here so we can test. I won't keep the validate link but it's useful here.

I see you replaced the nowrap attributes with styles, but is that necessary ? nowrap seems to be standard.

PieterB, 2003/01/21 01:07 GMT (via web):
Nowrap isn't standard (i was surprised too). See: http://lists.w3.org/Archives/Public/www-html/1996Nov/0078.html for explanation why.

SimonMichael, 2003/01/21 01:15 GMT (via web):
Related places where similar work may be needed: skins/default/standard_wiki_header & footer, skins/zwiki_orig/wikipage_view.pt.

SimonMichael, 2003/01/21 01:18 GMT (via web):
Aren't they talking about textareas, while I'm using it in td's ? I'm going by the barebones guide .

SimonMichael, 2003/01/21 01:40 GMT (via web):
Yes, they're talking about TEXTAREA WRAP, which barebones says was introduced by netscape 2. You replaced the TD NOWRAP's, which I believe are ok.

So I'm not sure what to do about WRAP; my optimistic reading is that IE defaults to that behaviour anyway and it makes no difference to the server so it's harmless.

SimonMichael, 2003/01/21 03:01 GMT (via web):
It does cause validation errors though. It was added for a reason, which we might find in the cvs log. If we can find out the standards-compliant way to do what it's doing, or if we can verify it's no longer needed, I'll take it out.

SimonMichael, 2003/01/21 03:03 GMT (via web):
PS by "it", I mean the fact that all our textareas use wrap=virtual.

status ? --SimonMichael, 2003/05/06 23:46 GMT
Not sure how our latest default and zwiki_plone skins measure up here. Pieter maybe you could test/close this or send me your SF id if you want to check in some fixes.

property change --simon, 2003/05/09 01:38 GMT
Title: IssueNo0399 add a doctype and charset to the default skins to make them ValidHTML => IssueNo0399 make the default skins valid HTML

moved from #508 use page templates for default skin:

XHTML compliance --2003/05/05 17:55 GMT
There are a few changes that need to made to the page templates if they are going to be compliant with XHTML 1.0 . I've made customized fixes but will go back and work on the default skin and send them to you. JordanCarswell

XHTML compliance --SimonMichael, 2003/05/05 20:18 GMT
Great, or send me your sourceforge id for cvs commit access.

Re: XHTML compliance JordanCarswell--2003/05/08 21:50 GMT
Hey Simon, I think I have the default pt's compliant with XHTML 1.0 Transitional. How do you want me to get them to you?

editform.pt JordanCarswell--2003/05/08 22:51 GMT
When I try to use the default editform.pt from the filesystem, I get the error copied below. If I create an instance of editform.pt in my wiki web in the ZMI, it works fine (?) :

 IOError
    Sorry, a site error occurred.
 Traceback (innermost last): 
  Module ZPublisher.Publish, line 150, in publish_module
  Module ZPublisher.Publish, line 114, in publish
  Module Zope.App.startup, line 182, in zpublisher_exception_hook
  Module ZPublisher.Publish, line 98, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 39, in call_object
  Module Products.ZWiki.UI, line 178, in editform
  Module App.special_dtml, line 61, in __call__
  Module DocumentTemplate.DT_String, line 412, in __call__
  Module DocumentTemplate.DT_String, line 340, in cook
  Module DocumentTemplate.DT_String, line 332, in read
  Module DocumentTemplate.DT_String, line 519, in read_raw
 IOError

wrap="virtual" not XHTML compliant JordanCarswell--2003/05/08 22:56 GMT
Apparently wrap="virtual" can't be used in XHTML and I couldn't find a workaround. From what I could find through Google, most web designers were just willing to let it go and not be "100%" compliant. What do you want to do?

editform.pt --SimonMichael, 2003/05/08 23:04 GMT
Jordan - I'm just working on this area - rename those templates to .zpt or use the latest zwiki CVS to get around that IO error. Since I've been making changes maybe you can just mail those to me and I'll check them in later. I think the wrap is needed, I guess I'd leave it as-is for now. Thanks.

Simon, here are the zpt's. I just archived what I had, so look through them for completeness.

zpt.tgz

img tag needs to be closed for XHTML --JordanCarswell, 2003/05/09 01:10 GMT
Simon, you'll need to update the insertion of the image tag for uploads so that it is XHTML compliant :) :

 <img src="graphic.gif" />

img tag needs to be closed for XHTML --simon, 2003/05/09 02:03 GMT
Done, thanks.

checked in --simon, 2003/05/09 03:10 GMT
Merged and checked in, thanks.

Tried enabling the validate link but it's only good for the main page view.. there's probably a bookmarklet which will work better for testing this. A quick check showed the validator error count greatly reduced.


comments:

property change --simon, Sat, 27 Sep 2003 20:52:18 -0700 reply
Category: general => skins and content

Valid ZWiki --ArnoPucher, Tue, 28 Sep 2004 10:36:14 -0700 reply
Since I am trying to get "my" wiki compliant I think this link is useful ;)

Validate ZWiki.org

update to 4.01 strict --simon, Tue, 01 May 2007 11:47:47 -0700 reply
:

 11:44:25) sm: <img stuff> or <img stuff /> ??
(11:44:46) WebDragon: sm: html 4.01 strict or xhtml 1.0 ?
(11:44:47) deltab: the former
(11:44:59) deltab: unless you're using xhtml
(11:45:10) reisio: ...which you shouldn't be using
(11:45:13) sm: eh.. XHTML 1.0 Transitional it looks like
(11:45:20) reisio: sm: switch to HTML 4.01 Strict
(11:45:22) reisio: +doctype
(11:45:23) miniE: Take a gander at the fine document type definitions available at http://webstandards.org/learn/templates/ (HTML 4.01 Strict is recommended). A more complete list can be had at http://www.w3.org/QA/2002/04/valid-dtd-list.html
(11:45:28) reisio: +validators
(11:45:41) nineseventeen [n=nineseve@outbound.wa1.ascentium.com] entered the room.
(11:45:43) WebDragon: sm: if you HAVE to use xhtml then it's /> but I recommend using HTML 4.01 strict instead
(11:45:48) WebDragon: and just >
(11:45:57) sm: ok, 4.01.. and then use the first one ? thank you
(11:46:06) WebDragon: sm: strict, not transitional

 (11:46:52) WebDragon: `validate html www.webdragon.net
(11:46:58) WebDragon: and
(11:47:03) miniE: The URL www.webdragon.net contains valid content according to http://tinyurl.com/ypw7lm
(11:47:03) WebDragon: `validate css www.webdragon.net
(11:47:06) miniE: The stylesheet at www.webdragon.net contains valid content according to http://tinyurl.com/2742o5
(11:47:10) sm: nice
(11:47:15) WebDragon: yeah very handy
(11:47:38) WebDragon: sm: we also have lookups for html attributes for those of us with faulty memories :
(11:47:43) WebDragon: `html object
(11:47:43) miniE: Found for HTML 4.01 - object - http://www.w3.org/TR/html4/struct/objects.html#edef-OBJECT