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

xemlock / htmlpurifier-html5 / 13179873326

06 Feb 2025 01:28PM UTC coverage: 99.276% (-0.1%) from 99.406%
13179873326

push

github

web-flow
PHP 8.4 support (#84)

1 of 4 new or added lines in 1 file covered. (25.0%)

1508 of 1519 relevant lines covered (99.28%)

3883.48 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