Menu

#1 XHP does not generate valid XHTML

v0.4
open-accepted
Layout (1)
5
2005-06-19
2004-01-29
No

Trying to validate it with the W3 XHTML validator fails.

Discussion

  • Laurentiu Matei

    Laurentiu Matei - 2004-01-29
    • status: open --> open-duplicate
     
  • Laurentiu Matei

    Laurentiu Matei - 2005-06-19

    Logged In: YES
    user_id=324142

    This depends a lot on the theme, but XHP should only
    generate XHTML code anyway.

     
  • Laurentiu Matei

    Laurentiu Matei - 2005-06-19
    • milestone: 373311 --> v0.4
    • status: open-duplicate --> open-accepted
     
  • Klas Wirholm

    Klas Wirholm - 2008-02-08

    Logged In: YES
    user_id=2003667
    Originator: NO

    Some bugs, yes.

    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

    On line 196 missing end "/" in blog.xhpm.php :

    $blog_title = $db->get_var ("SELECT title FROM ".XHP_TBL_PREFIX."pages WHERE page_id='".$db->quote($this->page_id)."'");
    $this->set_header("live_bookmark","<link rel=\"alternate\" type=\"application/x.atom+xml\" title=\"".$blog_title."\" href=\"modules/blog/atom_0_3_".$this->box_id.".xml\">\n");

    change to:

    $blog_title = $db->get_var ("SELECT title FROM ".XHP_TBL_PREFIX."pages WHERE page_id='".$db->quote($this->page_id)."'");
    $this->set_header("live_bookmark","<link rel=\"alternate\" type=\"application/x.atom+xml\" title=\"".$blog_title."\" href=\"modules/blog/atom_0_3_".$this->box_id.".xml\"/>\n");

    and it validates!

     

Log in to post a comment.

MongoDB Logo MongoDB