Open JessicaLucindaCheng opened 1 year ago
In our codebase, we are not consistent with whether we apply an ending slash for img
HTML tags.
In our current codebase, we use both <img...>
and <img.../>
.
Example of code with <img...>
:
https://github.com/hackforla/website/blob/706d7ce3628f9958cda525201c7c444d3d57d21b/pages/404.html#L12
Example of code with <img.../>
https://github.com/hackforla/website/blob/706d7ce3628f9958cda525201c7c444d3d57d21b/pages/donate.html#L18
Use the img
HTML tag without an ending slash meaning <img...>
(Source 1).
This is feasible because we only use HTML. An ending slash in an img
tag is needed for XHTML and XML (Source 2), which we don't use.
Hi @JessicaLucindaCheng, thank you for taking up this issue! Hfla appreciates you :)
Do let fellow developers know about your:- i. Availability: (When are you available to work on the issue/answer questions other programmers might have about your issue?) ii. ETA: (When do you expect this issue to be completed?)
You're awesome!
P.S. - You may not take up another issue until this issue gets merged (or closed). Thanks again :)
Once this issue is in the New Issue Approval column, a dev lead needs to review the issue and edit this issue so that it is ready for a PM to prioritize it.
@JessicaLucindaCheng I've added this decision record to my forked wiki repo in the sandbox-wiki branch.
After talking to @ExperimentsInHonesty yesterday, I tried updating the ci.yml and mkdocs.yaml files with the necessary plugins and markdown extensions for the decision records to display properly on the wiki. Unfortunately, things didn't go as planned, so that needs fixing, but you can still get the gist if you take a look.
Feel free to share any thoughts or suggestions you might have.
@vraer Thanks for adding the DR to the wiki and making edits that improved upon what I wrote! Looking at the Markdown file, the content LGTM!
Hi @vraer, thank you for taking up this issue! Hfla appreciates you :)
Do let fellow developers know about your:- i. Availability: (When are you available to work on the issue/answer questions other programmers might have about your issue?) ii. ETA: (When do you expect this issue to be completed?)
You're awesome!
P.S. - You may not take up another issue until this issue gets merged (or closed). Thanks again :)
Hi @JessicaLucindaCheng, thank you for taking up this issue! Hfla appreciates you :)
Do let fellow developers know about your:- i. Availability: (When are you available to work on the issue/answer questions other programmers might have about your issue?) ii. ETA: (When do you expect this issue to be completed?)
You're awesome!
P.S. - You may not take up another issue until this issue gets merged (or closed). Thanks again :)
@JessicaLucindaCheng will revise the draft in a comment below and then add this to the list of pages that need to get added to the wiki, keeping in mind that its actually a re-write
DR: img tag
from https://github.com/hackforla/website-wiki/blob/main/docs/decision-records/adopted/standardize-html-img-tag.md?plain=1None
In our codebase, we are not consistent with whether we apply an ending slash for img HTML tags.
Example of code with <img...>
:
<img src="/assets/images/404.svg" alt="404">
Example of code with <img.../>
<img class="donate-banner-icon" src="/assets/images/donate/solidarity-pana.svg" alt="" />
Use the img HTML tag without an ending slash meaning
This is feasible because we only use HTML. An ending slash in an img tag is needed for XHTML and XML (Source 2), which we don't use.
@ExperimentsInHonesty
@JessicaLucindaCheng will revise the draft in a comment below and then add this to the list of pages that need to get added to the wiki, keeping in mind that its actually a re-write
Dependency
Overview
We need to edit a decision record
DR: img tag
so that it has content that is helpful in understanding our standards forimg
HTML tags.Action Items
DR: img tag
in the website-wiki with the content in https://github.com/hackforla/website/issues/4363#issuecomment-1925799436Resources/Instructions
DR: img tag
in the website-wiki repo: https://github.com/hackforla/website-wiki/blob/main/docs/decision-records/adopted/standardize-html-img-tag.md?plain=1