mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] parser: correctly parse pre node within a div with new lines
This commit is contained in:
committed by
Aaron Bohy
parent
c1a973a4d8
commit
3c12519277
@@ -255,6 +255,32 @@ describe("qweb parser", () => {
|
||||
});
|
||||
});
|
||||
|
||||
test("pre dom node with new line", async () => {
|
||||
expect(parse(`<div><pre />\n</div>`)).toEqual({
|
||||
type: 2,
|
||||
tag: "div",
|
||||
dynamicTag: null,
|
||||
attrs: {},
|
||||
on: {},
|
||||
ref: null,
|
||||
content: [
|
||||
{
|
||||
type: 2,
|
||||
tag: "pre",
|
||||
dynamicTag: null,
|
||||
attrs: {},
|
||||
on: {},
|
||||
ref: null,
|
||||
content: [],
|
||||
model: null,
|
||||
ns: null,
|
||||
},
|
||||
],
|
||||
model: null,
|
||||
ns: null,
|
||||
});
|
||||
});
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// t-esc
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user