Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Parser is not allowing anchor tags as child of inline elements #2169
I have content which looks like this:
but since the anchor is defined as a block element, it is getting converted to this:
The anchor element is an inline element, but per html5 spec it's the only inline element which allows block level children. The parser should take this into consideration. The "a" tag should be part of the "inline" set of elements (not the "block" group), and conditional logic should be used to prevent the "a" tag from being closed when a block element is encountered.
referenced this issue
Jan 7, 2016
This is a reversal of another filed bug. I think the solution is to mark everything as block and require that people close all tags.
Sent from my iPhone