valid-xhtml

Can we configure Oracle ADF Faces to produce valid XHTML?

We are using Oracle ADF Faces in a new web project. I am always looking for an unobtrusive user experience with progressive enhancement and valid XHTML output. It seems however that ADF Faces produce ugly, non-validating (table based) html output that reminds me of 1994 when using their standard components. Is there a way to configure A...

Why does Javadoc generate non-compliant XHTML?

I just pasted some generated javadoc into an eclipse project, to discover none of the HTML is compliant. There is even cases of closing tags that were never opened. Is there some way to fix this? Maybe a "be compliant" option... ...

XHTML and & (Ampersand) encoding

My website is XHTML Transitional compliant except for one thing: the & (ampersand) in the URL are written as it is, instead of &amp; That is, all my urls in pages are as usual as: <a href="http://www.foo.com/page.aspx?x=1&amp;y=2"&gt;Foo&lt;/a&gt; But XHTML validator generets the error cannot generate system identifier for general ...

Is it still necessary to put a space before closing an empty element in XHTML?

W3C recommends putting a space before the closing tag in XHTML, because this would give a better backwards compability with some browsers, e.g. write <br /> instead of <br/>. But are there still browsers out there, that would not tolerate that you omitted the space? (W3C do not mention which browsers cause problems.) I know it doesn't m...

Mature and Robust .NET Class to allow/disallow XHTML tags/attributes

I need an extensible class to parse a string and allow certain XHTML tags and attributes. If the given string contains invalid tags, they shall simply be encoded to display on the page as entered. I need to be assured that no user input will be lost. Thank you! ...

Is it wrong to change a block element to inline with CSS if it contains another block element?

I know it's wrong to put a block element inside an inline element, but what about the following? Imagine this valid markup: <div><p>This is a paragraph</p></div> Now add this CSS: div { display:inline; } This creates a situation where an inline element contains a block element (The div becomes inline and the p is block by defau...

Help needed in figuring out validation and display issues !!

Hi all, I am developing a website for a friend which was earlier developed by some other guy, basically i am a php pro and dont ve much experience in html (or untill now) ... now, i am trying to validate my webpage, earlier it was showing 162 errors, i ve brought it down to 1 error (thankyou) ... ha ha earlier with 162 errors, it was ...

why doesn't the xhtml validate

I don't understand why this form will not validate. It claims that I have not closed an input tag and that I have a closing input tag that is not open. The page in question is http://squareownz.org/dunkyp/index.py http://validator.w3.org/check?uri=http%3A%2F%2Fsquareownz.org%2Fdunkyp%2Findex.py This page however doesn't agree that th...

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...

On jQuery, Metadata, and XHTML Compliance

I want to add some jQuery functionality to our sites where one piece of markup will have a click handler which will need to cause action to happen on another piece of markup, i.e. A is a trigger for action from B. There's no guarantee about the relative structure of A and B, so I can't rely on a jQuery selector, plus each unique A will ...

Does anyone have a script to automatically generate image tags from a directory of images?

I do a lot of slicing in Photoshop, and it's tedious to manually write an <img /> tag for each of them -- writing in the filename, checking height and width, writing the alt tags, etc. I can use Photoshop to generate the HTML, but they usually muck it up by not producing XHTML, or by wrapping it in tables, and so forth. I'm trying to m...

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 ...

Conditional Comments and Valid XHTML

Given the code (which looks like it should be valid): <!--[if lt IE 7]> <style type="text/css" media="screen"> <!-- div.stuff { background-image: none; } --></style><![endif]--> The W3C validator throws a fit: S separator in comment declaration invalid comment declaration: found name start character outside comment but inside commen...

So what if custom HTML attributes aren't valid XHTML?

I know that is the reason some people don't approve of them, but does it really matter? I think that the power that they provide, in interacting with JavaScript and storing and sending information from and to the server, outweighs the validation concern. Am I missing something? What are the ramifications of "invalid" HTML? And wouldn'...

How to make Resig's micro-templates XHTML compliant?

Hello, I have been experimenting with John Resig's micro-template, which works great. However, the mark-up will not pass the XHTML 1.0 Transitional validation test. (Among other things, id attributes yield errors.) Replacing tags identifiers <, > with [[,]], passes validation. Thus, I created a js script which at load time (jQuery doc...

IE8 & FF XHTML error or badly formed span?

I recently have found a strange occurrence in IE8 & FF. The designers where using js to dynamically create some span tags for layout (they were placing rounded corner graphics on some tabs). Now the xhtml, in js, looked like this: <span class=”leftcorner” /><span class=”rightcorner” /> and worked perfectly! As we all know dynamically ...

XHTML correct syntax

Hello, I have a question. I am developing a card board which is 4x3. So I have tryed to do markup with XTHML Transitional. I have used containers mixed with tables. The example for first row: <table> <tr> <div class="slot_01"></div> <div class="slot_02"></div> <div class="slot_03"></div> <div class="slot_04"></div> </tr> ...

xhtml transitional vs strict?

iframes are not supported in xhtml strict. However, in my application I am using php recaptcha which requires the use of iframes. What are the downsides of just switching to xhtml transitional (if any)? ...

How should ajax request html files be formatted?

Im using jquery UI's tabs with ajax. I was wondering if the files that the ajax calls are gonna retrieve are supposed to be formatted starting with <html> or just the minimal html possible cause its gonna be injected into an already formatted valid xhtml file.... I hope Im making myself clear. Thanks in advance. ...

Expand an <a> tag to fill the space

How can I make the anchor tag expand to the bottom of the list item? I know I could put the anchor round the list item tag, but that breaks XHTML 1.0 Strict compliance, so I cannot do it. <html> <head> <style> #listWrapper { text-align:center;} #list { margin-left: 0px auto; margin-right: 0px auto; width: 100%; min-hei...