#32556: assertHTMLEqual gives a confusing error message with empty attributes
-------------------------------------+-------------------------------------
     Reporter:  Baptiste Mispelon    |                    Owner:  Hasan
                                     |  Ramezani
         Type:  Bug                  |                   Status:  new
    Component:  Testing framework    |                  Version:  dev
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

 * stage:  Ready for checkin => Accepted


Comment:

 > I've been trying to think about how I would fix the original issue but I
 keep coming back to having an exhaustive list of known boolean attributes
 (the parser already has SELF_CLOSING_TAGS so there's some precedent). I
 don't see how else to fix this correctly.

 Can you prepare such a list? (based on spec). Maybe: `allowfullscreen`,
 `async`, `autofocus`, `autoplay`, `checked`, `controls`,  `default`,
 `defer` , `disabled`, `formnovalidate`, `hidden`, `ismap`, `itemscope`,
 `loop`, `multiple`, `muted`, `nomodule`, `novalidate`, `open`,
 `playsinline`, `readonly`, `required`, `reversed`, `selected` (see
 https://html.spec.whatwg.org/#attributes-3).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32556#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.64f246a5d04fdf292b28218e89c36019%40djangoproject.com.

Reply via email to