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
jhchen
changed the title
Node.contains does not implement interface Node error in beta-0 example
Error when cursor places next to video embed
May 10, 2016
functioncontains(parent,descendant){try{// Firefox inserts inaccessible nodes around video elementsdescendant.parentNode;}catch(e){returnfalse;}// IE11 has bug with Text nodes// https://connect.microsoft.com/IE/feedback/details/780874/node-contains-is-incorrectif(descendantinstanceofText){descendant=descendant.parentNode;}returnparent.contains(descendant);}
into
functioncontains(parent,descendant){try{// IE11 has bug with Text nodes// https://connect.microsoft.com/IE/feedback/details/780874/node-contains-is-incorrectif(descendantinstanceofText){descendant=descendant.parentNode;}returnparent.contains(descendant);}catch(e){// Firefox inserts inaccessible nodes around video elementsreturnfalse;}}
A try..catch block containing nothing but e.parentNode gets optimized away by Angular compiler:
When I focus the editor in the beta-0 example I'm getting an error:
http://beta.quilljs.com/
Tested with Firefox 46.0.1 on Windows 7.
The text was updated successfully, but these errors were encountered: