[whatwg] Web Forms 2.0 Substantial - Section 2

Ian Hickson wrote:
>>2.9. The pattern attribute
>>--------------------------
>>
>># If the attribute is empty or omitted then it is equivalent to .*  (which,
>># with the implied start and end characters, becomes ^.*$), which matches
>># anything.
>>
>>I'm not too familiar with the details of ECMA regex, but I believe that
>>pattern excludes newlines, which you do not want to do for <textarea>.
> 
> Good point. I used a regular expression pattern you hate instead...

hehehe. What is the empty string supposed to do if you use it as a
regex pattern in ECMA?

http://www.jacobsm.com/regexp.htm seems to say "match anything", so
you could define the empty string as being the pattern "" without the
^$ bit.

>>2.16. Handling unexpected elements and values
>>---------------------------------------------
>>
>># Unless otherwise forced to appear by a stylesheet, other child nodes are
>># never visible.
>>...
>># rendering the initial value only, with the rest of the content not displayed
>># (unless forced to appear through some CSS)
>>
>>Forced to appear how? By what CSS?
> 
> CSS3 'content', for instance.

Example?

~fantasai

-- 
http://fantasai.inkedblade.net/contact

Received on Tuesday, 22 June 2004 11:21:44 UTC