473,385 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

html validation fails

http://test.planprojekt.dk/vaerk.aspx
(http://validator.w3.org/check?uri=ht...k%2Fvaerk.aspx)
fails validation.

It fails due to tags not being closed properly. However, the failing
code is produced dynamically and is regarding a couple of listboxes.

Is there any way for me to get around this failing code?

Regards /Snedker
Nov 27 '06 #1
4 996
"Morten Snedker" <morten_spammenot_ATdbconsult.dkschrieb:
It fails due to tags not being closed properly.
At the first glance, some 'input' tags look
suspicious. They are closed with '/>', which is
AFAIK an XML-only feature.

You could store the HTML output from within
the browser and reduce the source text until
the validation error disappears.

Regards,
Joachim

Nov 27 '06 #2
HTML is now XHTML and is XML, therefore it has a schema which says the Select
tage can not be empty. Yet your Listbox has no items and therefore doesnt
have any options in the select tag. Try adding a blank option to the listbox.

Ciaran O'Donnell

"Morten Snedker" wrote:
http://test.planprojekt.dk/vaerk.aspx
(http://validator.w3.org/check?uri=ht...k%2Fvaerk.aspx)
fails validation.

It fails due to tags not being closed properly. However, the failing
code is produced dynamically and is regarding a couple of listboxes.

Is there any way for me to get around this failing code?

Regards /Snedker
Nov 27 '06 #3
On Mon, 27 Nov 2006 08:23:01 -0800, Ciaran O''Donnell
<Ci************@discussions.microsoft.comwrote:

According to W3C it actually does seem like it is the missing "option"
that causes validation to fail.

I'm not aware how to add a blank option as you suggest (or maybe I
just don't know what you mean) - can you help me the last step?

Regards /Snedker
>HTML is now XHTML and is XML, therefore it has a schema which says the Select
tage can not be empty. Yet your Listbox has no items and therefore doesnt
have any options in the select tag. Try adding a blank option to the listbox.

Ciaran O'Donnell

"Morten Snedker" wrote:
>http://test.planprojekt.dk/vaerk.aspx
(http://validator.w3.org/check?uri=ht...k%2Fvaerk.aspx)
fails validation.

It fails due to tags not being closed properly. However, the failing
code is produced dynamically and is regarding a couple of listboxes.

Is there any way for me to get around this failing code?

Regards /Snedker
Nov 28 '06 #4
On Mon, 27 Nov 2006 08:23:01 -0800, Ciaran O''Donnell
<Ci************@discussions.microsoft.comwrote:

Figured out your suggestion and that did the trick! Thanks to both of
you for your efforts! :-)

Regards /Snedker
>HTML is now XHTML and is XML, therefore it has a schema which says the Select
tage can not be empty. Yet your Listbox has no items and therefore doesnt
have any options in the select tag. Try adding a blank option to the listbox.
Nov 28 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Marcel | last post by:
Hello all, I am working on a generic (php) script to produce (X)HTML Forms through XML and XSL based on field-definitions stored in a database. The basic way i did HTML-forms in PHP was like...
4
by: bnp | last post by:
Hi All, I am quite new the JavaScript. Basically I am a C++ programmer, but now I am working on JavaScript since last 5 days. I have a problem regarding the form validation. I have created a...
0
by: Brian Conway | last post by:
I am having some validation and insertion problems. I am using a date picker that takes the selected date and puts it to ("dd-MMM-yyyy") format, as this was the only format that Oracle would...
3
by: Gary Varga | last post by:
In the file WebUIValidation.js, when a postback that doesn't fail the validation has a javascript error saying summary is undefined in the ValidationSummaryOnSubmit function....
2
by: Chad | last post by:
I have a textbox control, txtMeasurement, that I want to allow only numeric decimal input. I thought to use a client side validation control to ensure that the data entered is of type "Double". ...
2
by: John Smith | last post by:
Hello, I have a VB.NET application with a Windows form that have several textboxes fields where I have dates entered. I would like to do a date validation check after the the field is updated, so...
3
by: Doug (dtism) | last post by:
Hello **newbie alert** <-- that's me btw, but you might have guessed that by my topic title. I have an html page that submits a name and email address by a form to a page called preview.php ...
1
by: MayoM | last post by:
My form has some simple validation in the Before Update event. If the validation fails the code ends with DoCmd.CancelEvent The form also has an Update command button. This simply runs ...
8
by: Bryan | last post by:
I want my business objects to be able to do this: class Person(base): def __init__(self): self.name = None @base.validator def validate_name(self): if not self.name: return
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.