Comment Comment by csarven I urge you to dig a little deeper and see why things like `prefix`, `exact`, `suffix` exists in that particular example:https://www.w3.org/TR/selectors-states/#TextQuoteSelector_de...Please note that you've actually changed the example!If you just want to include `exact` or "targetText", you can still do:http://csarven.ca/dokieli-rww#selector(type=TextQuoteSelecto...or equivalent:http://csarven.ca/dokieli-rww#selector(type=TextQuoteSelecto...but that selects all instances of the text "annotation" in the document. Which is precisely why we need `prefix` and `suffix` to be able to identify the actual selection that the user made.So, here is the equivalent of your example:http://csarven.ca/dokieli-rww#selector(type=TextQuoteSelecto...I hope that clarifies.This is just tip of the iceberg! Let's stick to fair comparison and consider extensibility. parent csarven 7 years ago
https://www.w3.org/TR/selectors-states/#TextQuoteSelector_de...
Please note that you've actually changed the example!
If you just want to include `exact` or "targetText", you can still do:
http://csarven.ca/dokieli-rww#selector(type=TextQuoteSelecto...
or equivalent:
http://csarven.ca/dokieli-rww#selector(type=TextQuoteSelecto...
but that selects all instances of the text "annotation" in the document. Which is precisely why we need `prefix` and `suffix` to be able to identify the actual selection that the user made.
So, here is the equivalent of your example:
http://csarven.ca/dokieli-rww#selector(type=TextQuoteSelecto...
I hope that clarifies.
This is just tip of the iceberg! Let's stick to fair comparison and consider extensibility.