-
Notifications
You must be signed in to change notification settings - Fork 0
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
Check if analyzers are possible for Razor views #6
Comments
May not be so trivial. Roslyn doesn't seem to have an actual semantic model for the DOM; it writes most of it as literals. E.g., <head>
<title></title>
<style type="text/css">
* { text-align: center;
}
</style> …seems to become: WriteLiteral("\n<!DOCTYPE html>\n\n<html lang=\"en\">\n");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("head", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "…", async() => {
WriteLiteral("\n <title></title>\n\n <style type=\"text/css\">\n * { text-align: center;\n }\n </style>\n\n "); We can debug this behavior with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This would allow us to integrate https://www.caniemail.com/api/data.json and display warnings if we are using features not supported by our mail client targets.
The text was updated successfully, but these errors were encountered: