W3C home > Mailing lists > Public > www-validator@w3.org > November 2012

Re: Re: Validator not consider the pattern attribute

From: Otávio R. Rossi <otavio@rapordo.com>
Date: Sun, 25 Nov 2012 22:48:33 -0200 (BRST)
Message-ID: <9e1g4ol.128c438700db1232057b398a25c00a01@webmail.rapordo.com>
To: "David Dorward" <david@dorward.me.uk>
Cc: www-validator@w3.org
Hi, David,

How it is one regular expression, i didn't know i should express it in
html. But it make sense.

Thaks!

 (http://rapordo.com/otavio)
------------------------------------

---- Original Message ----
From: David Dorward 
To: "Otávio R. Rossi" 
Cc: www-validator@w3.org
Sent: Dom, Nov 25, 2012, 13:09 PM
Subject: Re: Validator not consider the pattern attribute

On 25 Nov 2012, at 03:07, Otávio R. Rossi  wrote:The attributte "pattern"
is not considerated for W3C Validator Markup.

Yes, it is. 
Look at this exemple
http://validator.w3.org/check?uri=http%3A%2F%2Frapordo.com&charset=utf-8>

There are no complaints about the existence of the pattern attribute there.
(http://validator.w3.org/check?uri=http%3A%2F%2Frapordo.com&charset=%28detect+automatically%29&doctype=Inline&group=0)
In this case, the Validator show 3 errors because i use one regular
expression in attribute "pattern", but in this case "&" is not incorrect..
 (http://validator.w3.org/check?uri=http%3A%2F%2Frapordo.com&charset=%28detect+automatically%29&doctype=Inline&group=0)
The errors are because you have written a regular expression and then
expressed it in text instead of in HTML. Since you are including it in an
HTML document, you must express it in HTML where the & character means
"Start of a character reference" and needs to be represented as &amp; if
you way to say "ampersand".
-- David Dorwardhttp://dorward.me.uk
(http://validator.w3.org/check?uri=http%3A%2F%2Frapordo.com&charset=%28detect+automatically%29&doctype=Inline&group=0)
Received on Monday, 26 November 2012 01:19:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:31 UTC