xhtml-1.0-strict

How do you write Valid XHTML 1.0 Strict code when you are using javascript to fill an element that requires a child?

I'm running my site through the W3C's validator trying to get it to validate as XHTML 1.0 Strict and I've gotten down to a particularly sticky (at least in my experience) validation error. I'm including certain badges from various services in the site that provide their own API and code for inclusion on an external site. These badges u...

Strict XHTML compliance in ASP.NET 2.0/3.5

Are there any good methods for getting ASP.NET to valid under the XHTML strict DTD? I'm interested to hear some ideas before I hack up the core of the HTTP response. One major problem of the major problems is the form tag itself, this is the output I got from W3C when I tried to validate: Line 13, Column 11: there is no attribute "nam...

How do you specify your Content Type in ASP.NET?

I'm specifying my doctype as xhtml strict, but it's being sent over the wire as a content type of text/html. I'd like to specify that the content type is application/xhtml+xm, but I can't figure out where, or if, I can configure this from within my application ...

Why won't this XHTML form validate?

Any ideas why this won't validate here: http://validator.w3.org/#validate_by_input It seems the form input tags are wrong but reading through the XHTML spec they should validate fine. Any ideas? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.o...

What problem does XHTML strict solve?

I really don't understand the fascination with XHTML strict. Inline JavaScript typically requires a rats nest of escapes to make it compatible with XHTML and semi-backwards compatible with MSIE 5 & 6. Then there is the issue of not being OCD enough on user input to make sure you don't miss any illegal characters. It just seems like m...

Is It Ever Justified To Open A New Window/Tab From A Hyperlink?

Simple question, spurred on by the removal of the target attribute in HTML 4.0 Strict and XHTML 1.0 Strict. ...

FireFox script tag error

While adding some very basic script tags I found a wierd "bug" in firefox (as well as IE) I added these two lines of code to my .htm page <script type="text/javascript" src="js/jquery.js" /> <script type="text/javascript" src="js/jquery.corner.js" /> To me as well as opera and chrome they look like ordinary script tags however to fire...

How to achieve two different alignments inside a html option tag?

I have a select html tag with country calling codes. <select name="countryCallingCode" id="countryCallingCode"> <option value="1"><span class="name">Afghanistan</span><span class="code">+93</span></option> <option value="2"><span class="name">Albania</span><span class="code">+355</span></option> <option value="3"><span class=...

Ordered Lists <OL>, Starting index with XHTML Strict?

Is there a way to start an ordered list from a specific index while following XHTML Strict? Using start=n works well, but has been deprecated… The intended purpose is to resume the index with paging. I saw a few references to a CSS solution, but the starting index cannot be used like the attribute in the deprecated case of start. ...

Embed YouTube videos while staying XHTML 1.0 Strict?

Is there a way to embed a YouTube video while still staying standards compliant (XHTML 1.0 Strict)? Thanks in advance. ...

How do I fade in/out a jQuery menu with sub menus?

Hi, I am trying to make a menu that has many links and each link has its own sublist, this is what i am using.. <body> <div id="menu"> <a href="#"><li>users <br /></a></li> <a href="#"><li>product <br /></a></li> <a href="#"><li>movies <br /></a></li> <a href="#"><li>clips <br /></a></li> <a href="#"><li>teaser <br /></a></li...

XHTML 1.0 Strict, CSS and img borders

I am using XHTML 1.0 Strict on my website and have the following CSS style on my links: a:hover { border-bottom: 1px dotted #447799; } and my images: a img, img { border: none; text-decoration: none; } Yet, when I hover over my title banner the bottom border still shows up dotted and blue. Obviously, I can't use border=...

why won't this validate (jquery problem) ?

On my site I'm using the jquery cycle plugin for a slideshow with a pager. This example: http://malsup.com/jquery/cycle/pager.html So in the head of my document, I have a script similar to: <script type="text/javascript"> $('#s4').before('<div id="nav">').cycle({ fx: 'turnDown', speed: 'fast', timeout: 3000, p...

How to get this line of jQuery to validate as XHTML strict

Hello, I have this bit of jQuery at the top of my page (used for a simple image carousel): $(document).ready(function(){ $("#slider").easySlider({ prevText:'<div id="backarrow">Back</div>', nextText:'<div id="nextarrow">View Other Projects</div>', orientation:'horizontal' }); }); however, I can't get it to validate XHTML ...

Banded grid view in XHTML Strict + CSS

I'm trying to create a simple banded grid view in XHTML Strict with CSS. For an example see this picture of a devExpress GridView. The main issue is how to create a table where each entry consists of multiple rows. Of course, something like <table> <tr><td> <table> <tr> <td width=100>Item 1, cell 1</td> <td width=200>Ite...

Images not displaying in certain browsers

having just completed first wordpress theme uploaded and working fine in FF, testing has revealed that the images in the following page do not display in safari and chrome. http://www.isabelarbelaez.com/category/projects/so_it_goes Anyone any ideas why? I cannot see why at all. The images on the page display in FF, IE and Opera, just ...

quicktime movie layering issues

I have a site (link below) where the clients work displays on a long horizontal page. The menu is fixed on the left hand side and the images disappear under the menu when scrolling across. The client has now uploaded quicktime movies which do not go under the menu like the images but scroll over the menu. http://www.calebchurchill.com/...

Text Overflow Problem & Text Non Wrap

Scenario: One header DIV with three DIV's inside side by side floated left. Problem: "Text" from HEADER_A div is overflowing into HEADER_B DIV and so on. Screenshot / CSS: #header{ height:127px; width: 718px; } #header_a { width:181px; height: 127px; color:#FFFFFF; float:left; } #header_b{ width: 363px; float:left...

Animate pseudo class in jQuery

Hi Is it possible to animate a pseudo class when it is activated, for example: I have to the following in my css: #gallery a span { border:#006553 3px solid; position:relative; overflow:hidden; display:block; top:0px; left:0px; height:89px; width:89px; } #gallery a:hover span { border:#f3bd2f 6px s...

How can I tell rails to use xhtml strict instead of transitional?

So when you use scaffolding Rails will kick out some layouts that are xhtml transitional. I prefer strict. Is there some setting somewhere to do this? Or shall I continue to edit the doctype in the layouts? ...