Added tests to spec out behavior of html with self-closing tags.
Change-Id: I370bc0ddd2c838bb64239e3c075fc941e55f30b7
This commit is contained in:
parent
305d3acd9e
commit
96572ab88f
1 changed files with 41 additions and 0 deletions
|
|
@ -2852,6 +2852,47 @@ Failing to transform badly formed HTML into correct XHTML
|
|||
</p>
|
||||
!!end
|
||||
|
||||
!! test
|
||||
Handling html with a div self-closing tag
|
||||
!! input
|
||||
<div title />
|
||||
<div title/>
|
||||
<div title/ >
|
||||
<div title=bar />
|
||||
<div title=bar/>
|
||||
<div title=bar/ >
|
||||
!! result
|
||||
<p><div title />
|
||||
<div title/>
|
||||
</p>
|
||||
<div>
|
||||
<p><div title=bar />
|
||||
<div title=bar/>
|
||||
</p>
|
||||
<div title="bar/"></div>
|
||||
</div>
|
||||
|
||||
!! end
|
||||
|
||||
!! test
|
||||
Handling html with a br self-closing tag
|
||||
!! input
|
||||
<br title />
|
||||
<br title/>
|
||||
<br title/ >
|
||||
<br title=bar />
|
||||
<br title=bar/>
|
||||
<br title=bar/ >
|
||||
!! result
|
||||
<p><br title="title" />
|
||||
<br title="title" />
|
||||
<br />
|
||||
<br title="bar" />
|
||||
<br title="bar" />
|
||||
<br title="bar/" />
|
||||
</p>
|
||||
!! end
|
||||
|
||||
!! test
|
||||
Horizontal ruler (should it add that extra space?)
|
||||
!! input
|
||||
|
|
|
|||
Loading…
Reference in a new issue