Migrate issue related test files into named files.

This commit is contained in:
Tom Anthony
2019-04-18 19:17:14 +01:00
parent bd62157cd7
commit 79084c5a84
4 changed files with 27 additions and 15 deletions

View File

@@ -1692,8 +1692,9 @@ func inCellIM(p *parser) bool {
return true
}
// Close the cell and reprocess.
p.popUntil(tableScope, a.Td, a.Th)
p.clearActiveFormattingElements()
if p.popUntil(tableScope, a.Td, a.Th) {
p.clearActiveFormattingElements()
}
p.im = inRowIM
return false
}
@@ -2329,4 +2330,4 @@ func ParseFragment(r io.Reader, context *Node) ([]*Node, error) {
c = next
}
return result, nil
}
}

View File

@@ -0,0 +1,12 @@
#data
<table><math><th><mo><select></table>
#errors
#document
| <html>
| <head>
| <body>
| <math math>
| <math th>
| <math mo>
| <select>
| <table>

View File

@@ -0,0 +1,11 @@
#data
<html><head></head><body><tag1><tag2 /><p></p></tag1><div></div></body></html>
#errors
#document
| <html>
| <head>
| <body>
| <tag1>
| <tag2>
| <p>
| <div>

View File

@@ -60,15 +60,3 @@
| <math template>
| <math mn>
| <b>
#data
<html><head></head><body><tag1><tag2 /><p></p></tag1><div></div></body></html>
#errors
#document
| <html>
| <head>
| <body>
| <tag1>
| <tag2>
| <p>
| <div>