From querypath created by untoreh: technosophos/querypath#176
html5qp($html, '[attr~="anything"]');bug: Selects elements that have the specified attribute containing any value.
expected: Selects elements that have the specified attribute with a value containing a given word, delimited by spaces.
example:
qp($html, '[rel~="icon"]'); should return elements containing something like rel="icon" or rel="value icon" etc...
instead it returns the first element with a rel attribute, which happens to be a stylesheet.
From querypath created by untoreh: technosophos/querypath#176
html5qp($html, '[attr~="anything"]');
bug: Selects elements that have the specified attribute containing any value. expected: Selects elements that have the specified attribute with a value containing a given word, delimited by spaces.example:
qp($html, '[rel~="icon"]');
should return elements containing something likerel="icon"
orrel="value icon"
etc... instead it returns the first element with arel
attribute, which happens to be a stylesheet.