Skip to content
This repository was archived by the owner on Apr 14, 2019. It is now read-only.
This repository was archived by the owner on Apr 14, 2019. It is now read-only.

Bare ampersands are not detected in attributes #21

@ksmadsen

Description

@ksmadsen

Hi,

If a bare ampersand occurs within an attribute (e.g. a href), it is not detected as being invalid. Likewise for unknown entities.

Testcase:

use Test::HTML::Lint tests => 2;
html_ok('<a href="&">test</a>');
html_ok('<a href="&noentityisnamedlikethis;">test</a>');

The above program produces 2 OK results, even though the two entities are unclosed and unknown.

We are using HTML::Lint version 2.20 on Perl 5.14.2.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions