JsCmds.Replace has no effect when using Opera
Using JsCmds.Replace in a SHtml.a method has no effect when using Opera. JqJsCmds.Hide works, however.
Example code is in http://github.com/Debilski/opera_problem_with_jscmds_replace as well as in
Proposed solution
Opera seems to dislike Js variables with the name ‘parent’. Renaming to something else should help fixing the issue.
Example code is in http://github.com/Debilski/opera_problem_with_jscmds_replace as well as in
def replace(in: NodeSeq): NodeSeq = {
SHtml.a(() =>
Replace("replace_id", <span>I am the new text</span>),
Text("Replace text after colon: ")
) ++
<span id="replace_id">I will be replaced.</span>
}
Proposed solution
Opera seems to dislike Js variables with the name ‘parent’. Renaming to something else should help fixing the issue.
Leave a comment
(In revision:9f14ef31aa2058abf7982fadf2c95867be12335f) Closes #625. The variable name 'parent' conflicts with an Opera reserved word
Branch: master
Branch: master