Re: [cssom] Update on the CSSOM

On Tue, 16 Jan 2007 17:01:52 +0100, Dave Raggett <dsr@w3.org> wrote:
>> On Tue, 16 Jan 2007 14:13:07 +0100, Dave Raggett <dsr@w3.org> wrote:
>>> As a matter of interest, does the proposal cover the ability for web  
>>> page authors to define application specific CSS properties?
>>
>> No, as this would go against the CSS parsing rules. The CSSOM provides  
>> an API after parsing has been done and can't influence that process.
>
> Could you please expand on why a CSS parser can't use the CSS parsing  
> rules to identify the string value for new properties?
> My understanding was that the underlying grammar was designed to give  
> CSS parsers the ability to identify and skip over properties
> that they either didn't recognize or couldn't understand the value.
>
> Essentially the underlying CSS grammar is analogous to the notion of  
> welformed XML, it allows you to parse stuff that you haven't seen  
> before. That is important as it allows CSS interpreters to recover when  
> they come across features that were added after the interpreter was  
> shipped.
>
> I am merely asking for a way to provide web scripts with access to
> the CSS extension mechanisms through a means to register new
> properties together with the means to parse the values and construct
> the corresponding results. I would be happy to provide a more detailed  
> proposal.

I'm not saying this can't be done, I'm merely saying this can't be done in  
the CSSOM, which is what you seemed to request (initially). My apologies  
if I didn't comprehend the request.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Tuesday, 16 January 2007 16:05:38 UTC