Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd support for <ol reversed>, related attributes #396
Conversation
* Mark <ol reversed> as a boolean attribute so it serializes properly in HTML. * Allow <ol reversed> in the sanitizer. Closes #321. * Allow <ol start> in the sanitizer. * <ol type> was already allowed, but probably accidentally (type is an attribute allowed for other tags). I added a test to prevent it from regressing in case we add per-element attribute sanitization in the future. https://html.spec.whatwg.org/multipage/grouping-content.html#attr-ol-reversed
It looks like this was missed in html5lib#358. It is causing build failures in html5lib#395 and html5lib#396.
Codecov Report
@@ Coverage Diff @@
## master #396 +/- ##
=========================================
+ Coverage 90.79% 90.8% +0.01%
=========================================
Files 50 50
Lines 6952 6964 +12
Branches 1328 1328
=========================================
+ Hits 6312 6324 +12
Misses 481 481
Partials 159 159
Continue to review full report at Codecov.
|
<ol reversed>as a boolean attribute so it serializes properly in HTML.<ol reversed>in the sanitizer. Closes #321.<ol start>in the sanitizer.<ol type>was already allowed, but probably accidentally (type is an attribute allowed for other tags). I added a test to prevent it from regressing in case we add per-element attribute sanitization in the future.https://html.spec.whatwg.org/multipage/grouping-content.html#attr-ol-reversed