Skip to content

Get templates to pass W3C validation - pass 2#1067

Merged
jwag956 merged 1 commit intomainfrom
rescue
Jan 29, 2025
Merged

Get templates to pass W3C validation - pass 2#1067
jwag956 merged 1 commit intomainfrom
rescue

Conversation

@jwag956
Copy link
Collaborator

@jwag956 jwag956 commented Jan 29, 2025

Validation did find some other bugs:

  • Other duplicate HTML ids in some of the more complex multi-form templates
  • Error in one-time-code input type

Improved (manual) test to use W3C validator to check templates. We can't do this all the time since we get rate-limited.

Turned on CSRF for testing templates - many duplicate csrf_token ids. Added a new macro - render_csrf that can be used to render the token with a unique HTML id.

Improve webauthn test utils to support CSRF.

close #1064

@codecov
Copy link

codecov bot commented Jan 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.45%. Comparing base (9467de6) to head (f21ae08).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1067      +/-   ##
==========================================
+ Coverage   98.43%   98.45%   +0.02%     
==========================================
  Files          39       39              
  Lines        4917     4917              
==========================================
+ Hits         4840     4841       +1     
+ Misses         77       76       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Validation did find some other bugs:
- Other duplicate HTML ids in some of the more complex multi-form templates
- Error in one-time-code input type

Improved (manual) test to use W3C validator to check templates. We can't do this all the time since we get rate-limited.

Turned on CSRF for testing templates - many duplicate csrf_token ids. Added a new macro - render_csrf that can be used to render the token with a unique HTML id.

Improve webauthn test utils to support CSRF.

close #1064
@jwag956 jwag956 merged commit 9b98d52 into main Jan 29, 2025
20 checks passed
@jwag956 jwag956 deleted the rescue branch January 29, 2025 19:14
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Templates should pass W3C validation

1 participant