-
Notifications
You must be signed in to change notification settings - Fork 7
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
Lint warnings for web content developers/authors #182
Comments
Potential lint issuesErrors
Warnings
InfoThe last two warnings were here, but I moved them. |
Note that the current html spec for main element is a bit different from the (old) W3C spec. You can still only have one visible main element:
But the old spec said "main must not be a descendant of article, aside, footer, header or nav", which is similar to but not quite the same as:
|
Thanks @carmacleod, for both the note on I have been doing quite a bit in preparation for this: I've been improving the profiling tools to make it easier to determine how adding the lining might affect performance, as well as researching the checks to perform. This will still take some time, so I don't think it will be in the next release, as there are already quite a few fixes I'd like to get out, but I am working on it. |
Sounds great, @matatk! Re:
Oh, right. My developer-centric brain was thinking that the developer was the end user, but of course, there are real end users. :) Sorry about that! |
Finally started to address this, with just one simple check, in #410 :-). |
Absolutely, flag lack of a main region, mostly because main is the most important landmark, but also if there's, say, a header and a footer and no main, then there must be a big chunk of:
One exception that I noticed was google, which has only a single "search" landmark, and no main... which kind of makes sense... |
As suggested in 6ac112d, would it be helpful to emit warnings when invalid things such as
aria-labelledby=""
are encountered?Update (2019/08/11): I'm leaning towards it always linting, and exposing some icons in the pop-up at least (maybe even a flag on the icon?) In order to stop repeated results, it could take note of the selector computed for an element, as this should remain constant across certain page changes.
The text was updated successfully, but these errors were encountered: