Re: Re: Validator not consider the pattern attribute

Hi, David,

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



---- Original Message ----
From: David Dorward 
To: "Otávio R. Rossi" 
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>

There are no complaints about the existence of the pattern attribute there.
In this case, the Validator show 3 errors because i use one regular
expression in attribute "pattern", but in this case "&" is not incorrect..
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 & if
you way to say "ampersand".
-- David Dorward

Received on Monday, 26 November 2012 01:19:34 UTC