You cannot do

DIV(....,_id='navigation1',_role='navigation',aria-labelledby='nav-
login-menu-label' )

you have to do

DIV(...,**{'_id':'navigation1','_role':'navigation','aria-
labelledby':'nav-login-menu-label' })

Massimo

On Apr 30, 4:31 pm, Christopher Steel <[email protected]> wrote:
> I think I found a small bug that may be in one or more of the helpers
> which cause a failure when a hyphen is used in the name of an
> attribute.
>
> So for example if you use an attribute where the left side of the
> equation contains a '-' such as:
>
>     _aria-labelledby='nav-login-menu-label'
>
> then you will get an error.
>
> Here are two examples you can paste into layout.html to observe the
> results:
>
> This works fine:
>
> <div id="nav-login-menu" >
>     <h2 class="nav" id="nav-login-menu-label">Career Counseling
> Resources</h2>
>         {{=UL(
>             LI(A('school, work, life balance',_href='http://www.uiuc.edu/'),
>             LI(A('school, work, life balance',_href='http://www.uiuc.edu/')),
>             LI(A('school, work, life balance',_href='http://www.uiuc.edu/')),
>             _class='nobullet'),
> _id='navigation1',_role='navigation',_tabindex='-1'
>                 )}}
> </div>
>
> This generates an error:
>
> <div id="nav-login-menu" >
>     <h2 class="nav" id="nav-login-menu-label">Career Counseling
> Resources</h2>
>         {{=UL(
>             LI(A('school, work, life balance',_href='http://www.uiuc.edu/'),
>             LI(A('school, work, life balance',_href='http://www.uiuc.edu/')),
>             LI(A('school, work, life balance',_href='http://www.uiuc.edu/')),
>             _class='nobullet'),
> _id='navigation1',_role='navigation',aria-labelledby='nav-login-menu-
> label'
>             )}}
> </div>
>
> Thank You,
>
> Chris

Reply via email to