This post may be a bit technical or unclear for some of my readers. I don't claim that I've worded it as precisely and clearly as possible, either. This is my entry for the contest the banner above is about.
I would like to see blogger blogs conform to the XHTML Strict doctype they declare themselves as. They can't do much if the blog authors don't use the correct markup, but at least their end could. I didn't see this on the Blogger Wishlist page. There's not anything complicated that's stopping them from conforming, either. Most of the errors are because ampersand symbols (&) are not written as "&" in the code. The only other errors on their side are because they use an inline frame for the blogger navbar at the top and XHTML Strict doesn't support the iframe tag.
The problem with not conforming to standards (especially when you declare a doctype), is not every browser will deal with the errors in the same way. You will get unpredictable results, or bugs that only happen in some browsers.
Speaking of inline frames, it would really be nice if the blogger polls didn't use an inline frame. The first problem with it is, as I pointed out above, the doctype XHTML Strict doesn't support inline frames. The second problem I've ran into with it is it sometimes has a useless (and annoying) scrollbar to the right of the poll.
That scrollbar caused me much grief. I tried to find a way to get rid of it with CSS code. I figured out if I applied an "overflow: hidden;" style to it, I wouldn't get the scrollbar. The problem I ran into is in XHTML, grandchildren selectors in CSS do not work on the iframe tag. What's strange is child selectors do work. My plan was to apply the style to iframes only within the "poll" div class.
Here's an example of what I'm talking about. This was the grandchild selector I was going to use:div.poll * iframe {
overflow: hidden;
}
What this means is, it will only apply this style to an iframe that's within any tag that's within a div tag with the class "poll". The asterisk (*) is a wildcard, meaning any tag.
This is what I ended up using, a child selector:div.widget-content iframe {
overflow: hidden;
}
This will apply to any iframe within a div tag with the class "widget-content". For now, this works for me because I don't have any other widgets that use iframes. However, if I had any other widgets that use an iframe that I wanted scrollbars in, this would be a problem. I'd probably find a way around it by editing the widget's html code to give the poll iframe an ID. However, that's something I'd have to re-do every time I change the poll.
I suppose this wasn't a suggestion for a new widget (as the contest was asking for), but rather a suggestion to improve the existing. Eh, whatever... If you want to get technical, I'm requesting a poll system that does not use an iframe.
Wednesday, June 25, 2008
«If Only Blogger Was Valid XHTML Strict»
Subscribe to:
Post Comments (Atom)
Label Cloud
About Me
Alaska
Animals
Anonymous
Art
Atheism
Bicycle
Blog Reactions
Blog Upgrades
Blogger
Blunt Honesty
Buildings
Caturday
Clothing
Code
Comics
Computers
Copyright
Cruise Ship Watch
Death
Desktop Backgrounds
Disasters
Doomsday
Economy
eMail
Emergency
Energy
Flying Spaghetti Monster
Food
Free Speech
Friends
Games
Gay Rights
Google
Goth
Holidays
Idaho
Idle Mind
Illness
Injury
Internet
Japan
Jury Duty
Ketchikan
Large Hadron Collider
Lasers
Law
Lies
Magic: the Gathering
Master Marf
Meme
Milestones
Money
Motivational Monday
Mountain
Mountain Dew
Music
Musical Taste
Photos
Poems
Politics
Polls
Pony
Power Outage
Problems
PSAs
Random
Reader Opinion
Reader Submission
Relationships
Religion
Scam
Science
Science Fiction
Scientology
Screenshots
Sea-Monkeys
Ships
Sims 3 Legacy
Social Norms
Software
South Park
Space
Stupidity
Technology
The Game
Tourism
Trail
Unusual Ads
Vacation
Weapons
Weather
Web Feeds
Word Play
Work
YouTube
Very cool. Even though I'm down here and you were talking way up there in your 6'2" world above me....
ReplyDelete....in other words - waaay over my head.
Thank you for your entry to the Blogger Wishlist Competition! I agree, this would be an excellent function for Blogger blogs :)
ReplyDeleteAs far as I can tell, this problem is restricted to those using Layouts and is mostly due to the widget scripts which are added beneath all content on our published pages.
Those using classic templates (or a layout blog with no widgets) are able to use code which can be validated.
In my own blogs I do my best to reduce these validation errors, though using widgets means I cannot eliminate them completely :(
I've added your entry to the list of validated entrants and wish you the best of luck for Friday's draw!
Thank you and best wishes,
Amanda
Blogger Buster
@ Amanda: Thanks. If I were serious about making everything on my side validate, I'd have to change the way I show YouTube videos on my blog. The embed tag has been depreciated in XHTML Strict.
ReplyDeleteIf everything on Blogger's side validated, then I'd go the extra mile to make sure my side did as well.
Son of a Bitch!!!
ReplyDelete[commits suicide]
@ Randy Sexer: Now, now... I don't think it's worth going to those extremes over...
ReplyDeleteIn searching for sites related to web hosting and specifically comparison hosting linux plan web, your site came up.
ReplyDeleterH3uYcBX
Wow! what an idea ! What a concept ! Beautiful .. Amazing …
ReplyDeleterH3uYcBX
@ Anonymous (#7): Damnit, I hate comments like that! That random string of letters at the end of your post gives it away... It was a test comment to see if the spambot is capable of posting here. Soon random male enhancement spam will follow. I've seen this happen before...
ReplyDeletethanks !! very helpful post!
ReplyDelete