Opened 14 years ago
Last modified 14 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 14 years ago by
comment:2 Changed 14 years ago by
| Status: | new → confirmed |
|---|
I guess it would be nice if parser would recognized this tag as valid despite missing space.

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