Open thepra opened 2 years ago
@thepra
I published the new version of the Blazor Head Element Helper NuGet packages v.7.1.0.
This version has supported a media
attribute in meta
elements and identifies them by whether both of name
and media
attributes are the same inter meta
each element.
Could you try it out?
sure
I'm having an issue, it doesn't seem to work, when specifying Media
in the Meta
component it does render everything except media:...
And it does seem also that it doesn't override correctly because there's a copy left above of the same initial meta tags(from index.html
)
@thepra I've not reproduced that problem yet.
Can you reproduce the problem on my sample app I attached below?
ok, nevermind, it does seem to be an issue with Firefox in the end. I did already report the issue there and it's being worked on.
As of now it does seem that the
Name
property is the only one being used for search and override so if you have some other extra attribute distinguising the<meta>
s it does only override the first match byName
, ex.:as you can see there's the
media
query that can enable different values based on the color-scheme of the OS but the<Meta>
component goes and replaces only the first two values leaving the next two untouched.Is there a way to have implemented search match based also on other attributes?