Skip to content

QuerySelector with Attribute values only works with a-z and A-Z #12

@acuntex

Description

@acuntex

The QuerySelector on attributes works only with values that match a-z or A-Z.

The following attributes could not be used for querying:

var DOMParser = require('react-native-html-parser').DOMParser;
var doc = new DOMParser().parseFromString('<input name="test_token"><input name="test-token"><input name="test123">');
doc.querySelect('input[name="test_token"]'); // gets all input fields
doc.querySelect('input[name="test-token"]'); // gets all input fields
doc.querySelect('input[name="test123"]'); // gets all input fields

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