logo       

Re: Custom elements and the "style" attribute: msg#00025

Subject: Re: Custom elements and the "style" attribute
Hi Robin,

    Either you take my interpretation of the two specs.  I.E. 
CSS2 says that a U/A must ignore unknown properties when 
parsing and hence there are no unknown properties for the 
words in CSSStyleDeclaration to apply to.  Alternately you
must agree that the language in the two specs is fundamentally 
incompatible.   We can not both present and ignore the property
at the same time.


   I would rather think that the CSSStyleDeclaration is making a 
useless statement rather than directly violating the language of 
the spec it is building on.

   Also since this is the interface returned by the 'style' member of
SVGStylable it does effect individual elements (I suspect the situation
is similar in XHTML land as well).

   I don't think any action can be taken on this issue until the CSS/DOM 
WG clarifies the situation.

Robin Berjon <robin.berjon@xxxxxxxxx> wrote on 10/12/2005 09:47:29 AM:

> Hi Thomas, all,
> 
> thomas.deweese@xxxxxxxxx wrote:
> > Robin Berjon <robin.berjon@xxxxxxxxx> wrote:
> >>>However at the level of the DOM, this isn't needed. It's the same 
thing 
> >>>as "ignoring" elements in a namespace you don't know -- you still put 

> >>>them in the DOM.
> > 
> > This is a very poor analogy.  The DOM needs to know nothing about 
> > attributes to behave correctly an attribute is just an attribute and 
> > it has DOMString as it's value. This is not at all the case for CSS 
> > properties, they are complex typed entites, with complex rules about
> > inheritance and default values.
> 
> You may not like my analogy, but it nevertheless is the conformant 
> behaviour required by the CSSStyleDeclaration interface of DOM 2 Style 
> for CSS. It's specified in no uncertain terms:
> 
> """
> While an implementation may not recognize all CSS properties within a 
> CSS declaration block, it is expected to provide access to all specified 

> properties in the style sheet through the CSSStyleDeclaration interface. 

> Furthermore, implementations that support a specific level of CSS should 

> correctly handle CSS shorthand properties for that level. For a further 
> discussion of shorthand properties, see the CSS2Properties interface.
> """
> 
> Yes, implementations that know some properties will behave different 
> from implementation that don't. That's specified normatively. Note that 
> the situation is exactly the same in the approach you advocate: 
> implementations behave differently depending on what they know. At least 

> with the standard behaviour you get the information and can try to 
> handle the situation, whereas if you delete the properties then all is 
lost.
> 
> Note that this is at the CSS declaration level, which is separate from 
> the elements level. Still, letting the end user decide which information 

> is pertinent to her is a sounder approach. Yes you can't inherit and you 

> can't compute, but at least you let someone who knows the problem 
> they're trying to solve much better than you do decide how to best 
> handle the situation.
> 
> -- 
> Robin Berjon
>    Senior Research Scientist
>    Expway, http://expway.com/
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-dev-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx
> For additional commands, e-mail: batik-dev-help@xxxxxxxxxxxxxxxxxxxxxx
> 


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe