473,799 Members | 3,161 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Weird error on W3C css validator

Hi

The W3C css validation service at http://jigsaw.w3.org/css-validator/
claims that:

{font-family: "Book Antiqua", Palatino, "Times New Roman", "Times
Roman" serif}

is invalid on the grounds that "Too many values or values are not
recognized "

Given that those fonts are very widely used and most are standard
Windows fonts, any idea why I'm getting this weird message from the
validator?

Dave
Jun 27 '08 #1
13 2106
On 12 May, 16:54, Dave Rado <dave.r...@dsl. pipex.comwrote:
Hi

The W3C css validation service athttp://jigsaw.w3.org/css-validator/
claims that:

{font-family: "Book Antiqua", Palatino, "Times New Roman", "Times
Roman" serif}

is invalid on the grounds that "Too many values or values are not
recognized "

Given that those fonts are very widely used and most are standard
Windows fonts, any idea why I'm getting this weird message from the
validator?

Dave
It's okay I've discovered that the word Serif needed to have a capital
"S". Not a very helpful error message though!!

Dave
Jun 27 '08 #2
On May 12, 5:03*pm, Dave Rado <dave.r...@dsl. pipex.comwrote:
On 12 May, 16:54, Dave Rado <dave.r...@dsl. pipex.comwrote:
Hi
The W3C css validation service athttp://jigsaw.w3.org/css-validator/
claims that:
{font-family: "Book Antiqua", Palatino, "Times New Roman", "Times
Roman" serif}
is invalid on the grounds that "Too many values or values are not
recognized "
Given that those fonts are very widely used and most are standard
Windows fonts, any idea why I'm getting this weird message from the
validator?
Dave

It's okay I've discovered that the word Serif needed to have a capital
"S". Not a very helpful error message though!!
When you changed it to a capital S did you also add the missing comma?

"Times Roman" serif should be "Times Roman", serif

By the spec you don't need a capital letter but you do need a comma.

Steve
Jun 27 '08 #3
Dave Rado <da*******@dsl. pipex.comwrites :
The W3C css validation service at http://jigsaw.w3.org/css-validator/
claims that:

{font-family: "Book Antiqua", Palatino, "Times New Roman", "Times
Roman" serif}

is invalid on the grounds that "Too many values or values are not
recognized "
You're missing the comma between "Times Roman" and "serif".

sherm--

--
My blog: http://shermspace.blogspot.com
Cocoa programming in Perl: http://camelbones.sourceforge.net
Jun 27 '08 #4
In article
<b1************ *************** *******@t54g200 0hsg.googlegrou ps.com>,
Dave Rado <da*******@dsl. pipex.comwrote:
Hi

The W3C css validation service at http://jigsaw.w3.org/css-validator/
claims that:

{font-family: "Book Antiqua", Palatino, "Times New Roman", "Times
Roman" serif}

is invalid on the grounds that "Too many values or values are not
recognized "

Given that those fonts are very widely used and most are standard
Windows fonts, any idea why I'm getting this weird message from the
validator?
You should have a "," after "Times Roman"

--
dorayme
Jun 27 '08 #5
Dave Rado wrote:
On 12 May, 16:54, Dave Rado wrote:
>>
The W3C css validation service at http://jigsaw.w3.org/css-validator/
claims that:

{font-family: "Book Antiqua", Palatino, "Times New Roman", "Times
Roman" serif}

is invalid on the grounds that "Too many values or values are not
recognized "
>
It's okay I've discovered that the word Serif needed to have a capital
"S". Not a very helpful error message though!!

The fact that the behavior changed reminds me of that old song...

"Comma, comma, comma, comma, comma, chameleon..."
-Boy George, Culture Club
--
John
At least I *think* that's what he was singing...
Jun 27 '08 #6
In article <48**********@n ews.bluewin.ch> ,
John Hosking <Jo**@DELETE.Ho sking.name.INVA LIDwrote:
Dave Rado wrote:
On 12 May, 16:54, Dave Rado wrote:
>
The W3C css validation service at http://jigsaw.w3.org/css-validator/
claims that:

{font-family: "Book Antiqua", Palatino, "Times New Roman", "Times
Roman" serif}

is invalid on the grounds that "Too many values or values are not
recognized "

It's okay I've discovered that the word Serif needed to have a capital
"S". Not a very helpful error message though!!


The fact that the behavior changed reminds me of that old song...

"Comma, comma, comma, comma, comma, chameleon..."
-Boy George, Culture Club
The Boy George official site is under construction and has three html
errors at least. It looks so promising though.

--
dorayme
Jun 27 '08 #7
Dave Rado wrote:
On 12 May, 22:32, dorayme <doraymeRidT... @optusnet.com.a uwrote:
>You should have a "," after "Times Roman"

--
dorayme

Yes, sorry.

I still think the validator's error message was very unhelpful though.
All the validator knew at the point where it reached "serif"--or even
just the "s"--was that it was expecting to see one of the following but
not seeing any of them (not sure this is an exhaustive list): a comma;
!important; a semicolon; or the end of the list. It can't tell you
"you're missing a comma" because it doesn't know from its point of view
that that's the nature of the problem. Granted, the least it could do is
show you the position of the character where it identified the presence
of a problem.
Jun 27 '08 #8
On Tue, 13 May 2008, dorayme wrote:
>{font-family: "Book Antiqua", Palatino, "Times New Roman", "Times
Roman" serif}

You should have a "," after "Times Roman"
You should have a "," after "Times".

There's "Times New Roman" and there's "Times".
But "Times Roman" is not the name of a typeface family, afaik.
The Times typeface family consists of
Times Roman, Times Italic, Times Bold, Times Bold Italic.

/*
I'm still convinced that the name "Times New Roman" for
a typeface *family* is a misnomer. It ought to be Times New.
*/

--
http://groups.google.com/groups/sear...Alan.J.Flavell
Jun 27 '08 #9
Harlan Messinger wrote:
Dave Rado wrote:
>On 12 May, 22:32, dorayme <doraymeRidT... @optusnet.com.a uwrote:
>>You should have a "," after "Times Roman"

--
dorayme

Yes, sorry.

I still think the validator's error message was very unhelpful though.

All the validator knew at the point where it reached "serif"--or even
just the "s"--was that it was expecting to see one of the following but
not seeing any of them (not sure this is an exhaustive list): a comma;
!important; a semicolon; or the end of the list. It can't tell you
"you're missing a comma" because it doesn't know from its point of view
that that's the nature of the problem. Granted, the least it could do is
show you the position of the character where it identified the presence
of a problem.
On reflection I realize I was missing the fact that the validator DID
tell you something specific: that there were too many values. It DID
construe "serif" to be a value *because* it followed the preceding items
without an intervening comma, semicolon, etc. The problem is you not
knowing what they meant by "value". CSS has composite properties like
font, border, margin, etc., that can set several individual properties
at once--for example, you can use font to set several font-related
properties:

font: serif 1.2em italic;

This example has three values.

It's weird, but CSS uses commas to separate alternatives *within* a
value while it uses spaces to separate values. So in

"Book Antiqua", Palatino, "Times New Roman", "Times
Roman" serif

one value is

"Book Antiqua", Palatino, "Times New Roman", "Times
Roman"

and the other is

serif

Since font-family isn't a composite property, it takes only one value,
so the validator characterized the error as an excess of values.
Jun 27 '08 #10

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

Similar topics

8
5747
by: Hostile17 | last post by:
Consider the following HTML. ---------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> <html> <head> <meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <title>Untitled</title>
5
1738
by: Frances Del Rio | last post by:
I'm connected to internet via Comcast cable modem, very fast connection, usu. have no problems, but all of a sudden there are a number of sites I can't get to (while others no problem.. very weird..) this is happening on both IE and N, I cleared cache on both of them, N even crashed before, when I got alert saying it can't find a site.. these are some of the sites I can't get to, browser just "hangs" for a long time, then I get a 404.. ...
11
13727
by: Les Paul | last post by:
I'm trying to design an HTML page that can edit itself. In essence, it's just like a Wiki page, but my own very simple version. It's a page full of plain old HTML content, and then at the bottom, there's an "Edit" link. So the page itself looks something like this: <HTML><HEAD><TITLE>blah</TITLE></HEAD><BODY> <!-- TEXT STARTS HERE --> <H1>Hello World!</H1> <P>More stuff here...</P>
5
3595
by: pmud | last post by:
Hi, I am using a compare validator in asp.net application(c# code). This is used for comparing a value enterd by the user against the primary key in the SQL database. IF the VALUE ENTERED BY THE USER EXISTS IN THE DB , then THE ERROR MESSAGE OF THE COMPARE VALIDATOR SHOULD BE DISPLAYED. For this, I used the reference artiicle...
8
7838
by: pmud | last post by:
Hi, I am using a compare validator in asp.net application(c# code). This Custom validator is used for comparing a value enterd by the user against the primary key in the SQL database. IF the VALUE ENTERED BY THE USER EXISTS IN THE DB , then THE ERROR MESSAGE OF THE COMPARE VALIDATOR SHOULD BE DISPLAYED. For this, I used the reference artiicle "http://msdn.microsoft.com/library/default.asp?url=/library/en-...
3
2007
by: Nick Goloborodko | last post by:
Hi, I've been having a really weird problem with required field validator. Here's the detailed description of the problem: I have originally been developing my web application on Windows XP SP2 under IIS5 with .NET framework V1.1.4322. I have had a couple of RequiredFieldValidator, to ensure that the user enter the username and password on the login form and avoid unnessesary postbacks.
18
7340
by: William | last post by:
I have the following javascript function that updates a scroll_list and sends the updated entry (with its index) to a server script ( i.e. http://mkmxg00/cgi/confirmUpload.pl ) for further processing: function saveText( scroll_list, t_area, listToBeUpdated ) { scroll_list.options.text = t_area.text; scroll_list.options.value= t_area.value; var req; var url = "http://mkmxg00/cgi/confirmUpload.pl";
28
13207
by: entfred | last post by:
I have the following line of html: &nbsp;&nbsp1234&nbsp;&nbsp;&nbsp;&nbsp;&nbspabc&nbsp;&nbsp;&nbspyow In Internet Explorer 6.0, the columns look ok using the above html: 1234 abcd yow But, in firefox, for same html, getting this:
3
2547
by: Adrock952 | last post by:
I have a form which validates fine using classes but i would like the fields that have the error to be highlighted a different color At the moment I just get a list of errors but would like a field that failed validation changed color. here is my code validator class <?php class Validator { var $errors;
0
9687
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10251
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10027
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7565
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.