Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selector with attribute matching throws exception on WebGL build #159

Open
Llermy opened this issue Aug 21, 2023 · 1 comment
Open

Selector with attribute matching throws exception on WebGL build #159

Llermy opened this issue Aug 21, 2023 · 1 comment

Comments

@Llermy
Copy link

Llermy commented Aug 21, 2023

When it happens:
At Stylesheet stylesheet = parser.Parse(css);, whenever the CSS string contains a selector with attribute matching and only in the WebGL build, in the editor it works fine. It happens only when CSS string contains attribute matching as in a[href="https://example.org"] and not when asking a selector to simply contain an attribute as in a[title].

Exception that is thrown:

MissingMethodException: Constructor on type 'ExCSS.AttrMatchSelector' not found.
  at System.RuntimeType.CreateInstanceImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes, System.Threading.StackCrawlMark& stackMark) [0x00000] in <00000000000000000000000000000000>:0 
 
(Filename: currently not available on il2cpp Line: -1)
@Llermy
Copy link
Author

Llermy commented Aug 21, 2023

Btw, I'm using ExCSS installed with the latest version of NuGet inside Unity 2019.4.40f1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant