Closed germsvel closed 1 month ago
Resolves #97
It turns out that Chrome and Firefox don't accept #text? as a valid selector. But having a ? in an element's id seems to be valid HTML.
#text?
?
id
Thank to https://github.com/philss/floki/issues/583 for the info.
To support that, we update our Query.find_by_label function to query by [id='<id>'] instead of using #<id>.
Query.find_by_label
[id='<id>']
#<id>
Resolves #97
What changed?
It turns out that Chrome and Firefox don't accept
#text?
as a valid selector. But having a?
in an element'sid
seems to be valid HTML.Thank to https://github.com/philss/floki/issues/583 for the info.
To support that, we update our
Query.find_by_label
function to query by[id='<id>']
instead of using#<id>
.