• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

xemlock / htmlpurifier-html5 / 13168072550

05 Feb 2025 10:52PM UTC coverage: 99.406%. Remained the same
13168072550

push

github

xemlock
Adjust tests for HTMLPurifier 4.18.0

Support for conditional comments was removed in HTMLPurifier 4.18.0,
see: https://github.com/ezyang/htmlpurifier/commit/4828fdf.

1507 of 1516 relevant lines covered (99.41%)

3215.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/library/HTMLPurifier/AttrDef/HTML5/LinkRel.php
1
<?php
2

3
/**
4
 * Validates 'rel' attribute on <link> elements, as defined by the HTML5 spec.
5
 *
6
 * Keywords that are body-ok affect whether link elements are allowed in the body.
7
 * @see https://html.spec.whatwg.org/multipage/links.html#body-ok
8
 * @see https://html.spec.whatwg.org/multipage/links.html#linkTypes
9
 */
10
class HTMLPurifier_AttrDef_HTML5_LinkRel extends HTMLPurifier_AttrDef_HTML5_Rel
11
{
12
    protected static $values = array(
13
        'dns-prefetch' => true,
14
        'modulepreload' => true,
15
        'pingback' => true,
16
        'preconnect' => true,
17
        'prefetch' => true,
18
        'preload' => true,
19
        'prerender' => true,
20
        'stylesheet' => true,
21
    );
22
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc