You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ Here follows an example table that shows a few cases of ambiguous and non-ambigu
62
62
63
63
* The function `JSEntities.parseTree()` replaces the text of *all* the attributes contained in a DOM tree. Since some of these attributes might have been assigned via JavaScript and might no longer contain strings (as, for example, `mySpanElement.onlick = clickMe;`– where `typeof mySpanElement.onlick` is usually a `"function"` and not a `"string"`), it is preferable to launch `JSEntities.parseTree()`*before any other script*.
64
64
* The string segments enclosed within `&{` and `};` are passed **verbatim** to [`eval()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval) and executed in the global scope.
65
-
*Right curly brackets followed by a semicolon (`};`) *do not* end the Javascript entity until they no longer constitute syntactically valid JavaScript code– as the segment `'red' };` in `<p style="color: &{var myObject = { 'color': 'red' }; myObject.color;};">Hi!</p>`
65
+
*A right curly bracket followed by a semicolon (`};`) *does not* end the Javascript entity until it no longer expresses a syntactically valid JavaScript symbol– as the segment `'red' };` in `<p style="color: &{var myObject = { 'color': 'red' }; myObject.color;};">Hi!</p>`
66
66
* Within JavaScript entities, the three characters `<`, `>` and `"` must *always* be encoded (respectively, `<`, `>` and `"`). As for the character `&`, it must be encoded (`&`) when it represents an ambiguous ampersand – as in, for example, `var bContinue=bAccept&&bAvailable;` (see above).
0 commit comments