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

Avoid optional HTML? #40

Closed
j9t opened this issue Oct 8, 2023 · 5 comments
Closed

Avoid optional HTML? #40

j9t opened this issue Oct 8, 2023 · 5 comments
Assignees
Labels
enhancement New guideline, success criteria, or content
Milestone

Comments

@j9t
Copy link

j9t commented Oct 8, 2023

The HTML section features some pointers on markup optimization, but misses perhaps the biggest, namely optional features of HTML, whose omission can significantly reduce HTML payload.

These features include optional tags, quotes, as well as attribute value defaults (disclosure: referencing one of my own articles as I’m not aware of a more comprehensive overview).

(This could warrant 1–3 recommendations in the guidelines, depending on how you assess and want to cut them.)

@AlexDawsonUK AlexDawsonUK added the enhancement New guideline, success criteria, or content label Oct 8, 2023
@AlexDawsonUK
Copy link
Member

Agreed, this would make a good success criteria under "3.8 Use HTML Elements Correctly" to get people pushing for a reductionist approach within their semantics. I'll get something put together for the upcoming draft.

@AlexDawsonUK AlexDawsonUK self-assigned this Oct 8, 2023
@AlexDawsonUK
Copy link
Member

This has now been added into the second draft. It will become visible once the document goes public.

@j9t
Copy link
Author

j9t commented Oct 8, 2023

Awesome! Is there a preview, or some other opportunity to review and give feedback?

@AlexDawsonUK
Copy link
Member

The second draft itself will be arriving this month so naturally once it's published if you spot any further issues, as always feel free to drop an issue onto the system and it'll be rolled into the third draft in turn.

Regarding the success criteria I've added - I've worded it as the below (and included links within the Resources section).

Success Criterion - Optional Features
Consider removing optional HTML tags (which aren't required for rendering), attribute quotes, or attributes that are set to their default value.

I've tried to keep it brief (and let people click through as always if they wish to discover more regarding implementation). If you feel it could be adjusted further, feel free to post a reply with any tweaks and I'll get it reflected within the spec.

@j9t
Copy link
Author

j9t commented Oct 8, 2023

Sounds good, thanks!

@AlexDawsonUK AlexDawsonUK added this to the v1.0-D2 milestone Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New guideline, success criteria, or content
Projects
None yet
Development

No branches or pull requests

2 participants