Internet Explorer correctly shows the headlines of all posts in a big font on my frontpage:
http://atlanticreview.org/
Firefox, however, only shows the headline of the first post in a big font on my frontpage. All following headlines are in small fonts.
I am not sure, if this is a bug or whether it is just a problem with my Firefox.
Headlines in Firefox
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Headlines in Firefox
Hi!
I guess this is a HTML validation issue. Check http://validator.w3.org/check?verbose=1 ... iew.org%2F - it throws a lot of errors.
Tip 1: Switch your serendipity to "XHTML 1.1 compliant output". The rest is up to your template and entries/sidebar plugins.
Best regards,
Garvin
I guess this is a HTML validation issue. Check http://validator.w3.org/check?verbose=1 ... iew.org%2F - it throws a lot of errors.
Tip 1: Switch your serendipity to "XHTML 1.1 compliant output". The rest is up to your template and entries/sidebar plugins.
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Thank you, Garvin.
I have always had "Force XHTML 1.1 compliance" switched on in the configurations. Besides I am using the "Fix common XHTML errors" plugin.
Unfortunately, I don't know and understand enough HTML to fix all the errors myself.
I have always had "Force XHTML 1.1 compliance" switched on in the configurations. Besides I am using the "Fix common XHTML errors" plugin.
Unfortunately, I don't know and understand enough HTML to fix all the errors myself.
My blog: http://AtlanticReview.org
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
The Fix-Plugin only helps you with most of the problems; it cannot fix unmatching tags or invalid tags.
This is what you need to check:
* Lowercase <META> tags. XHTML does not allow uppercase tags
* Wrong <ul><li> elemenets. After <ul> there must be a <li>, and all <li>s must be closed before </ul>. No texst is allowed within <ul>, only within <li>.
* Special characters must be escaped ("non SGML characters")
* All <div> tags must be properly matched by a closing </div>
* "border" is not a valid attribute, it must be removed for all tags and replaced with "style='border: 0px'".
* All <p> tags need a closing </p>
* Check all those seek="" shall="" not=""
Best regards,
Garvin
The Fix-Plugin only helps you with most of the problems; it cannot fix unmatching tags or invalid tags.
This is what you need to check:
* Lowercase <META> tags. XHTML does not allow uppercase tags
* Wrong <ul><li> elemenets. After <ul> there must be a <li>, and all <li>s must be closed before </ul>. No texst is allowed within <ul>, only within <li>.
* Special characters must be escaped ("non SGML characters")
* All <div> tags must be properly matched by a closing </div>
* "border" is not a valid attribute, it must be removed for all tags and replaced with "style='border: 0px'".
* All <p> tags need a closing </p>
* Check all those seek="" shall="" not=""
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
It should be correct, but it isn't. The Vailidator says:* Wrong <ul><li> elemenets. After <ul> there must be a <li>, and all <li>s must be closed before </ul>.
This is the relevant code for the drop down menu in my index.tpl:Error Line 58 column 87: document type does not allow element "div" here; assuming missing "li" start-tag.
...ner_serendipity_plugin_recententries">
Code: Select all
<div id="navigation">
<ul id="nav_header_menu">
<li><a href="{$serendipityBaseURL}" accesskey="h">Home</a></li>
<li><a href="#">About</a>
<ul>
<li><a href="http://www.atlanticreview.org/archives/116-ABOUT-US.html">About the Atlantic Review</a></li>
<li><a href="http://www.atlanticreview.org/archives/55-Impressum-and-Disclaimer.html">Impressum, Masthead, Disclaimer</a></li>
<li><a href="mailto:editors@atlanticreview.org?subject=Regarding%20the%20Atlantic%20Review">Contact Us</a></li>
</ul></li>
<li><a href="#">New Entries</a>
<ul>{serendipity_showPlugin class="serendipity_plugin_recententries" side="hidden" negate="null"}</ul></li>
Code: Select all
</ul>
</div>My blog: http://AtlanticReview.org
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
You are not allowed to use
You must use.
Note how to properly wrap the plugin inside <li> and not <ul>.
Regards,
Garvin
You are not allowed to use
Code: Select all
<li><a href="#">New Entries</a>
<ul>{serendipity_showPlugin class="serendipity_plugin_recententries" side="hidden" negate="null"}</ul></li>
Code: Select all
<li><a href="#">New Entries</a>
<ul><li>{serendipity_showPlugin class="serendipity_plugin_recententries" side="hidden" negate="null"}</li></ul></li>
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Thank you. That worked. Now there are "only" 45 errors left. 
The validator says:
Next error:
Next error:
I have solved my problem with the headlines, by writing that post new. However, it would be nice to have an XHTML compliment blog. Though, how important is that?
Having 45 errors is not good for google page rank, I assume. However, will users experience problems due to these errors?
The validator says:
But that is the original S9Y stuff. I did not mess with it, I think. Why is element div not allowed? There is an /div for closure. Why does div need a start tag?Error Line 230 column 47: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.
<div class="serendipity_entry_body">
Next error:
But that is an iframe copied exactly from Amazon. I checked.Error Line 231 column 3835: there is no attribute "border".
...edium none ;" marginwidth="0" border="0" src="http://rcm.amazon.com/e/cm?t=at
Next error:
But that is also normal S9Y. I did not mess with it.Error Line 237 column 48: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.
<div class='serendipity_entryFooter'>
I have solved my problem with the headlines, by writing that post new. However, it would be nice to have an XHTML compliment blog. Though, how important is that?
Having 45 errors is not good for google page rank, I assume. However, will users experience problems due to these errors?
My blog: http://AtlanticReview.org
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
I think many of those errors stem from a previous error with an invalid <p> element enclosing stuff or so? Maybe the original creator of your template, Carl galloway, does know some help here?
[/quote]
Amazon only gives a HTML4.0 example, but their code is not XHTML compliant, you need to remove the 'border'.
Best regards,
Garvin
I think many of those errors stem from a previous error with an invalid <p> element enclosing stuff or so? Maybe the original creator of your template, Carl galloway, does know some help here?
But that is an iframe copied exactly from Amazon. I checked....edium none ;" marginwidth="0" border="0" src="http://rcm.amazon.com/e/cm?t=at
[/quote]
Amazon only gives a HTML4.0 example, but their code is not XHTML compliant, you need to remove the 'border'.
The default template should validate as proper XHTML.I have solved my problem with the headlines, by writing that post new. However, it would be nice to have an XHTML compliment blog. Though, how important is that?
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Thanks again, Garvin.
I have deleted allin the Amazon code. And Carl has fixed by entrie.tpl
Now my page Is Valid XHTML 1.0 Transitional!
The S9Y community is great!
I have deleted all
Code: Select all
border="0" Now my page Is Valid XHTML 1.0 Transitional!
The S9Y community is great!
My blog: http://AtlanticReview.org
-
carl_galloway
- Regular
- Posts: 1331
- Joined: Sun Dec 04, 2005 5:43 pm
- Location: Andalucia, Spain
- Contact: