devise icon indicating copy to clipboard operation
devise copied to clipboard

Replaced `<br/>` with `<br>`

Open iainbeeston opened this issue 3 years ago • 2 comments

In regular HTML <br> is a void element, so it doesn't need a closing tag or a closing slash. See the WhatWG spec here: https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-br-element

Many of the shared templates used by devise use <br/> to separate lines. To make that more correct I've replaced them with <br> instead.

iainbeeston avatar May 24 '22 09:05 iainbeeston

Hi @iainbeeston, 👋 Looking at that WhatWG spec it also recommends using paragraphs instead of a <br> for separating label and input. That's how it used to be before: https://github.com/heartcombo/devise/commit/b86c1c241b9bc6f6679ff1da78ffda880dd1bf9c Not sure if we should change that back as well.

p8 avatar May 31 '22 19:05 p8

@p8 Thanks, I've replaced those with paragraph tags now. I've also updated the commit message to explicitly say that this reverts b86c1c241b9bc6f6679ff1da78ffda880dd1bf9c. Could you please take another look? (Especially at the HTML changes because I did them manually and it would be easy for me to make a mistake)

iainbeeston avatar Jun 08 '22 14:06 iainbeeston