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

chore: add VNU checking #421

Merged
merged 3 commits into from
Jun 5, 2018
Merged

chore: add VNU checking #421

merged 3 commits into from
Jun 5, 2018

Conversation

nschonni
Copy link
Contributor

@nschonni nschonni commented Jul 14, 2017

From the README:

All HTML should validate in the NU HTML Validator. Exceptions to this rule are warnings and errors related to future ARIA features we need to implement.

Current errors are below, but may be related to current work

"file:examples/landmarks/at.html":93.18-93.119: error: Bad value “80%” for attribute “width” on element “img”: Expected a digit but saw “%” instead.
"file:examples/landmarks/at.html":126.20-126.121: error: Bad value “80%” for attribute “width” on element “img”: Expected a digit but saw “%” instead.
"file:examples/landmarks/at.html":187.16-187.115: error: Bad value “80%” for attribute “width” on element “img”: Expected a digit but saw “%” instead.
"file:examples/landmarks/at.html":97.13-97.44: error: The “aria-labelledby” attribute must point to an element in the same document.
"file:examples/listbox/listbox.html":65.13-65.117: error: Bad value “” for attribute “aria-activedescendant” on element “ul”: An ID must not be the empty string.
"file:examples/listbox/listbox.html":124.13-130.42: error: Bad value “” for attribute “aria-activedescendant” on element “ul”: An ID must not be the empty string.
"file:examples/menu-button/menu-button-links.html":59.15-59.30: error: Bad value “none” for attribute “role” on element “li”.
"file:examples/menu-button/menu-button-links.html":64.15-64.30: error: Bad value “none” for attribute “role” on element “li”.
"file:examples/menu-button/menu-button-links.html":69.15-69.30: error: Bad value “none” for attribute “role” on element “li”.
"file:examples/menu-button/menu-button-links.html":74.15-74.30: error: Bad value “none” for attribute “role” on element “li”.
"file:examples/menu-button/menu-button-links.html":79.15-79.30: error: Bad value “none” for attribute “role” on element “li”.
"file:examples/menu-button/menu-button-links.html":84.15-84.30: error: Bad value “none” for attribute “role” on element “li”.
"file:examples/toolbar/toolbar.html":41.13-41.95: error: Attribute “aria-selected” not allowed on element “div” at this point.

To ignore work in progress the --filterpattern option could be used till patches are landed in the validator.

/cc @sideshowbarker

@nschonni nschonni force-pushed the vnu-jar branch 3 times, most recently from 47a9643 to 5fe01e0 Compare July 14, 2017 06:10
@ZoeBijl ZoeBijl requested review from ZoeBijl and mcking65 July 20, 2017 12:56
@ZoeBijl
Copy link
Contributor

ZoeBijl commented Jul 20, 2017

@nschonni could you have a look at the error log? It tries to install an aria-practices 0.0.0 package :/.

@nschonni
Copy link
Contributor Author

@nschonni
Copy link
Contributor Author

Spun off some separate issues and PRs for the existing errors.

Not sure about the role=none ones. Maybe those should be filtered

@ZoeBijl
Copy link
Contributor

ZoeBijl commented Jul 20, 2017

@nschonni whoop whoop! I’ll have a look at the new issues. role=none is valid per aria 1.1 so that should def be filtered.

@nschonni
Copy link
Contributor Author

nschonni commented Aug 1, 2017

Added a filter file, but I'm not sure about this one

aria-practices/examples/toolbar/toolbar.html":41.13-41.95: error: Attribute “aria-selected” not allowed on element “div” at this point.

@nschonni
Copy link
Contributor Author

Rebased and opened a few new PRs to address newer markup issues

@mcking65
Copy link
Contributor

After setting up a branch with these changes, I tried running npm test:

$ npm test

> aria-practices@0.0.0 test C:\Users\mck\git\APG\main
> npm run lint && npm run vnu-jar


> aria-practices@0.0.0 lint C:\Users\mck\git\APG\main
> eslint bin examples


> aria-practices@0.0.0 vnu-jar C:\Users\mck\git\APG\main
> java -jar node_modules/vnu-jar/build/dist/vnu.jar --errors-only --filterfile .vnurc --no-langdetect examples/**/*.html


mck@MCK--243 MINGW64 ~/git/APG/main (nschonni-vnu-jar)
$

Why isn't it spitting out the validation errors for me? I should find the errors with fixes proposed in PRs #537 and #538; I haven't yet merged those fixes.

BTW, after setting up this branch, I did update my NPM packages.

@nschonni
Copy link
Contributor Author

Those fixes are independent markup errors.

Do you have Java available in that environment? Not sure if it would probably just throw a different error if you didn't.

@jnurthen
Copy link
Member

Logged validator/validator#579 for the rowgroup in table issue

@jnurthen
Copy link
Member

@nschonni Can you please add to the filter the following error:
An element with “role=rowgroup” must be contained in, or owned by, an element with “role=grid”.

@nschonni nschonni force-pushed the vnu-jar branch 2 times, most recently from 6eb0b9c to a53ab77 Compare November 29, 2017 06:36
@nschonni
Copy link
Contributor Author

@jnurthen added the filter for the rowgroup

The last commit could be submitted separately, but I figured I'd include it to make the build green

@nschonni
Copy link
Contributor Author

nschonni commented Nov 29, 2017

Although #429 is closed, I couldn't remove the suppression of Bad value “” for attribute “aria-activedescendant” on element “ul”: An ID must not be the empty string

"file:/Users/nschonni/Documents/github/aria-practices/examples/listbox/listbox-rearrangeable.html":69.13-69.117: error: Bad value “” for attribute “aria-activedescendant” on element “ul”: An ID must not be the empty string.
"file:/Users/nschonni/Documents/github/aria-practices/examples/listbox/listbox-rearrangeable.html":129.13-135.42: error: Bad value “” for attribute “aria-activedescendant” on element “ul”: An ID must not be the empty string.

@nschonni
Copy link
Contributor Author

nschonni commented Dec 8, 2017

@mcking65 is there any other changes needed for this?

@nschonni
Copy link
Contributor Author

Bumped and rebased since some of the ignored errors have been addressed in the validator

@nschonni
Copy link
Contributor Author

Rebased to fix conflict

@jnurthen jnurthen merged commit 682801a into w3c:master Jun 5, 2018
@jnurthen
Copy link
Member

jnurthen commented Jun 5, 2018

Thanks. Lets see how this goes!

@nschonni nschonni deleted the vnu-jar branch June 6, 2018 00:30
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

Successfully merging this pull request may close these issues.

4 participants