File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ function isRealTemplate (node) {
7070}
7171
7272var tagRE = / < ( [ \w : ] + ) /
73- var entityRE = / & \w + ; /
73+ var entityRE = / & \w + ; | & # \d + ; | & # x [ \d A - F ] + ; /
7474
7575/**
7676 * Convert a string template to a DocumentFragment.
Original file line number Diff line number Diff line change @@ -42,6 +42,11 @@ if (_.inBrowser) {
4242 expect ( res instanceof DocumentFragment ) . toBeTruthy ( )
4343 expect ( res . childNodes . length ) . toBe ( 1 )
4444 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' )
4550 } )
4651
4752 it ( 'should parse textContent if argument is a script node' , function ( ) {
You can’t perform that action at this time.
0 commit comments