qqzsxyz / vimwiki

Automatically exported from code.google.com/p/vimwiki
0 stars 0 forks source link

Is there any way that I can make the pages pass xhtml 1.0 strict? #299

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I tried to produce pages via VimwikiAll2html,it comes with html4.0 in the 
DOCTYPE line,but the way which vimwiki produce web pages produce many things 
that only available in Xhtml.So I get curioused,how can I get these pages 
passed the w3c validator?Is there any way that I can change the way Vimwiki 
produce htmls?

I tried to search in google and manual,but failed to find any clue

Poor English....Hope not to confuse you.
thx.

Original issue reported on code.google.com by lht...@gmail.com on 10 Apr 2012 at 2:06

GoogleCodeExporter commented 8 years ago
Not with the current vimwiki parser. You can try to rewrite it, of course. But 
that is not trivial.

Original comment by habamax on 11 Apr 2012 at 4:20

GoogleCodeExporter commented 8 years ago
The title seems to indicate that you want XHTML, but then you write as if HTML 
validator was complaining about XHTM-isms in the markup.

Whichever way it is: as noted in Comment 1, it is going to be while before the 
compliance with standards is improved. But it is going to be for HTML first, 
because that is easier and more common.

Anyway, it is an important issue, and certainly not "Done", but is kind of 
general, and it will take a while to go over all the obstacles. If you had some 
minimal example files (or a list of specific problems the validator pointed 
out), this would be much more useful bug report. But I suppose it is not too 
difficult to verify that the HTML is non-validating in general.

Original comment by tpospi...@gmail.com on 11 Apr 2012 at 7:54

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
thx for all of the answers.I hope I've grasp your ideas.

I tried to make it obay xhtml1.0 first,then I found the way which Vimwiki 
produces pages generated tags like "ul" "li" open,then I found that the default 
template's DOCTYPE is Html 4.0 So I changed the template.It came better with 
rarely "Invalid".However,something Like <hr/> <br /> </p> was found not open 
.so just feel a little inconsistency for the generator.

For I really like This script,and only want to make it better measure up to 
standard.

just found an issue about html5 support,It's really good for expecting.

Sorry for poor English and awful feedback.

Original comment by lht...@gmail.com on 11 Apr 2012 at 9:14

GoogleCodeExporter commented 8 years ago
The problem of xhtml single markers is trivial to fix. Thank you for noticing 
it, I thought that they were corrected some time ago already.

It is the issues of unmatched or badly nested markers that are difficult to fix 
without a complete makeover for the HTML generator. You should definitely use 
HTML template, not XHTML.

Regarding HTML5 (mentioned in Issue 142 ?), I have no idea which parts of HTML5 
that are not in earlier versions would be of any use for Vimwiki generated 
output.

Original comment by tpospi...@gmail.com on 13 Apr 2012 at 8:34