-
Notifications
You must be signed in to change notification settings - Fork 281
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
Ignore rel="stylesheet" in H59 "Using the link element and navigation tools" #2297
Comments
It would not have occurred to me that Late-loading stylesheets seems like the sort of thing that could easily trip up AT. |
Note that this error/failure you're seeing has nothing to do with H59. The error you're getting appears to be something related to squizlab's code checker and its own set of checks/rules. At a stretch, this may be a mild failure of 4.1.1 but certainly unrelated to 2.4.8
|
Wow, that's a great find!
Yes, that's exactly why I'm putting it there, so that browser will only start loading style once it loaded preceding HTML, so it renders before applying additional cosmetic non-layout styles. Not sure who is AT... |
Nevermind, I guess that pa11y uses squizlab. |
I think I misread the procedure on w3c website, it does say to check links related to navigation. Even though it doesn't say to check only links related to navigation, I still think that there's not much to fix here (apart from potentially removing this, which has 2 other open issues). |
@Maxim-Mazurok -- My apologies: AT is assistive technology. An example is the JAWS screen reading software, used by many MS Windows users who are blind. |
I'm trying to add
<link rel="stylesheet" href="blabla.css">
in the HTML body, but rule H59 (WCAG2AAA.Principle2.Guideline2_4.2_4_8.H59.1
) doesn't let me: "Link elements can only be located in the head section of the document."In the description, it says:
So, I think there's not much sense in preventing me from putting styles in HTML, because "stylesheet" is definitely not a navigation link.
Either we can exclude "stylesheet" as the most popular type of link. Or we can include only Start, Next, etc. into checks.
Or we can go one step further and get rid of this technique completely, but I didn't do much research on this. See #1234 and #1036 by @patrickhlauke
The text was updated successfully, but these errors were encountered: