We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6f5a70 commit 7ce035dCopy full SHA for 7ce035d
src/parsers/template.js
@@ -70,7 +70,7 @@ function isRealTemplate (node) {
70
}
71
72
var tagRE = /<([\w:]+)/
73
-var entityRE = /&\w+;/
+var entityRE = /&\w+;|&#\d+;|&#x[\dA-F]+;/
74
75
/**
76
* Convert a string template to a DocumentFragment.
test/unit/specs/parsers/template_spec.js
@@ -42,6 +42,11 @@ if (_.inBrowser) {
42
expect(res instanceof DocumentFragment).toBeTruthy()
43
expect(res.childNodes.length).toBe(1)
44
expect(res.firstChild.nodeValue).toBe('hi<hi')
45
+ // #1330
46
+ res = parse('hello / hello')
47
+ expect(res instanceof DocumentFragment).toBeTruthy()
48
+ expect(res.childNodes.length).toBe(1)
49
+ expect(res.firstChild.nodeValue).toBe('hello / hello')
50
})
51
52
it('should parse textContent if argument is a script node', function () {
0 commit comments