Skip to content

Bug in showLabel method - creates duplicate aria-describedby elements #1200

@rodgerramjet

Description

@rodgerramjet

Found in 1.13.0

This code (I assume) is trying to send the \b to the regex, but its being escaped by the JS

Should be something like "\b" + errorID + "\b"?

CODE:
} else if ( !describedBy.match( new RegExp( "\b" + errorID + "\b" ) ) ) {
// Add to end of list if not already present
describedBy += " " + errorID;
}

This creates loads of duplicate aria-describedby in the markup

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