Michael Huebner wrote:
> 
> there is a strange behavior depending on the name of an attribute.
> The attribute with name "parentActors" can not be accessed by its name.
> For the attribute with name "parents" all works fine.
> 
> ------------------------------------------------------------------------
> 
> actorsDefinitions:before {
>       display: block;
>       content: "Actors:  ";
>       font-weight: bold;
>       font-size: large;
> }
> 
> actorsDefinitions {
>       display: block;
> }
> 
> actorDefinition:before {
>       display: block; 
>       content: "Name: " value-editor(attribute, name);
>       font-weight: bold;
> }
> 
> actorDefinition {
>       display: block; 
>       margin: 20;
> }
> 
> actorDefinition:after {
>       display: inline;
>       content: "Parents: [" attr(parents) "]" set-attribute-button(attribute, 
> parents)
>         "   parentActors: [" attr(parentActors)"] " 
> set-attribute-button(attribute, parentActors)
>         " " insert-same-after-button();
> }
> 

To make it simple, CSS style sheets are case-insensitive (well, property 
values but not selectors).

Rewriting last rule as follows should fix the problem:

---
actorDefinition:after {
        display: inline;
        content: "Parents: [" attr(parents) "]"
                  set-attribute-button(attribute, parents)
                 "   parentActors: [" attr('parentActors') "] "
                  set-attribute-button(attribute, 'parentActors')
                  " " insert-same-after-button();
}
---

Notice the quotes I've added around camel-cased identifiers to convert 
them to strings.




Reply via email to