Skip to content

Attribute parser bug #8

@ghost

Description

Hi,

Having the following code:

{{#each empresas}}
	<li data-id_empresa="{{id}}" data-nombre="{{nombre_attr}}">
		<a href="#" class="item-content">Test</a>
	</li>
{{/each}}

When nombre_attr contains whitespace (ex: 'Test 16:55:04'), it returns the error:

Uncaught (in promise) Error: InvalidCharacterError: Failed to execute 'setAttribute' on 'Element': '16:55:04' is not a valid attribute name. at eval (webpack:///./node_modules/framework7/modules/router/component-loader.js?:50)

It's working fine on 2.1.1

Best regards,
JC

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions