Opened 6 years ago

Last modified 6 years ago

#8635 confirmed Bug

htmlParser not recognizing self closing tags without space before />

Reported by: Piotrek Koszuliński Owned by:
Priority: Normal Milestone:
Component: Core : Parser Version:
Keywords: Cc:

Description

parser.onTagOpen = function( tagName, attributes, selfClosing )
	{
		assert.isTrue( selfClosing ); // error
		assert.areSame( tagName, 'br' ); // error (actual: 'br/')
	};

parser.parse( '<br/>' );

Now this issue is only theoretical - all browsers are returning space before /> (or no self closing tags at all). But this can change in the future.

Change History (2)

comment:1 Changed 6 years ago by Piotrek Koszuliński

Basic dt tests available on t/8635: http://ckeditor4.t/dt/core/htmlparser/htmlparser.html

comment:2 Changed 6 years ago by Jakub Ś

Status: newconfirmed

I guess it would be nice if parser would recognized this tag as valid despite missing space.

Note: See TracTickets for help on using tickets.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy