AdguardTeam / ExtendedCss

A TypeScript library for non-standard element selecting — :contains(), :matches-css(), etc., and applying CSS styles with extended properties.
GNU General Public License v3.0
61 stars 9 forks source link

Can not hide element with 'xlink:href' #99

Closed AdamWr closed 4 years ago

AdamWr commented 4 years ago

Steps to reproduce:

  1. Add this rule: mdn.mozillademos.org#?#a[*|href="https://developer.mozilla.org/"]
  2. Go here - https://mdn.mozillademos.org/en-US/docs/Web/SVG/Attribute/xlink:href$samples/topExample

Expected behavior

Link should be hidden.

Actual behavior

Rule doesn't work.

Screenshot ![image](https://user-images.githubusercontent.com/29142494/73480599-77134e80-439a-11ea-90a1-47ff14a6f47d.png)

This rule works fine: mdn.mozillademos.org##a[*|href="https://developer.mozilla.org/"]

Screenshot ![image](https://user-images.githubusercontent.com/29142494/73480883-ff91ef00-439a-11ea-8e53-8777617796e9.png)
slavaleleka commented 4 years ago

Sizzle does not support Namespaces (and does not planning to fix it)

ameshkov commented 4 years ago

We should get back to this task when we replace Sizzle

slavaleleka commented 4 years ago

merged into https://github.com/AdguardTeam/ExtendedCss/issues/110

slavaleleka commented 2 years ago

since xlink:href is depracated we decided not to support such cases while ditching Sizzle