Skip to content

Attribute parsing should return true when attribute is set without value #3

@danielbachhuber

Description

@danielbachhuber

Given an HTML element:

<audio src="#" loop>

When I parse the loop attribute on the element, the value should be true:

it( 'should return true if the attribute is set without value', () => {
	const result = parse( element, attr( 'audio', 'loop' ) );

	expect( result ).to.be.true;
} );

parse() currently returns undefined.

From WordPress/gutenberg#7322 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions