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) {
70
70
}
71
71
72
72
var tagRE = / < ( [ \w : ] + ) /
73
- var entityRE = / & \w + ; /
73
+ var entityRE = / & \w + ; | & # \d + ; | & # x [ \d A - F ] + ; /
74
74
75
75
/**
76
76
* Convert a string template to a DocumentFragment.
Original file line number Diff line number Diff line change @@ -42,6 +42,11 @@ if (_.inBrowser) {
42
42
expect ( res instanceof DocumentFragment ) . toBeTruthy ( )
43
43
expect ( res . childNodes . length ) . toBe ( 1 )
44
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' )
45
50
} )
46
51
47
52
it ( 'should parse textContent if argument is a script node' , function ( ) {
You can’t perform that action at this time.
0 commit comments