Welcome Guest, Not a member yet? Register   Sign In
validation xhtml 1.0 strict['RESOLVED']
#1

[eluser]diasansley[/eluser]
I am using XHTML 1.0 strict i validated my site from a chrome browser plug in it says valid page. But if i individually put my view files in the w3 website it gives errors!!!!


Thanks
#2

[eluser]diasansley[/eluser]
Here is my sample file
I have tried max validation i can understand the errors i get for the code below!

Code:
<div id="header_container">
    <div id="header_wrapper">
        <div id="headerlogo">
        </div>  
        <div id="searchcontainer">
            <fieldset>
            &lt;?=form_open('search/showResult');?&gt;
                &lt;?php $s=(!empty($search_text)) ? $search_text : '  search';?&gt;
                <p>&lt;input type="text" class="searchtxtbox" name="search_text" id="search_text" style="width:200px;" value="&lt;?=$s;?&gt;"&gt;&lt;/p>
                <p>&lt;input type="submit" value="" name="search_submit" class="searchbtn"/&gt;&lt;/p>
  
                <div id="searchList" class="auto_complete"></div>
                [removed]
                //&lt;![CDATA[
                            var message_to_auto_completer = new Ajax.Autocompleter('search_text', 'searchList',"&lt;?=base_url();?&gt;search/autocompleteSearch" , {paramName : "search_text" , ignoreCase:false})
                //]]>
                [removed]
                
             &lt;?=form_close();?&gt;
            </fieldset>
        </div>  
           <ul id="menu">
                <li>&lt;?=anchor('home/index', 'Start', array('id' => 'start_link'));?&gt;</li>    
                <li>&lt;?=anchor('#', 'Geschäfte/Gastronomie', array('id' => 'ges_link'));?&gt;  
                      <ul>
                          &lt;?php foreach($menu_link as $key => $menu): ?&gt;
                                   <li>
                                      &lt;?=anchor('entries/showAllEntries/category/'.$key, $menu['name'], array());?&gt;
                                       &lt;?php  if(isset($menu['child_id'])) :
                                              $counter=0; ?&gt;
                                               <ul>
                                          &lt;?php    foreach($menu['child_id'] as $child_key => $child) : ?&gt;
                                                  
                                                  <li>
                                                  &lt;?=anchor('entries/showAllEntries/category/'.$child, $menu['child_name'][$child_key], array());?&gt;
                                                  </li>
                                                  &lt;?php if((sizeof($menu['child_id'])-1)!=$counter)
                                                  $counter++;
                                              endforeach;
                                              ?&gt;
                                             </ul>
                                &lt;?php endif; ?&gt;  
                              </li>
                        &lt;?php endforeach; ?&gt;  
                      </ul>
                </li>
                <li>&lt;?=anchor('home/index', 'Aktuelles', array('id' => 'aktuelles_link'));?&gt;
                       <ul >
                          &lt;?php foreach($news as $key => $value): ?&gt;
                                   <li>
                                      &lt;?=anchor('news/showNewsDetail/'.$value['id'], $value['title'], array());?&gt;
                              </li>
                        &lt;?php endforeach; ?&gt;  
                      </ul>
                </li>
                <li>&lt;?=anchor('home/index', 'Center', array('id' => 'center_link'));?&gt;</li>
                <li>&lt;?=anchor('contact/contactinfo', 'Kontakt', array('id' => 'kontakt_link'));?&gt;
                   &lt;?php if($utilities[0]['contact_display']==1) : ?&gt;
                    <ul>
                         <li>&lt;?=anchor('contact/contactinfo', 'Contact Info', array());?&gt;</li>
                         <li>&lt;?=anchor('contact/addressinfo', 'Address Info', array());?&gt;</li>
                         <li>&lt;?=anchor('contact/pressinfo', 'Press Contact', array());?&gt;</li>
                 </ul>
                   &lt;?php endif;?&gt;
                </li>
           </ul>    
  
    </div>          
</div>
#3

[eluser]LuckyFella73[/eluser]
I wonder why you try to validate the seperated view part (body) - that makes
no sense to me and can't work. For validating a page you need to
check the whole sourcecode including html, head, body parts. How
can you validate a page where no doctype is set or the essential
tags are missing?

Quote:I am using XHTML 1.0 strict i validated my site from a chrome browser plug in it says valid page.
If your "complete" page is valid then everything should be fine!

btw. if you don't post the error messages nobody here can say what's
going wrong. If you want someone to check your page we need the
complete sourcecode (a link to your page would be the best) as
it is rendered in your browser.
#4

[eluser]bl00dshooter[/eluser]
Besides what Lucky said, validation is a tool, not a obligation: http://net.tutsplus.com/articles/general...-validate/
#5

[eluser]diasansley[/eluser]
thanks LuckyFella73 was not sure if the chrome plug in was enough!

Anyways that solves my problem thanks




Theme © iAndrew 2016 - Forum software by © MyBB