2017 © Pedro Peláez
 

library html-validation-error-normaliser

Take an HTML validation error and get the normal form of it

image

webignition/html-validation-error-normaliser

Take an HTML validation error and get the normal form of it

  • Friday, June 29, 2018
  • by webignition
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6,834 Installations
  • HTML
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 11 % Grown

The README.md

HTML Valdiation Error Normaliser

Ever found yourself staring at a list of HTML validator error messages and thinking "These 'required attribute "type" not specified' and 'required attribute "alt" not specified' errors are somewhat similar, is there a normal form for these?", (*1)

My advice: get out of the house. Take up a hobby., (*2)

Failing that, this is the package for you! Congratulations., (*3)

Usage example

<?php

use webignition\HtmlValidationErrorNormaliser\HtmlValidationErrorNormaliser;

class ExampleTest extends \PHPUnit_Framework_TestCase {    

    protected function testDemonstrateNormaliser() {
        $htmlErrorString = 'document type does not allow element "style" here';  
        $normaliser = new HtmlValidationErrorNormaliser();        

        $this->assertEquals(
            'document type does not allow element "%0" here',
            $normaliser->normalise($htmlErrorString)->getNormalisedError()->getNormalForm()
        );

        $this->assertEquals(
            array('style'),
            $normaliser->normalise($htmlErrorString)->getNormalisedError()->getParameters()
        );        
    }

}

The Versions

29/06 2018

dev-master

9999999-dev https://github.com/webignition/html-validation-error-normaliser

Take an HTML validation error and get the normal form of it

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Jon Cram

validation html error normalizer normaliser

29/06 2018

1.0

1.0.0.0 https://github.com/webignition/html-validation-error-normaliser

Take an HTML validation error and get the normal form of it

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Jon Cram

validation html error normalizer normaliser

19/07 2013

0.5.2

0.5.2.0 https://github.com/webignition/html-validation-error-normaliser

Take an HTML validation error and get the normal form of it

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Jon Cram

validation html error normalizer normaliser

19/07 2013

0.5.1

0.5.1.0 https://github.com/webignition/html-validation-error-normaliser

Take an HTML validation error and get the normal form of it

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Jon Cram

validation html error normalizer normaliser

19/07 2013

0.5

0.5.0.0 https://github.com/webignition/html-validation-error-normaliser

Take an HTML validation error and get the normal form of it

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Jon Cram

validation html error normalizer normaliser

19/07 2013

0.4

0.4.0.0 https://github.com/webignition/html-validation-error-normaliser

Take an HTML validation error and get the normal form of it

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Jon Cram

validation html error normalizer normaliser

19/07 2013

0.3

0.3.0.0 https://github.com/webignition/html-validation-error-normaliser

Take an HTML validation error and get the normal form of it

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Jon Cram

validation html error normalizer normaliser

19/07 2013

0.2

0.2.0.0 https://github.com/webignition/html-validation-error-normaliser

Take an HTML validation error and get the normal form of it

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Jon Cram

validation html error normalizer normaliser

19/07 2013

0.1

0.1.0.0 https://github.com/webignition/html-validation-error-normaliser

Take an HTML validation error and get the normal form of it

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Jon Cram

validation html error normalizer normaliser