Have I put together the first XHTML Strict theme?
-
I doubt it–too many geniuses around here, LOL! But I have managed to find solutions to the problems I’ve had with XHTML Strict.
Search and Latest Comments are the only default WP widgets that don’t test as XHTML Strict compliant. Here is compliant search form code:
<form method="get" id="searchform" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <p> <input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" size="12" /> <input type="submit" id="ssubmit" value="SEARCH" /> </p> </form>
Here is compliant flash/YouTube embed code:
<object width="425" height="344"> <param name="movie" value="https://www.youtube.com/v/dMH0bHeiRNg&hl=en&fs=1"> </param> <param name="allowFullScreen" value="true"></param> <embed src="https://www.youtube.com/v/dMH0bHeiRNg&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"> </embed> </object>
And this javascript will allow you to
target="_blank"
(writerel="target_blank"
instead):function externalLinks() { if (!document.getElementsByTagName && document.getElementById) return; var anchors = document.getElementsByTagName("a"); for (var i=0; i<anchors.length; i++) { var anchor = anchors[i]; if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "target_blank") anchor.target = "_blank"; } } window.onload = externalLinks;
ProfitOnlineForBeginners.com is still in the planning stages. But the theme I put together tests as Strict compliant–even with a fluid center column!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Have I put together the first XHTML Strict theme?’ is closed to new replies.