def test_char_references_in_attributes(self): self.assertEquals( [ html_linter.EntityReferenceMessage( line=1, column=11, entity=' ') ], html_linter.HTML5Linter('<a href="   ">').messages)
def test_entity_references(self): self.assertEquals([ html_linter.EntityReferenceMessage( line=1, column=2, entity='á') ], html_linter.HTML5Linter(' á ').messages) self.assertEquals( [], html_linter.HTML5Linter(' < > & ').messages)
def test_entity_references_in_attributes(self): self.assertEquals( [ html_linter.EntityReferenceMessage( line=1, column=11, entity='á') ], html_linter.HTML5Linter('<a href=" á ">').messages) self.assertEquals([], html_linter.HTML5Linter( '<a href="< > &">').messages)
def test_char_references(self): self.assertEquals([ html_linter.EntityReferenceMessage( line=1, column=2, entity=' ') ], html_linter.HTML5Linter('   ').messages)