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...
I'd like to validate that users of my WPF application are putting proper XHTML into its TextBox control.
I found that there's an API for the W3C Markup Validator.
It's web page says:
Building of libraries used to interact
with the validator's API is
encouraged.
and it lists known Perl, PHP/PEAR and ColdFusion libraries.
Doe...
EDIT: After re-reading my post I think I am being a little bit unclear about what the problem is. Let me try to re-phrase it:
Users can leave comments on my site using a textarea field in a form. It should be possible to add line breaks in the comment using <br />. The comment is then stored as a string in a mysql-database (escaped to m...
I think most people agree that complying with W3C standards is a worthwhile pursuit.
However, do you advertise the fact that your site is compliant? Are there positives or negatives to doing so?
If you do display your compliance, how do you do it?
...
Hello
I'm trying to achieve full XHTML transitional validation of my JSP output but I've hit a snag. The top of the header looks like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
It is included with a stat...
I have this piece of code:
<script language="javascript" type="text/jscript">
document.write("<img src='http://dm.leadgenesys.com/jpgp.lgt?en=P.........TP_Q=&amp;ur=' + escape(document.referrer) + '' border='0' alt='no alt' />");
</script>
and... when I try to validate it, I'm given this error:
document type does not allow ...
This question was inspired a bit by this question, in which the most upvoted answer recommended using a feature from HTML 5. It certainly seemed to be a good method to me, but it made me curious about using features from a future spec in general.
HTML 5 offers a lot of nice improvements, many of which can be used without causing proble...
I've seen this in the footer of various websites, most of them non-technical websites. Some websites go even further and include a W3C badge stating the fact. I don't see how this can be of any help to the targeted audience.
...
I'm trying to get a site to validate as HTML5 on the W3C Markup Validator. When I use the "Validate by URI" option, it generates a ton of errors, but when I copy and paste the HTML into the "Validate by direct input", it validates perfectly. When I run a diff on the two sources returned by the validator, the only differences are the Rail...
I think the solution to my problem is very easy, but i couldn't fint it
So, here is:
I have an XML which have a list of elements with different names, but in sequence.
An example:
<DOC>
<DOC_OBL_1>
<TIP_DOC_OBL>1</TIP_DOC_OBL>
</DOC_OBL_1>
<DOC_OBL_2>
<TIP_DOC_OBL>2</TIP_DOC_OBL>
</DOC_OBL_2>
<DOC_OBL_3>
<TIP_DOC_OBL>3</...
I tried to validate my site's CSS using the W3C CSS Validator. Unfortunately, reset-min.css from YUI framework produced parse error on the string " {*font-size:100%; ".
The validator results.
On further investigation I noticed the following error on Firefox's error console:
Warning: Expected declaration but found '*'. Skipped to ...
Hi,
I have a website which is constantly changing and I would like to W3c validate it before deploying to live - are there any tools that can help me with this? An Eclipse plugin would be perfect but I'd settle for a standalone tool. Any pointers appreciated, thanks.
...
Hey
Is there any way to fix the error that a JavaScript & causes in w3 validation? The problem is that i have to use && in a if statement and these two &&'s causes errors in w3 validation.
EDIT:
Same problem with "<" and ">".
...
I am working on blogging software. Occasionally users manage to paste control characters into their blog posts (for example someone recently managed to paste in the vertical tab character, ). When we render the posts in an RSS Feed, XML parsers fail to parse the control character and declare the feed invalid.
One way to fix this wo...
Hi guys, my social networking site is w3c xhtml valid however users are able to post blog reports and stuff and at times enter in ampersand characters which in turn mess up my validation. How can I fix this and are there any other single characters that I need to look out for that could mess up my validation?
...
I'm trying to embed a .mov video in a web page whose DOCTYPE is HTML5, the code is:
<script type="text/javascript">
QT_WritePoster_XHTML('Click to Play', '...', '...',
'400', '300', '',
'controller', 'true',
'autoplay', 'true',
'bgcolor', 'black',
'scale', 'aspect');
</script>
<noscript>
<object width=...
is -negative margin or padding are invalid CSS aaccording to W3C ?
...
Is there a reason many websites place a small link/button to the W3C CSS/HTML validation of the respective site or is this just a weird practice that caught on?
...
We are going to redesign a large web service which has around 25 unique page templates delivering thousands of pages. One of the major requirements is w3c compliance (html 4.01 transitional / WCAG1.0). There are an infinite no. of validation errors as the code is shabby.
1) Since its an old application, starting from scratch is not an o...
Is there a way to have non-standard attributes like
onselectstart
oncontextmenu
...
in a tag, and still pass validation as HTML 4.01 transitional somehow?
Apart from adding the properties later on using Javascript.
...