Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. OutputRules.php

OutputRules::$nonBooleanAttributes

Type: nonBooleanAttributes

File

vendor/masterminds/html5/src/HTML5/Serializer/OutputRules.php, line 70

Class

OutputRules
Generate the output html5 based on element rules.

Namespace

Masterminds\HTML5\Serializer

Code

protected $nonBooleanAttributes = array(
    
    /*
    array(
        'nodeNamespace'=>'http://www.w3.org/1999/xhtml',
        'attrNamespace'=>'http://www.w3.org/1999/xhtml',
    
        'nodeName'=>'img', 'nodeName'=>array('img', 'a'),
        'attrName'=>'alt', 'attrName'=>array('title', 'alt'),
    ),
    */
array(
        'nodeNamespace' => 'http://www.w3.org/1999/xhtml',
        'attrName' => array(
            'href',
            'hreflang',
            'http-equiv',
            'icon',
            'id',
            'keytype',
            'kind',
            'label',
            'lang',
            'language',
            'list',
            'maxlength',
            'media',
            'method',
            'name',
            'placeholder',
            'rel',
            'rows',
            'rowspan',
            'sandbox',
            'spellcheck',
            'scope',
            'seamless',
            'shape',
            'size',
            'sizes',
            'span',
            'src',
            'srcdoc',
            'srclang',
            'srcset',
            'start',
            'step',
            'style',
            'summary',
            'tabindex',
            'target',
            'title',
            'type',
            'value',
            'width',
            'border',
            'charset',
            'cite',
            'class',
            'code',
            'codebase',
            'color',
            'cols',
            'colspan',
            'content',
            'coords',
            'data',
            'datetime',
            'default',
            'dir',
            'dirname',
            'enctype',
            'for',
            'form',
            'formaction',
            'headers',
            'height',
            'accept',
            'accept-charset',
            'accesskey',
            'action',
            'align',
            'alt',
            'bgcolor',
        ),
    ),
    array(
        'nodeNamespace' => 'http://www.w3.org/1999/xhtml',
        'xpath' => 'starts-with(local-name(), \'data-\')',
    ),
);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal